ms silverlight blend sketchflow-组合框中的默认文本

ms silverlight blend sketchflow-组合框中的默认文本,silverlight,combobox,blend,sketchflow,Silverlight,Combobox,Blend,Sketchflow,我想在组合框中获得显示“选择团队…”的默认文本 像WPF中这样 但是在草图流中 我该怎么做 谢谢 这是一个小项目。我的xaml内容如下: <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/expre

我想在组合框中获得显示“选择团队…”的默认文本

像WPF中这样

但是在草图流中

我该怎么做

谢谢

这是一个小项目。我的xaml内容如下:

<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>


它说IsEditable没有setter。但这似乎适用于WPF项目,如上面的示例。

SketchFlow项目是WPF或SL项目(取决于您在创建项目时选择的项目),因此您找到的关于WPF/SL的任何答案都应该适用。

我有同样的问题,并找到了帮助我的方法。基本上,您只需向组合框中添加至少一项(右键单击,添加ComboBoxItem),然后在选择控件时查看公共属性,您将看到一个名为“SelectIndex”的字段,该字段当前设置为-1。只需将其更改为0即可选择列表中的第一项

对不起,我是个新手。我找到了一些代码,但它不适合这个评论框,所以我编辑了这个问题。