WEB开发网
开发学院图形图像Flash Silverlight(5) - 2.0控件之ListBox, MediaElemen... 阅读

Silverlight(5) - 2.0控件之ListBox, MediaElement, MultiScaleImage, PasswordBox, ProgressBar, RadioButton

 2008-11-14 11:50:48 来源:WEB开发网   
核心提示:本文源代码下载地址:http://flashview.ddvip.com/2008_11/Silverlight.rar在线DEMOhttp://www.cnblogs.com/webabcd/archive/2008/10/09/1307486.html 示例1、ListBox.xaml<UserControl

本文源代码下载地址:

http://flashview.ddvip.com/2008_11/Silverlight.rar

在线DEMO

http://www.cnblogs.com/webabcd/archive/2008/10/09/1307486.html

示例

1、ListBox.xaml

<UserControl x:Class="Silverlight20.Control.ListBox"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <StackPanel HorizontalAlignment="Left">
    
    <!--
    SelectionChanged - ListBox中某个对象被选中后所触发的事件
    -->
    <ListBox Margin="5" Width="200" Height="100" SelectionChanged="ListBox_SelectionChanged">
      <ListBoxItem Content="ListBoxItem01" />
      <ListBoxItem Content="ListBoxItem02" />
      <ListBoxItem Content="ListBoxItem03" />
      <ListBoxItem Content="ListBoxItem04" />
      <ListBoxItem Content="ListBoxItem05" />
      <ListBoxItem Content="ListBoxItem06" />
      <ListBoxItem Content="ListBoxItem07" />
      <ListBoxItem Content="ListBoxItem08" />
      <ListBoxItem Content="ListBoxItem09" />
      <ListBoxItem Content="ListBoxItem10" />
    </ListBox>
    
    <!--
    ListBox中可以包含任何对象
    -->
    <ListBox Margin="5" Width="200">
      <TextBlock Text="TextBlock" />
      <TextBox Text="TextBox" />
      <Button Content="Button" />
    </ListBox>
    
  </StackPanel>
</UserControl>

1 2 3 4 5 6  下一页

Tags:Silverlight 控件 ListBox

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接