1

I'd like to get the default text in a combo box to show "Select Team...."

Like this in WPF

Setting default text for a combo box

But in sketchflow.

How can I do this?

Thanks

it is a sliverlight project. my xaml reads:

<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="SchoolsLoginScreens.Screen_2"
Width="640" Height="480">

<Grid x:Name="LayoutRoot" Background="White">
<ComboBox Height="61.256" Width="136.569" IsEditable="True" IsReadOnly="True" Text="-- Select Team --"/>
</Grid>

It says that IsEditable does not have a setter. But this appears to work in WPF project like the examples above.

Community
  • 1
  • 1
bendecko
  • 2,643
  • 1
  • 23
  • 33

2 Answers2

0

SketchFlow projects are WPF or SL projects (depending what you chose when you created the project) so any answers you find for WPF/SL should apply.

Chuck Hays
  • 1,194
  • 1
  • 6
  • 7
  • Sorry I'm a stackoverflow-newbie. I found some code, but it wouldn't fit in this comments box, so I edited question. – bendecko Apr 18 '13 at 08:22
0

I had the same question and found this to help me. Essentially, you just have to add at least one item to the combo box (right-click, add ComboBoxItem) then look at the Common properties while the control is selected and you will see a field called "SelectIndex" that is currently set to -1. Just change this to 0 to select the first item in your list.

JasonArg123
  • 188
  • 1
  • 1
  • 14