你的位置:首页 > 软件开发 > ASP.net > WPF学习之路(十二)控件(Items控件)

WPF学习之路(十二)控件(Items控件)

发布时间:2015-04-23 10:02:14
ListBox 提供了一个选项列表,可以固定或者动态绑定<StackPanel> <GroupBox Margin="5"> <GroupBox.Header> <TextBlock Text=& ...

WPF学习之路(十二)控件(Items控件)

 

 ListBox

 提供了一个选项列表,可以固定或者动态绑定

<StackPanel>  <GroupBox Margin="5">    <GroupBox.Header>      <TextBlock Text="Select SelectionMode"></TextBlock>    </GroupBox.Header>    <GroupBox.Content>      <StackPanel Margin="3" Background="AliceBlue" RadioButton.Checked ="Radio_Checked">        <RadioButton Name="radioSingle">Single</RadioButton>        <RadioButton Name="radioMultiple">Multiple</RadioButton>        <RadioButton Name="radioExtended">Extended</RadioButton>      </StackPanel>    </GroupBox.Content>  </GroupBox>  <GroupBox Margin="5">    <GroupBox.Header>      <TextBlock Text="Effect"></TextBlock>    </GroupBox.Header>    <GroupBox.Content>      <ListBox Name="list">        <ListBoxItem>Item 1</ListBoxItem>        <ListBoxItem>Item 2</ListBoxItem>        <ListBoxItem>Item 3</ListBoxItem>        <ListBoxItem>Item 4</ListBoxItem>        <ListBoxItem>Item 5</ListBoxItem>      </ListBox>    </GroupBox.Content>  </GroupBox></StackPanel>

原标题:WPF学习之路(十二)控件(Items控件)

关键词:wpf

wpf
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。