标签:style http color width 数据 os
一、silverlight 静态页面
1、 时间控件:DatePicker ,添加引用: xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls",
触发事件:SelectedDateChanged;
2、文本:TextBlock ;
3、下拉框:ComboBox,触发事件:SelectionChanged ;
4、按钮:Button ,触发事件:Click;
5、图表画布:Grid;
6、单选框:CheckBox ,触发事件:Click;
<UserControl x:Class="SilverlightApplication2.Views.ControlChart"
xmlns:sdk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
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"
xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" Loaded="UserControl_Loaded">
<Grid x:Name="LayoutRoot" Background="White">
<TextBlock Text="时间:" Margin="12,16,0,0" Height="25" Width="40" FontSize="13" HorizontalAlignment="Left" VerticalAlignment="Top" />
<sdk:DatePicker x:Name="dateStart" Height="25" SelectedDateFormat="Short" Margin="57,12,0,0" TabNavigation="Local" FontSize="13" HorizontalAlignment="Left" Width="150" VerticalAlignment="Top" SelectedDateChanged="dateStart_SelectedDateChanged"/>
<ComboBox x:Name="dateYear" Height="25" Margin="57,12,0,0" Visibility="Collapsed" TabNavigation="Local" FontSize="13" HorizontalAlignment="Left" Width="100" VerticalAlignment="Top" SelectionChanged="dateStart_SelectedDateChanged" >
</ComboBox>
<TextBlock Text="至" Name="z" Margin="167,16,0,0" Visibility="Collapsed" Height="25" Width="20" FontSize="13" HorizontalAlignment="Left" VerticalAlignment="Top" />
<ComboBox x:Name="enddateYear" Height="25" Margin="192,12,0,0" Visibility="Collapsed" TabNavigation="Local" FontSize="13" HorizontalAlignment="Left" Width="100" VerticalAlignment="Top" SelectionChanged="enddateYear_SelectionChanged">
</ComboBox>
<TextBlock Text="地名:" Name="addressName" Margin="217,16,0,0" Height="25" Width="40" FontSize="13" HorizontalAlignment="Left" VerticalAlignment="Top" />
<ComboBox x:Name="addressNameList" Margin="262,12,0,0" FontSize="13" Height="25" Width="100" HorizontalAlignment="Left" VerticalAlignment="Top" SelectionChanged="addressNameList_SelectionChanged">
<!--<ComboBoxItem Content="大庆"></ComboBoxItem>
<ComboBoxItem Content="华北"></ComboBoxItem>
<ComboBoxItem Content="新疆"></ComboBoxItem>-->
</ComboBox>
<!--<Button Content="查询" Name="btnQuery" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="372,12,0,0" VerticalAlignment="Top" Width="75" Click="button_ClickQuery"/>-->
<Grid Margin="12,43,0,0" Name="gridVisifire" Height="600" Width="800" HorizontalAlignment="Left" VerticalAlignment="Top"></Grid>
<Button Content="返回" Name="btnBack" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="732,12,0,0" VerticalAlignment="Top" Width="75" Click="button_ClickBack" />
<TextBlock Text="显示数据" Name="dtName" Margin="462,16,0,0" Height="25" Width="60" FontSize="13" HorizontalAlignment="Left" VerticalAlignment="Top" />
<CheckBox Background="Blue" Name="showData" Height="17" Width="16" Margin="520,18,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Click="showData_Click"></CheckBox>
<Button Content="下载" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="372,12,0,0" Name="btnDown" VerticalAlignment="Top" Width="75" Click="btnDown_Click"/>
<Button Content="打印" Name="btnPrint" FontSize="13" Height="25" HorizontalAlignment="Left" Margin="650,12,0,0" VerticalAlignment="Top" Width="75" Click="btnPrint_Click" />
</Grid>
</UserControl>
silverlight visifire控件图表制作——silverlight 静态页面xaml,布布扣,bubuko.com
silverlight visifire控件图表制作——silverlight 静态页面xaml
标签:style http color width 数据 os
原文地址:http://www.cnblogs.com/xuxin-1989/p/3819613.html