VideoController.Theme.xaml
上传用户:huazai0421
上传日期:2008-05-30
资源大小:405k
文件大小:4k
源码类别:

SilverLight

开发平台:

C#

  1. <ResourceDictionary
  2.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  3.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:ESRI.ArcGIS.Samples"
  5. >
  6. <Style TargetType="local:VideoController">
  7. <Setter Property="Template">
  8. <Setter.Value>
  9. <ControlTemplate TargetType="local:VideoController">
  10. <StackPanel>
  11. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  12. <!--<Button x:Name="ForwardButton"  Style="{StaticResource darkButtonStyle}">
  13.                                 <Button.Content>
  14.                                     <StackPanel Orientation="Horizontal">
  15.                                         <Path Data="M0,0 L10,5 0,10 0,0" Fill="White" Opacity=".8" />
  16.                                         <Path Data="M0,0 L10,5 0,10 0,0" Fill="White" Opacity=".8" />
  17.                                         <Rectangle Fill="White" Opacity=".8" Width="3" Height="10" />
  18.                                     </StackPanel>
  19.                                 </Button.Content>
  20.                             </Button>
  21.                             <Button x:Name="RewindButton"  Style="{StaticResource darkButtonStyle}">
  22.                                 <Button.Content>
  23.                                     <StackPanel Orientation="Horizontal">
  24.                                         <Rectangle Fill="White" Opacity=".8" Width="3" Height="10" />
  25.                                         <Path Data="M10,0 L10,10 0,5 10,0" Fill="White" Opacity=".8" />
  26.                                         <Path Data="M10,0 L10,10 0,5 10,0" Fill="White" Opacity=".8" />
  27.                                     </StackPanel>
  28.                                 </Button.Content>
  29.                             </Button>-->
  30. <Button x:Name="PlayButton"  Style="{StaticResource darkButtonStyle}">
  31. <Button.Content>
  32. <Path Data="M0,0 L10,5 0,10 0,0" Fill="White" Opacity=".8" />
  33. </Button.Content>
  34. </Button>
  35. <Button x:Name="PauseButton" IsEnabled="False" Style="{StaticResource darkButtonStyle}">
  36. <Button.Content>
  37. <StackPanel Orientation="Horizontal">
  38. <Rectangle Fill="White" Opacity=".8" Width="3" Height="10" Margin="0,0,3,0" />
  39. <Rectangle Fill="White" Opacity=".8" Width="3" Height="10" />
  40. </StackPanel>
  41. </Button.Content>
  42. </Button>
  43. <Button x:Name="StopButton" IsEnabled="False" Style="{StaticResource darkButtonStyle}">
  44. <Button.Content>
  45. <Rectangle Fill="White" Opacity=".8" Width="10" Height="10" />
  46. </Button.Content>
  47. </Button>
  48. </StackPanel>
  49. <Grid Margin="5,2,5,2">
  50. <Rectangle Stroke="Black" Fill="Transparent" StrokeThickness="1" Height="10" 
  51.                                        HorizontalAlignment="Stretch" VerticalAlignment="Center" />
  52. <Rectangle Fill="Gray" Height="8" Margin="1" x:Name="DownloadProgress"
  53.    Cursor="Hand"
  54.                                        HorizontalAlignment="Stretch" VerticalAlignment="Center" />
  55. <Ellipse Width="12" Height="12" x:Name="Position" Stroke="Gray" StrokeThickness="1"
  56.                                      HorizontalAlignment="Left" VerticalAlignment="Center" 
  57.                                      Margin="-6,0,0,0" IsHitTestVisible="False" >
  58. <Ellipse.Fill>
  59. <RadialGradientBrush Center="0.5,0.5" MappingMode="RelativeToBoundingBox">
  60. <GradientStop Color="#FFFFFF" Offset="0.0" />
  61. <GradientStop Color="#333333" Offset="0.7" />
  62. </RadialGradientBrush>
  63. </Ellipse.Fill>
  64. </Ellipse>
  65. </Grid>
  66. <Grid>
  67. <TextBlock Text="0:00" x:Name="CurrentTime"
  68.    HorizontalAlignment="Left" Foreground="White" />
  69. <TextBlock Text="" x:Name="Status"
  70.    HorizontalAlignment="Center" Foreground="White" />
  71. <TextBlock Text="" x:Name="TotalTime"
  72.    HorizontalAlignment="Right" Foreground="White" />
  73. </Grid>
  74. </StackPanel>
  75. </ControlTemplate>
  76. </Setter.Value>
  77. </Setter>
  78. </Style>
  79. </ResourceDictionary>