WaitControl.xaml
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:3k
源码类别:

SilverLight

开发平台:

C#

  1. <mycontrol:ActivityControl x:Class="wxwinter.WFDesignerSl.WaitControl"
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  4.     
  5.               xmlns:mycontrol="clr-namespace:wxwinter.WFDesignerSl"
  6.               Height="100" Width="200"
  7.     Canvas.Left="0" Canvas.Top="0"
  8.                               MouseLeftButtonUp="link_MouseLeftButtonUp"
  9.                            MouseEnter="ActivityControl_MouseEnter"
  10.              >
  11.     <mycontrol:ActivityControl.Resources>
  12.         <LinearGradientBrush EndPoint="50,0" StartPoint="0,0" MappingMode="Absolute" x:Key="b5">
  13.             <GradientStop Color="#FFF8F8F8" Offset="0"/>
  14.             <GradientStop Color="#FF554F4D" Offset="2"/>
  15.         </LinearGradientBrush>
  16.         <DataTemplate x:Key="submtOptionList" >
  17.             <Border Margin="1,1,1,1"   BorderBrush="Black" BorderThickness="1"  Background="White"  >
  18.                 <TextBlock  MouseLeftButtonUp="link_MouseLeftButtonUp"  MouseLeftButtonDown="link_MouseLeftButtonDown"   Text="{Binding Path=.}"  VerticalAlignment="Center" />
  19.             </Border>
  20.         </DataTemplate>
  21.         <ItemsPanelTemplate x:Key="vlist">
  22.           
  23.             <StackPanel Width="180"  Height="20" Orientation="Horizontal"></StackPanel>
  24.         </ItemsPanelTemplate>
  25.     </mycontrol:ActivityControl.Resources>
  26.     <Border BorderThickness="1,1,1,1" CornerRadius="10,10,10,10" BorderBrush="#FF000000">
  27.  
  28.         <Border.Background>
  29.             <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  30.                 <GradientStop Color="#FF4D76F4" Offset="1"/>
  31.                 <GradientStop Color="#FFE6EBF0" Offset="0"/>
  32.             </LinearGradientBrush>
  33.         </Border.Background>
  34.         <StackPanel  x:Name="Activity"    >
  35.             <Canvas>
  36.                 <Thumb  Height="20" DragDelta="thumb_DragDelta" Foreground="{x:Null}"  BorderThickness="0,0,0,0" Width="138" Canvas.Top="-10.005" Canvas.Left="31">
  37.   
  38.                 </Thumb>
  39.                 <TextBlock Name="title" FontSize="14" Text="标题" Canvas.Left="3" Width="126" Height="16" Canvas.Top="13"  />
  40.                 <TextBlock Name="description"  Text="说明" Canvas.Left="3" Width="187" Height="37" Canvas.Top="32"  TextWrapping="Wrap" />
  41.                 <Image  Name="setData" MouseLeftButtonUp="Image_MouseLeftButtonUp" Source="image/info.png"  Canvas.Top="18" Canvas.Left="181" Height="16" Width="16" />
  42.                 <Image Name="del" Source="image/del.png" MouseLeftButtonUp="del_MouseUp"  Canvas.Top="1.334" Canvas.Left="180.757" Width="16.008" Height="16.008" />
  43.                 <Image Name="img_activite" Source="image/activite.png" Width="16" Visibility="Collapsed"  Height="16" Canvas.Top="45" Canvas.Left="-15" />
  44.                 <ItemsControl ItemsPanel="{StaticResource vlist}" ItemTemplate="{StaticResource submtOptionList}" Height="44" Name="submtOption" Width="196" Canvas.Top="60" Canvas.Left="3" Background="{x:Null}" BorderThickness="0,0,0,0" />
  45.             </Canvas>
  46.         </StackPanel>
  47.     </Border>
  48. </mycontrol:ActivityControl>