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开发网   
核心提示: 4、PasswordBox.xaml<UserControl x:Class="Silverlight20.Control.PasswordBox"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/p

4、PasswordBox.xaml

<UserControl x:Class="Silverlight20.Control.PasswordBox"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <StackPanel HorizontalAlignment="Left">
    
    <!--
    Password - PasswordBox控件的密码值
    PasswordChar - PasswordBox控件所显示的密码替代字符。默认值为“●”
    -->
    <PasswordBox Width="200" PasswordChar="*"></PasswordBox>
    
  </StackPanel>  
</UserControl>

5、ProgressBar.xaml

<UserControl x:Class="Silverlight20.Control.ProgressBar"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <StackPanel HorizontalAlignment="Left">
    
    <TextBlock x:Name="lblPercent" TextAlignment="Center" />
    <!--
    Minimum - ProgressBar控件的最小值。参见基类System.Windows.Controls.Primitives.RangeBase
    Maximum - ProgressBar控件的最大值。参见基类System.Windows.Controls.Primitives.RangeBase
    Value - ProgressBar控件的值。参见基类System.Windows.Controls.Primitives.RangeBase
    ValueChanged - ProgressBar控件的值发生变化时所触发的事件
    -->
    <ProgressBar x:Name="progressBar" Width="200" Height="20" Minimum="10" Maximum="70"></ProgressBar>
  
    <!--
    IsIndeterminate - 是否无法确定当前的进度值
      false - 可以确定当前的进度值
      true - 无法确定当前的进度值。一个Loading动画
    -->
    <ProgressBar Width="200" Height="20" IsIndeterminate="True" Margin="5"></ProgressBar>
  
  </StackPanel>
</UserControl>

上一页  1 2 3 4 5 6 7  下一页

Tags:Silverlight 控件 ListBox

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