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

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:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
  5.     xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
  6. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  7. xmlns:globe="clr-namespace:SilverGlobe;assembly=SilverGlobe"
  8. xmlns:toolkit="clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit"
  9. >
  10. <Style x:Name="border" TargetType="Border">
  11. <Setter Property="BorderBrush" Value="Gray" />
  12. <Setter Property="BorderThickness" Value="1" />
  13. <Setter Property="Background" Value="#333333" />
  14. </Style>
  15. <Style x:Name="menuBorder" TargetType="Border" BasedOn="{StaticResource border}">
  16. <Setter Property="Margin" Value="5,0,0,0" />
  17. <Setter Property="Padding" Value="2" />
  18. <Setter Property="Background" Value="#dd333333" />
  19. </Style>
  20. <Style x:Name="maptipBorder" TargetType="Border" BasedOn="{StaticResource border}">
  21. <Setter Property="Padding" Value="5" />
  22. <Setter Property="Background" Value="#AA333333" />
  23. </Style>
  24. <Style x:Name="radioButton" TargetType="RadioButton">
  25. <Setter Property="Foreground" Value="#eeeeee" />
  26. <Setter Property="Background" Value="Black" />
  27. <Setter Property="Margin" Value="0" />
  28. <Setter Property="Padding" Value="5" />
  29. <Setter Property="Cursor" Value="Hand" />
  30. <!--<Setter Property="FontFamily" Value="Verdana" />
  31. <Setter Property="FontSize" Value="10" />
  32. <Setter Property="FontWeight" Value="Bold" />-->
  33. <Setter Property="Height" Value="30" />
  34. <Setter Property="VerticalContentAlignment" Value="Center" />
  35. <Setter Property="HorizontalContentAlignment" Value="Left" />
  36. <Setter Property="Template">
  37. <Setter.Value>
  38. <ControlTemplate TargetType="RadioButton">
  39. <Grid>
  40. <vsm:VisualStateManager.VisualStateGroups>
  41. <vsm:VisualStateGroup x:Name="CommonStates">
  42. <vsm:VisualState x:Name="Normal"/>
  43. <vsm:VisualState x:Name="MouseOver">
  44. <Storyboard>
  45. <ColorAnimation Duration="0:0:0.25" 
  46. Storyboard.TargetName="Brush" 
  47. Storyboard.TargetProperty="Color" 
  48. To="#FF333333" />
  49. <DoubleAnimation Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  50. <DoubleAnimation Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  51. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#7FFFFFFF"/>
  52. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#CCFFFFFF"/>
  53. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#F2FFFFFF"/>
  54. </Storyboard>
  55. </vsm:VisualState>
  56. <vsm:VisualState x:Name="Pressed">
  57. <Storyboard>
  58. <DoubleAnimation Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  59. <DoubleAnimation Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  60. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#6BFFFFFF"/>
  61. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#C6FFFFFF"/>
  62. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#EAFFFFFF"/>
  63. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Duration="0" To="#F4FFFFFF"/>
  64. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  65. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  66. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  67. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  68. </Storyboard>
  69. </vsm:VisualState>
  70. <vsm:VisualState x:Name="Disabled">
  71. <Storyboard>
  72. <DoubleAnimation Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To=".55"/>
  73. <DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="0.55"/>
  74. </Storyboard>
  75. </vsm:VisualState>
  76. </vsm:VisualStateGroup>
  77. <vsm:VisualStateGroup x:Name="CheckStates">
  78. <vsm:VisualState x:Name="Checked">
  79. <Storyboard>
  80. <DoubleAnimation Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1"/>
  81. </Storyboard>
  82. </vsm:VisualState>
  83. <vsm:VisualState x:Name="Unchecked"/>
  84. </vsm:VisualStateGroup>
  85. <vsm:VisualStateGroup x:Name="FocusStates">
  86. <vsm:VisualState x:Name="Focused">
  87. <Storyboard>
  88. <DoubleAnimation Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  89. </Storyboard>
  90. </vsm:VisualState>
  91. <vsm:VisualState x:Name="Unfocused" />
  92. </vsm:VisualStateGroup>
  93. </vsm:VisualStateManager.VisualStateGroups>
  94. <!--Main color of the button-->
  95. <Rectangle RadiusY="3" RadiusX="3" Grid.ColumnSpan="2">
  96. <Rectangle.Fill>
  97. <SolidColorBrush x:Name="Brush" Color="#FF000000" />
  98. </Rectangle.Fill>
  99. </Rectangle>
  100. <Rectangle x:Name="BackgroundGradient" 
  101. RadiusY="3" RadiusX="3" 
  102.     Grid.ColumnSpan="2"
  103.    Opacity=".5"
  104. StrokeThickness=".75" StrokeLineJoin="Round" Fill="{StaticResource ReflectionGradient}">
  105. <Rectangle.Stroke>
  106. <SolidColorBrush x:Name="BorderBrush" Color="#FF333333" />
  107. </Rectangle.Stroke>
  108. </Rectangle>
  109. <StackPanel Orientation="Horizontal" >
  110. <Grid HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="{TemplateBinding Padding}">
  111. <Ellipse x:Name="Background" Width="14" Height="14" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="#FFFFFFFF" Margin="1"/>
  112. <Ellipse x:Name="BackgroundOverlay" Fill="#FFC4DBEE" Opacity="0" Width="14" Height="14" StrokeThickness="1" Margin="1" Stroke="#00000000"/>
  113. <Ellipse x:Name="BoxMiddleBackground" Width="10" Height="10" Fill="{TemplateBinding Background}" Stroke="#00000000" StrokeThickness="1"/>
  114. <Ellipse x:Name="BoxMiddle" Width="10" Height="10" StrokeThickness="1" >
  115. <Ellipse.Stroke>
  116. <LinearGradientBrush EndPoint=".5,1" StartPoint=".5,0">
  117. <GradientStop Color="#FFFFFFFF" Offset="1"/>
  118. <GradientStop Color="#FFFFFFFF" Offset="0"/>
  119. <GradientStop Color="#FFFFFFFF" Offset="0.375"/>
  120. <GradientStop Color="#FFFFFFFF" Offset="0.375"/>
  121. </LinearGradientBrush>
  122. </Ellipse.Stroke>
  123. <Ellipse.Fill>
  124. <LinearGradientBrush StartPoint="0.62,0.15" EndPoint="0.64,0.88">
  125. <GradientStop Color="#FFFFFFFF" Offset="0.013" />
  126. <GradientStop Color="#F9FFFFFF" Offset="0.375" />
  127. <GradientStop Color="#EAFFFFFF" Offset="0.603" />
  128. <GradientStop Color="#D8FFFFFF" Offset="1" />
  129. </LinearGradientBrush>
  130. </Ellipse.Fill>
  131. </Ellipse>
  132. <Ellipse x:Name="BoxMiddleLine" Width="10" Height="10" Stroke="#FF333333" StrokeThickness="1" Opacity=".2"/>
  133. <Ellipse x:Name="CheckIcon" Fill="#FF333333" Width="4" Height="4" Opacity="0"/>
  134. <Ellipse x:Name="DisabledVisualElement" Width="14" Height="14" Opacity="0" Fill="#FFFFFFFF"/>
  135. <Ellipse x:Name="ContentFocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" Width="16" Height="16" />
  136. </Grid>
  137. <ContentPresenter
  138. Grid.Column="1"
  139. x:Name="contentPresenter"
  140. Content="{TemplateBinding Content}"
  141. ContentTemplate="{TemplateBinding ContentTemplate}"
  142. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  143. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  144. Margin="{TemplateBinding Padding}"/>
  145. </StackPanel>
  146. </Grid>
  147. </ControlTemplate>
  148. </Setter.Value>
  149. </Setter>
  150. </Style>
  151. <LinearGradientBrush x:Name="ReflectionGradient" StartPoint="0.5,0" EndPoint="0.5,1">
  152. <LinearGradientBrush.GradientStops>
  153. <GradientStop Color="#D0FFFFFF" Offset="0" />
  154. <GradientStop Color="#90FFFFFF" Offset="0.5" />
  155. <GradientStop Color="#60FFFFFF" Offset="0.5" />
  156. <GradientStop Color="#90FFFFFF" Offset="1" />
  157. </LinearGradientBrush.GradientStops>
  158. </LinearGradientBrush>
  159. <LinearGradientBrush x:Name="ReflectionGradientVertical" StartPoint="0,0.5" EndPoint="1,0.5">
  160. <LinearGradientBrush.GradientStops>
  161. <GradientStop Color="#D0FFFFFF" Offset="0" />
  162. <GradientStop Color="#90FFFFFF" Offset="0.5" />
  163. <GradientStop Color="#60FFFFFF" Offset="0.5" />
  164. <GradientStop Color="#90FFFFFF" Offset="1" />
  165. </LinearGradientBrush.GradientStops>
  166. </LinearGradientBrush>
  167. <!--GridSplitterPreviewStyle-->
  168. <Style x:Key="GridSplitterPreviewStyle" TargetType="Control">
  169. <Setter Property="Background" Value="#FF868686"/>
  170. <Setter Property="Template">
  171. <Setter.Value>
  172. <ControlTemplate TargetType="Control">
  173. <Grid x:Name="Root" Opacity=".5">
  174. <Rectangle Fill="{TemplateBinding Background}"/>
  175. <Grid Height="6" x:Name="HorizontalTemplate"/>
  176. <Grid x:Name="VerticalTemplate" Width="6" Visibility="Collapsed"/>
  177. </Grid>
  178. </ControlTemplate>
  179. </Setter.Value>
  180. </Setter>
  181. </Style>
  182. <!--GridSplitterStyle-->
  183. <Style x:Key="GridSplitterStyleBlack" TargetType="controls:GridSplitter">
  184. <Setter Property="Background" Value="#FFFFFFFF"/>
  185. <Setter Property="IsTabStop" Value="true"/>
  186. <Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}"/>
  187. <Setter Property="HorizontalAlignment" Value="Right"/>
  188. <Setter Property="Template">
  189. <Setter.Value>
  190. <ControlTemplate TargetType="controls:GridSplitter">
  191. <Grid x:Name="Root" IsHitTestVisible="{TemplateBinding IsEnabled}">
  192. <vsm:VisualStateManager.VisualStateGroups>
  193. <vsm:VisualStateGroup x:Name="CommonStates">
  194. <vsm:VisualState x:Name="Normal"/>
  195. <vsm:VisualState x:Name="MouseOver"/>
  196. <vsm:VisualState x:Name="Disabled">
  197. <Storyboard>
  198. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity">
  199. <SplineDoubleKeyFrame KeyTime="0" Value="0.5"/>
  200. </DoubleAnimationUsingKeyFrames>
  201. </Storyboard>
  202. </vsm:VisualState>
  203. </vsm:VisualStateGroup>
  204. <vsm:VisualStateGroup x:Name="FocusStates">
  205. <vsm:VisualStateGroup.Transitions>
  206. <vsm:VisualTransition GeneratedDuration="0"/>
  207. </vsm:VisualStateGroup.Transitions>
  208. <vsm:VisualState x:Name="Unfocused"/>
  209. <vsm:VisualState x:Name="Focused">
  210. <Storyboard>
  211. <DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisual" Storyboard.TargetProperty="Opacity">
  212. <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
  213. </DoubleAnimationUsingKeyFrames>
  214. </Storyboard>
  215. </vsm:VisualState>
  216. </vsm:VisualStateGroup>
  217. </vsm:VisualStateManager.VisualStateGroups>
  218. <Rectangle Fill="{TemplateBinding Background}" StrokeThickness="0"/>
  219. <Grid Height="10" x:Name="HorizontalTemplate">
  220. <Rectangle Opacity="0.5" Fill="{StaticResource ReflectionGradient}" />
  221. <StackPanel Height="6" VerticalAlignment="Center">
  222. <Rectangle Height="1" Margin="1" Width="10" Fill="#FF868686" StrokeThickness="0"/>
  223. <Rectangle Height="1" Margin="1" Width="10" Fill="#FF868686" StrokeThickness="0"/>
  224. </StackPanel>
  225. </Grid>
  226. <Grid x:Name="VerticalTemplate" Width="10" Visibility="Collapsed">
  227. <Rectangle Opacity="0.5" Fill="{StaticResource ReflectionGradientVertical}" />
  228. <StackPanel VerticalAlignment="Center" Width="6" Orientation="Horizontal">
  229. <Rectangle Height="10" Margin="1" Width="1" Fill="#FF868686" StrokeThickness="0"/>
  230. <Rectangle Height="10" Margin="1" Width="1" Fill="#FF868686" StrokeThickness="0"/>
  231. </StackPanel>
  232. </Grid>
  233. <Rectangle x:Name="FocusVisual" IsHitTestVisible="false" Opacity="0" Stroke="#FFFFFFFF" StrokeThickness="1"/>
  234. </Grid>
  235. </ControlTemplate>
  236. </Setter.Value>
  237. </Setter>
  238. </Style>
  239. <!--Define custom dark button style-->
  240. <Style x:Name="darkButtonStyle" TargetType="Button">
  241. <Setter Property="Background" Value="Black" />
  242. <Setter Property="Foreground" Value="White" />
  243. <Setter Property="Cursor" Value="Hand" />
  244. <Setter Property="Padding" Value="10,5,10,5" />
  245. <!--<Setter Property="Height" Value="21" />-->
  246. <Setter Property="VerticalAlignment" Value="Stretch" />
  247. <Setter Property="Template">
  248. <Setter.Value>
  249. <ControlTemplate TargetType="Button">
  250. <Grid x:Name="RootElement" Cursor="{TemplateBinding Cursor}">
  251. <vsm:VisualStateManager.VisualStateGroups>
  252. <vsm:VisualStateGroup x:Name="CommonStates">
  253. <vsm:VisualState x:Name="Normal" />
  254. <vsm:VisualState x:Name="MouseOver">
  255. <Storyboard>
  256. <ColorAnimation Duration="0:0:0.25" 
  257. Storyboard.TargetName="Brush" 
  258. Storyboard.TargetProperty="Color" 
  259. To="#FF333333" />
  260. </Storyboard>
  261. </vsm:VisualState>
  262. <vsm:VisualState x:Name="Pressed">
  263. <Storyboard>
  264. <DoubleAnimation Duration="0:0:0" 
  265. Storyboard.TargetName="BackgroundGradient" 
  266. Storyboard.TargetProperty="Opacity" To="0.75" />
  267. <DoubleAnimation Duration="0:0:0" 
  268. Storyboard.TargetName="BackgroundGradient" 
  269. Storyboard.TargetProperty="StrokeThickness" To="1.5" />
  270. </Storyboard>
  271. </vsm:VisualState>
  272. <vsm:VisualState x:Name="Disabled">
  273. <Storyboard>
  274. <DoubleAnimation Duration="0" Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="Opacity" To=".55"/>
  275. </Storyboard>
  276. </vsm:VisualState>
  277. </vsm:VisualStateGroup>
  278. </vsm:VisualStateManager.VisualStateGroups>
  279. <!--Main color of the button-->
  280. <Rectangle x:Name="Background" RadiusY="3" RadiusX="3" >
  281. <Rectangle.Fill>
  282. <SolidColorBrush x:Name="Brush" Color="#FF000000" />
  283. </Rectangle.Fill>
  284. </Rectangle>
  285. <!--Reflection effect-->
  286. <Rectangle x:Name="BackgroundGradient" 
  287. RadiusY="3" RadiusX="3" 
  288.    Opacity=".5"
  289. StrokeThickness=".75" StrokeLineJoin="Round" Fill="{StaticResource ReflectionGradient}">
  290. <Rectangle.Stroke>
  291. <SolidColorBrush x:Name="BorderBrush" Color="#FF333333" />
  292. </Rectangle.Stroke>
  293. </Rectangle>
  294. <Rectangle x:Name="FocusVisualElement" 
  295. Stretch="Fill" StrokeThickness="1.0" 
  296. Stroke="#FFFFFFFF" StrokeDashCap="Square" 
  297. StrokeDashArray="1 2" Margin="3" 
  298. Visibility="Collapsed" 
  299. RadiusX="3" RadiusY="3" />
  300. <ContentPresenter
  301.                                 x:Name="contentPresenter"
  302.                                 Content="{TemplateBinding Content}"
  303.                                 ContentTemplate="{TemplateBinding ContentTemplate}"
  304.                                 VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  305.                                 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  306.                                 Margin="{TemplateBinding Padding}"/>
  307. </Grid>
  308. </ControlTemplate>
  309. </Setter.Value>
  310. </Setter>
  311. </Style>
  312. <!--Define custom dark togglebutton style-->
  313. <Style x:Name="darkToggleButtonStyle" TargetType="ToggleButton">
  314. <Setter Property="Background" Value="Black" />
  315. <Setter Property="BorderBrush" Value="Yellow" />
  316. <!--<Setter Property="Foreground" Value="White" />-->
  317. <Setter Property="IsThreeState" Value="False" />
  318. <Setter Property="Cursor" Value="Hand" />
  319. <Setter Property="Padding" Value="4" />
  320. <!--<Setter Property="Height" Value="21" />-->
  321. <Setter Property="VerticalAlignment" Value="Stretch" />
  322. <Setter Property="Template">
  323. <Setter.Value>
  324. <ControlTemplate TargetType="ToggleButton">
  325. <Grid Cursor="{TemplateBinding Cursor}">
  326. <vsm:VisualStateManager.VisualStateGroups>
  327. <vsm:VisualStateGroup x:Name="CommonStates">
  328. <vsm:VisualState x:Name="Normal"/>
  329. <vsm:VisualState x:Name="MouseOver">
  330. <Storyboard>
  331. <ColorAnimation Duration="0:0:0.25" 
  332. Storyboard.TargetName="Brush" 
  333. Storyboard.TargetProperty="Color" 
  334. To="#FF333333" />
  335. </Storyboard>
  336. </vsm:VisualState>
  337. <vsm:VisualState x:Name="Pressed">
  338. <Storyboard>
  339. <DoubleAnimation Duration="0:0:0" 
  340. Storyboard.TargetName="BackgroundGradient" 
  341. Storyboard.TargetProperty="Opacity" To="0.75" />
  342. <DoubleAnimation Duration="0:0:0" 
  343. Storyboard.TargetName="BackgroundGradient" 
  344. Storyboard.TargetProperty="StrokeThickness" To="1.5" />
  345. </Storyboard>
  346. </vsm:VisualState>
  347. <vsm:VisualState x:Name="Disabled">
  348. <Storyboard>
  349. <DoubleAnimation Duration="0" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity" To=".55"/>
  350. </Storyboard>
  351. </vsm:VisualState>
  352. </vsm:VisualStateGroup>
  353. <vsm:VisualStateGroup x:Name="CheckStates">
  354. <vsm:VisualState x:Name="Checked">
  355. <Storyboard>
  356. <DoubleAnimation Duration="0:0:0.25" 
  357. Storyboard.TargetName="outline" 
  358. Storyboard.TargetProperty="Opacity" To=".75" />
  359. <DoubleAnimation Duration="0:0:0" 
  360. Storyboard.TargetName="BackgroundGradient" 
  361. Storyboard.TargetProperty="Opacity" To="0.95" />
  362. </Storyboard>
  363. </vsm:VisualState>
  364. <vsm:VisualState x:Name="Unchecked"/>
  365. </vsm:VisualStateGroup>
  366. <vsm:VisualStateGroup x:Name="FocusStates">
  367. <vsm:VisualState x:Name="Focused" />
  368. <vsm:VisualState x:Name="Unfocused" />
  369. </vsm:VisualStateGroup>
  370. </vsm:VisualStateManager.VisualStateGroups>
  371. <!--Main color of the button-->
  372. <Rectangle x:Name="Background" RadiusY="3" RadiusX="3" >
  373. <Rectangle.Fill>
  374. <SolidColorBrush x:Name="Brush" Color="#FF000000" />
  375. </Rectangle.Fill>
  376. </Rectangle>
  377. <!--Reflection effect-->
  378. <Rectangle x:Name="BackgroundGradient" 
  379. RadiusY="3" RadiusX="3" 
  380.    Opacity=".5"
  381. StrokeThickness=".75" StrokeLineJoin="Round" Fill="{StaticResource ReflectionGradient}">
  382. <Rectangle.Stroke>
  383. <SolidColorBrush x:Name="BorderBrush" Color="#FF333333" />
  384. </Rectangle.Stroke>
  385. </Rectangle>
  386. <Rectangle x:Name="outline" RadiusX="3" RadiusY="3" StrokeThickness="3" 
  387.    Stroke="{TemplateBinding BorderBrush}" Opacity="0"  />
  388. <ContentPresenter
  389. x:Name="contentPresenter"
  390. Content="{TemplateBinding Content}"
  391. ContentTemplate="{TemplateBinding ContentTemplate}"
  392. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  393. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  394. Margin="{TemplateBinding Padding}"/>
  395. <Rectangle x:Name="DisabledVisualElement" RadiusX="3" RadiusY="3" Fill="#FFFFFFFF" Opacity="0" IsHitTestVisible="false" />
  396. </Grid>
  397. </ControlTemplate>
  398. </Setter.Value>
  399. </Setter>
  400. </Style>
  401. <!--Define custom dark CheckBox style-->
  402. <Style x:Name="checkBox" TargetType="CheckBox">
  403. <Setter Property="Foreground" Value="#eeeeee" />
  404. <Setter Property="Background" Value="Black" />
  405. <Setter Property="Margin" Value="0" />
  406. <Setter Property="Padding" Value="5" />
  407. <Setter Property="Cursor" Value="Hand" />
  408. <Setter Property="Height" Value="30" />
  409. <Setter Property="VerticalContentAlignment" Value="Center" />
  410. <Setter Property="HorizontalContentAlignment" Value="Left" />
  411. <!--<Setter Property="FontFamily" Value="Verdana" />
  412. <Setter Property="FontSize" Value="12" />-->
  413. <Setter Property="Template">
  414. <Setter.Value>
  415. <ControlTemplate TargetType="CheckBox">
  416. <Grid>
  417. <Grid.ColumnDefinitions>
  418. <ColumnDefinition Width="21"/>
  419. <ColumnDefinition Width="*"/>
  420. </Grid.ColumnDefinitions>
  421. <vsm:VisualStateManager.VisualStateGroups>
  422. <vsm:VisualStateGroup x:Name="CommonStates">
  423. <vsm:VisualState x:Name="Normal"/>
  424. <vsm:VisualState x:Name="MouseOver">
  425. <Storyboard>
  426. <ColorAnimation Duration="0:0:0.25" 
  427. Storyboard.TargetName="Brush" 
  428. Storyboard.TargetProperty="Color" 
  429. To="#FF333333" />
  430. <DoubleAnimation Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  431. <DoubleAnimation Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  432. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#7FFFFFFF"/>
  433. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#CCFFFFFF"/>
  434. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#F2FFFFFF"/>
  435. </Storyboard>
  436. </vsm:VisualState>
  437. <vsm:VisualState x:Name="Pressed">
  438. <Storyboard>
  439. <DoubleAnimation Storyboard.TargetName="BackgroundOverlay" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  440. <DoubleAnimation Storyboard.TargetName="BoxMiddleBackground" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  441. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#6BFFFFFF"/>
  442. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#C6FFFFFF"/>
  443. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#EAFFFFFF"/>
  444. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Duration="0" To="#F4FFFFFF"/>
  445. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  446. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  447. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  448. <ColorAnimation Storyboard.TargetName="BoxMiddle" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Duration="0" To="#FF6DBDD1"/>
  449. </Storyboard>
  450. </vsm:VisualState>
  451. <vsm:VisualState x:Name="Disabled">
  452. <Storyboard>
  453. <DoubleAnimation Storyboard.TargetName="contentPresenter" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To=".55"/>
  454. <DoubleAnimation Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="0.55"/>
  455. </Storyboard>
  456. </vsm:VisualState>
  457. </vsm:VisualStateGroup>
  458. <vsm:VisualStateGroup x:Name="CheckStates">
  459. <vsm:VisualState x:Name="Checked">
  460. <Storyboard>
  461. <DoubleAnimation Storyboard.TargetName="CheckIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1"/>
  462. </Storyboard>
  463. </vsm:VisualState>
  464. <vsm:VisualState x:Name="Unchecked"/>
  465. <vsm:VisualState x:Name="Indeterminate">
  466. <Storyboard>
  467. <DoubleAnimation Storyboard.TargetName="IndeterminateIcon" Storyboard.TargetProperty="(UIElement.Opacity)" Duration="0" To="1"/>
  468. </Storyboard>
  469. </vsm:VisualState>
  470. </vsm:VisualStateGroup>
  471. <vsm:VisualStateGroup x:Name="FocusStates">
  472. <vsm:VisualState x:Name="Focused">
  473. <Storyboard>
  474. <DoubleAnimation Storyboard.TargetName="ContentFocusVisualElement" Storyboard.TargetProperty="Opacity" Duration="0" To="1"/>
  475. </Storyboard>
  476. </vsm:VisualState>
  477. <vsm:VisualState x:Name="Unfocused" />
  478. </vsm:VisualStateGroup>
  479. </vsm:VisualStateManager.VisualStateGroups>
  480. <!--Main color of the button-->
  481. <Rectangle RadiusY="3" RadiusX="3" Grid.ColumnSpan="2">
  482. <Rectangle.Fill>
  483. <SolidColorBrush x:Name="Brush" Color="#FF000000" />
  484. </Rectangle.Fill>
  485. </Rectangle>
  486. <Rectangle x:Name="BackgroundGradient" 
  487. RadiusY="3" RadiusX="3" 
  488.     Grid.ColumnSpan="2"
  489.    Opacity=".5"
  490. StrokeThickness=".75" StrokeLineJoin="Round" Fill="{StaticResource ReflectionGradient}">
  491. <Rectangle.Stroke>
  492. <SolidColorBrush x:Name="BorderBrush" Color="#FF333333" />
  493. </Rectangle.Stroke>
  494. </Rectangle>
  495. <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0" >
  496. <Rectangle x:Name="Background" Width="14" Height="14" RadiusX="1" RadiusY="1" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" Fill="#FFFFFFFF" Margin="1"/>
  497. <Rectangle x:Name="BackgroundOverlay" Fill="#FFC4DBEE" Opacity="0" Width="14" Height="14" RadiusX="1" RadiusY="1" StrokeThickness="1" Margin="1" Stroke="#00000000"/>
  498. <Rectangle x:Name="BoxMiddleBackground" Width="10" Height="10" RadiusX="1" RadiusY="1" Fill="{TemplateBinding Background}" Stroke="#00000000" StrokeThickness="1"/>
  499. <Rectangle x:Name="BoxMiddle" Width="10" Height="10" RadiusX="1" RadiusY="1" StrokeThickness="1" >
  500. <Rectangle.Stroke>
  501. <LinearGradientBrush EndPoint=".5,1" StartPoint=".5,0">
  502. <GradientStop Color="#FFFFFFFF" Offset="1"/>
  503. <GradientStop Color="#FFFFFFFF" Offset="0"/>
  504. <GradientStop Color="#FFFFFFFF" Offset="0.375"/>
  505. <GradientStop Color="#FFFFFFFF" Offset="0.375"/>
  506. </LinearGradientBrush>
  507. </Rectangle.Stroke>
  508. <Rectangle.Fill>
  509. <LinearGradientBrush StartPoint="0.62,0.15" EndPoint="0.64,0.88">
  510. <GradientStop Color="#FFFFFFFF" Offset="0.013" />
  511. <GradientStop Color="#F9FFFFFF" Offset="0.375" />
  512. <GradientStop Color="#EAFFFFFF" Offset="0.603" />
  513. <GradientStop Color="#D8FFFFFF" Offset="1" />
  514. </LinearGradientBrush>
  515. </Rectangle.Fill>
  516. </Rectangle>
  517. <Rectangle x:Name="BoxMiddleLine" Width="10" Height="10" RadiusX="1" RadiusY="1" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1" Opacity=".2"/>
  518. <Path x:Name="CheckIcon" Margin="1,1,0,1.5" Fill="#FF333333" Stretch="Fill" Opacity="0" Width="10.5" Height="10" Data="M102.03442,598.79645 L105.22962,597.78918 L106.78825,600.42358 C106.78825,600.42358 108.51028,595.74304 110.21724,593.60419 C112.00967,591.35822 114.89314,591.42316 114.89314,591.42316 C114.89314,591.42316 112.67844,593.42645 111.93174,594.44464 C110.7449,596.06293 107.15683,604.13837 107.15683,604.13837 z"/>
  519. <Rectangle x:Name="IndeterminateIcon" Height="2" Fill="#FF333333" Opacity="0" Width="6"/>
  520. <Rectangle x:Name="DisabledVisualElement" RadiusX="1" RadiusY="1" Width="14" Height="14" Opacity="0" Fill="#FFFFFFFF"/>
  521. <Rectangle x:Name="ContentFocusVisualElement" RadiusX="2" RadiusY="2" Stroke="#FF6DBDD1" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" Width="16" Height="16" />
  522. </Grid>
  523. <ContentPresenter
  524.                                 Grid.Column="1"
  525.                                 x:Name="contentPresenter"
  526.                                 Content="{TemplateBinding Content}"
  527.                                 ContentTemplate="{TemplateBinding ContentTemplate}"
  528.                                 HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  529.                                 VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  530.                                 Margin="{TemplateBinding Padding}"/>
  531. </Grid>
  532. </ControlTemplate>
  533. </Setter.Value>
  534. </Setter>
  535. </Style>
  536. <!--Define custom dark ComboBox style-->
  537. <Style TargetType="ComboBox" x:Name="comboBox">
  538. <Setter Property="Background" Value="Black"/>
  539. <!--<Setter Property="Padding" Value="6,2,25,2" />
  540. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  541. <Setter Property="BorderThickness" Value="1"/>
  542. <Setter Property="TabNavigation" Value="Once" />
  543. <Setter Property="BorderBrush">
  544. <Setter.Value>
  545. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  546. <GradientStop Color="#FFA3AEB9" Offset="0"/>
  547. <GradientStop Color="#FF8399A9" Offset="0.375"/>
  548. <GradientStop Color="#FF718597" Offset="0.375"/>
  549. <GradientStop Color="#FF617584" Offset="1"/>
  550. </LinearGradientBrush>
  551. </Setter.Value>
  552. </Setter>-->
  553. <Setter Property="Template">
  554. <Setter.Value>
  555. <ControlTemplate TargetType="ComboBox">
  556. <Grid>
  557. <Grid.Resources>
  558. <Style x:Name="comboToggleStyle" TargetType="ToggleButton">
  559. <Setter Property="Foreground" Value="#FF333333"/>
  560. <Setter Property="Background" Value="Black"/>
  561. <Setter Property="BorderBrush">
  562. <Setter.Value>
  563. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  564. <GradientStop Color="#FFA3AEB9" Offset="0"/>
  565. <GradientStop Color="#FF8399A9" Offset="0.375"/>
  566. <GradientStop Color="#FF718597" Offset="0.375"/>
  567. <GradientStop Color="#FF617584" Offset="1"/>
  568. </LinearGradientBrush>
  569. </Setter.Value>
  570. </Setter>
  571. <vsm:Setter Property="BorderThickness" Value="1"/>
  572. <Setter Property="Padding" Value="3"/>
  573. <Setter Property="Template">
  574. <Setter.Value>
  575. <ControlTemplate TargetType="ToggleButton">
  576. <Grid>
  577. <vsm:VisualStateManager.VisualStateGroups>
  578. <vsm:VisualStateGroup x:Name="CommonStates">
  579. <vsm:VisualState x:Name="Normal"/>
  580. <vsm:VisualState x:Name="MouseOver">
  581. <Storyboard>
  582. <ColorAnimation Duration="0:0:0.25" 
  583. Storyboard.TargetName="Brush" 
  584. Storyboard.TargetProperty="Color" 
  585. To="#FF333333" />
  586. </Storyboard>
  587. </vsm:VisualState>
  588. <vsm:VisualState x:Name="Pressed">
  589. <Storyboard />
  590. </vsm:VisualState>
  591. <vsm:VisualState x:Name="Disabled" />
  592. </vsm:VisualStateGroup>
  593. <vsm:VisualStateGroup x:Name="CheckStates">
  594. <vsm:VisualState x:Name="Checked">
  595. <Storyboard/>
  596. </vsm:VisualState>
  597. <vsm:VisualState x:Name="Unchecked"/>
  598. </vsm:VisualStateGroup>
  599. <vsm:VisualStateGroup x:Name="FocusStates">
  600. <vsm:VisualState x:Name="Focused">
  601. <Storyboard>
  602. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Visibility" Duration="0">
  603. <DiscreteObjectKeyFrame KeyTime="0">
  604. <DiscreteObjectKeyFrame.Value>
  605. <Visibility>Visible</Visibility>
  606. </DiscreteObjectKeyFrame.Value>
  607. </DiscreteObjectKeyFrame>
  608. </ObjectAnimationUsingKeyFrames>
  609. </Storyboard>
  610. </vsm:VisualState>
  611. <vsm:VisualState x:Name="Unfocused" />
  612. </vsm:VisualStateGroup>
  613. </vsm:VisualStateManager.VisualStateGroups>
  614. <Rectangle RadiusY="3" RadiusX="3" Grid.ColumnSpan="2">
  615. <Rectangle.Fill>
  616. <SolidColorBrush x:Name="Brush" Color="#FF000000" />
  617. </Rectangle.Fill>
  618. </Rectangle>
  619. <Rectangle x:Name="BackgroundGradient" 
  620. RadiusY="3" RadiusX="3" 
  621. Grid.ColumnSpan="2" Opacity=".5"
  622. StrokeThickness=".75" StrokeLineJoin="Round" 
  623. Fill="{StaticResource ReflectionGradient}">
  624. <Rectangle.Stroke>
  625. <SolidColorBrush x:Name="BorderBrush" Color="#FF333333" />
  626. </Rectangle.Stroke>
  627. </Rectangle>
  628. <Rectangle x:Name="Highlight" RadiusX="2" RadiusY="2" Opacity="0" IsHitTestVisible="false" Stroke="#FF6DBDD1" StrokeThickness="1" Margin="{TemplateBinding BorderThickness}" />
  629. <ContentControl
  630. Foreground="White"
  631.                                                         x:Name="contentPresenter"
  632.                                                         Content="{TemplateBinding Content}"
  633.                                                         ContentTemplate="{TemplateBinding ContentTemplate}"
  634.                                                         HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  635.                                                         VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  636.                                                         Margin="{TemplateBinding Padding}" />
  637. <Rectangle x:Name="FocusVisualElement" RadiusX="3.5" Margin="1"  RadiusY="3.5" Stroke="#FF6DBDD1" StrokeThickness="1" Visibility="Collapsed" IsHitTestVisible="false" />
  638. </Grid>
  639. </ControlTemplate>
  640. </Setter.Value>
  641. </Setter>
  642. </Style>
  643. </Grid.Resources>
  644. <vsm:VisualStateManager.VisualStateGroups>
  645. <vsm:VisualStateGroup x:Name="CommonStates">
  646. <vsm:VisualState x:Name="Normal" />
  647. <vsm:VisualState x:Name="MouseOver" />
  648. <vsm:VisualState x:Name="Disabled">
  649. <Storyboard>
  650. <DoubleAnimation Duration="00:00:00" Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" To=".55"/>
  651. </Storyboard>
  652. </vsm:VisualState>
  653. </vsm:VisualStateGroup>
  654. <vsm:VisualStateGroup x:Name="FocusStates">
  655. <vsm:VisualState x:Name="Focused">
  656. <Storyboard>
  657. <DoubleAnimation Duration="00:00:00" Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="(UIElement.Opacity)" To="1"/>
  658. </Storyboard>
  659. </vsm:VisualState>
  660. <vsm:VisualState x:Name="Unfocused"/>
  661. <vsm:VisualState x:Name="FocusedDropDown">
  662. <Storyboard>
  663. <ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="PopupBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
  664. <DiscreteObjectKeyFrame KeyTime="00:00:00">
  665. <DiscreteObjectKeyFrame.Value>
  666. <Visibility>Visible</Visibility>
  667. </DiscreteObjectKeyFrame.Value>
  668. </DiscreteObjectKeyFrame>
  669. </ObjectAnimationUsingKeyFrames>
  670. </Storyboard>
  671. </vsm:VisualState>
  672. </vsm:VisualStateGroup>
  673. </vsm:VisualStateManager.VisualStateGroups>
  674. <Border x:Name="ContentPresenterBorder">
  675. <Grid Background="#333333">
  676. <ToggleButton x:Name="DropDownToggle" Style="{StaticResource comboToggleStyle}"  HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Margin="0" HorizontalContentAlignment="Right" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
  677. <Path x:Name="BtnArrow" Height="4" Width="8" Stretch="Uniform" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " Margin="0,0,6,0" HorizontalAlignment="Right">
  678. <Path.Fill>
  679. <SolidColorBrush x:Name="BtnArrowColor" Color="#FFFFFFFF"/>
  680. </Path.Fill>
  681. </Path>
  682. </ToggleButton>
  683. <ContentPresenter x:Name="ContentPresenter"
  684.                                                   Margin="{TemplateBinding Padding}"   
  685.                                                   HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
  686.                                                   VerticalAlignment="{TemplateBinding VerticalContentAlignment}" >
  687. <TextBlock Text=" " Foreground="White" />
  688. </ContentPresenter>
  689. </Grid>
  690. </Border>
  691. <Rectangle x:Name="DisabledVisualElement" RadiusX="3" RadiusY="3" Fill="White" Opacity="0" IsHitTestVisible="false" />
  692. <Rectangle x:Name="FocusVisualElement" RadiusX="2" RadiusY="2" Margin="1"  Stroke="#FF6DBDD1" StrokeThickness="1" Opacity="0" IsHitTestVisible="false" />
  693. <Popup x:Name="Popup">
  694. <Border x:Name="PopupBorder" Background="#333333" HorizontalAlignment="Stretch" Height="Auto" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="3">
  695. <!--<Border.Background>
  696. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  697. <GradientStop Color="#FFFFFFFF" Offset="0"/>
  698. <GradientStop Color="#FFFEFEFE" Offset="1"/>
  699. </LinearGradientBrush>
  700. </Border.Background>-->
  701. <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1">
  702. <ItemsPresenter/>
  703. </ScrollViewer>
  704. </Border>
  705. </Popup>
  706. </Grid>
  707. </ControlTemplate>
  708. </Setter.Value>
  709. </Setter>
  710. </Style>
  711. <!--Bookmark style-->
  712. <Style x:Name="BookmarkStyle" TargetType="toolkit:Bookmark" >
  713. <Setter Property="Template" >
  714. <Setter.Value>
  715. <ControlTemplate xmlns:slData="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
  716. <Grid x:Name="BookmarkGrid" >
  717. <Grid.RowDefinitions>
  718. <RowDefinition Height="30" />
  719. <RowDefinition Height="*" />
  720. <RowDefinition Height="40" />
  721. </Grid.RowDefinitions>
  722. <Grid Grid.Row="0" Margin="8,2,11,0">
  723. <Grid.ColumnDefinitions>
  724. <ColumnDefinition Width="*" />
  725. <ColumnDefinition Width="Auto" />
  726. </Grid.ColumnDefinitions>
  727. <TextBox x:Name="AddBookmarkName" Grid.Column="0" Width="180" HorizontalAlignment="Left" Margin="2,0,0,0" />
  728. <Button x:Name="AddBookmark" Grid.Column="1" ToolTipService.ToolTip="Add Bookmark"  Style="{StaticResource darkButtonStyle}" Content="+" />
  729. </Grid>
  730. <slData:DataGrid x:Name="BookmarkList" AutoGenerateColumns="False" Margin="11, 3, 14, 1" Grid.Row="1" HeadersVisibility="None">
  731. <slData:DataGrid.Columns>
  732. <slData:DataGridTextColumn IsReadOnly="False"  
  733.                                           Foreground="Black" FontSize="10" 
  734.                                           FontFamily="Times"
  735.                                           Binding="{Binding Name, Mode=TwoWay}" />
  736. </slData:DataGrid.Columns>
  737. </slData:DataGrid>
  738. <Grid Grid.Row="2"  Margin="8,0,11,9" >
  739. <Grid.ColumnDefinitions>
  740. <ColumnDefinition Width="*" />
  741. <ColumnDefinition Width="*" />
  742. </Grid.ColumnDefinitions>
  743. <Button x:Name="ClearBookmarks" Grid.Column="0" ToolTipService.ToolTip="Clear All Bookmarks"  Style="{StaticResource darkButtonStyle}" HorizontalAlignment="Left" Content="Clear" >
  744. </Button>
  745. </Grid>
  746. </Grid>
  747. </ControlTemplate>
  748. </Setter.Value>
  749. </Setter>
  750. </Style>
  751. <!--Navigation Style-->
  752. <Style x:Name="NavigationStyle" TargetType="toolkit:Navigation" >
  753. <Setter Property="Template">
  754. <Setter.Value>
  755. <ControlTemplate TargetType="toolkit:Navigation" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" xmlns:globe="clr-namespace:SilverGlobe;assembly=SilverGlobe">
  756. <Grid x:Name="LayoutRoot" >
  757. <Grid.Resources>
  758. <SolidColorBrush x:Key="FillColor" Color="#FF949494"/>
  759. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1" x:Name="NavGradient">
  760. <GradientStop Offset="0" Color="#eec7c8c9"/>
  761. <GradientStop Offset="0.25" Color="#ee878787"/>
  762. <GradientStop Offset="0.75" Color="#ee757575"/>
  763. </LinearGradientBrush>
  764. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Name="NavBorderGradient">
  765. <GradientStop Color="#66FFFFFF"/>
  766. <GradientStop Color="#661d1d1d" Offset="1"/>
  767. </LinearGradientBrush>
  768. <LinearGradientBrush x:Key="DarkTwoGradient" StartPoint="0.5,0" EndPoint="0.5,1">
  769. <GradientStop Color="#D07E7C7C" Offset="0" />
  770. <GradientStop Color="#902D2D2D" Offset="0.498" />
  771. <GradientStop Color="#605C5C5C" Offset="0.484" />
  772. <GradientStop Color="#90201F1F" Offset="1" />
  773. </LinearGradientBrush>
  774. </Grid.Resources>
  775. <Grid.ColumnDefinitions>
  776. <ColumnDefinition Width="Auto" />
  777. <ColumnDefinition Width="Auto" />
  778. </Grid.ColumnDefinitions>
  779. <Grid.RenderTransform>
  780. <ScaleTransform CenterX="0" CenterY="0" ScaleX="0.65" ScaleY="0.65"/>
  781. </Grid.RenderTransform>
  782. <vsm:VisualStateManager.VisualStateGroups>
  783. <vsm:VisualStateGroup x:Name="CommonStates">
  784. <vsm:VisualState x:Name="Normal">
  785. <Storyboard>
  786. <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)" To="0.2" Duration="0:0:0.1" />
  787. </Storyboard>
  788. </vsm:VisualState>
  789. <vsm:VisualState x:Name="MouseOver">
  790. <Storyboard>
  791. <DoubleAnimation BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)" To="1" Duration="0:0:0.1" />
  792. </Storyboard>
  793. </vsm:VisualState>
  794. </vsm:VisualStateGroup>
  795. </vsm:VisualStateManager.VisualStateGroups>
  796. <Rectangle Fill="#ee333333" Stroke="#66FFFFFF" Margin="0" Grid.ColumnSpan="2" RadiusX="10" RadiusY="10" />
  797. <Grid x:Name="ZoomGrid" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="10,10,0,10">
  798. <Rectangle Margin="0" RadiusX="5" RadiusY="5" Fill="{StaticResource DarkTwoGradient}" Stroke="#66FFFFFF" />
  799. <StackPanel x:Name="ZoomStack" Orientation="Vertical">
  800. <Button x:Name="ZoomInButton" Height="25" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold" Width="25" Padding="-5" ToolTipService.ToolTip="Zoom In" Margin="2,2,2,0" Content="+" Style="{StaticResource darkButtonStyle}" >
  801. </Button>
  802. <Slider x:Name="ZoomSlider" Orientation="Vertical" Height="80" Minimum="0" SmallChange="1" LargeChange="1" ToolTipService.ToolTip="Move bar up to zoom in, down to zoom out" />
  803. <Button x:Name="ZoomOutButton" Height="25" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold" Width="25" Padding="-5" ToolTipService.ToolTip="Zoom Out" Margin="2,0,2,2" Content="-" Style="{StaticResource darkButtonStyle}" >
  804. </Button>
  805. </StackPanel>
  806. </Grid>
  807. <Ellipse StrokeThickness="2" Width="120" Height="120" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Stroke="#66FFFFFF" Fill="{StaticResource DarkTwoGradient}" />
  808. <Grid x:Name="Navigator" RenderTransformOrigin="0.5,0.5" Margin="10" Width="120" Height="120" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" >
  809. <Grid.RenderTransform>
  810. <RotateTransform x:Name="TransformRotate" Angle="0"/>
  811. </Grid.RenderTransform>
  812. <Ellipse x:Name="RotateRing" StrokeThickness="2" Width="120" Height="120" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="#66FFFFFF" Fill="#00FFFFFF" />
  813. <Ellipse x:Name="innerRing" Fill="Gray" Stroke="Black" StrokeThickness="1" Width="80" Height="80" HorizontalAlignment="Center" VerticalAlignment="Center" />
  814. <Grid x:Name="PanLeft" Width="20" Height="20" Background="#00FFFFFF" HorizontalAlignment="Left" VerticalAlignment="Center" ToolTipService.ToolTip="Click to move west" Cursor="Hand" >
  815. <TextBlock Text="W" TextAlignment="Center" VerticalAlignment="Center" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold"  />
  816. </Grid>
  817. <Grid x:Name="PanRight" Width="20" Height="20" Background="#00FFFFFF" HorizontalAlignment="Right" VerticalAlignment="Center"  ToolTipService.ToolTip="Click to move east" Cursor="Hand" >
  818. <TextBlock Text="E" TextAlignment="Center" VerticalAlignment="Center" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold"  />
  819. </Grid>
  820. <Grid x:Name="PanUp" Width="20" Height="20" Background="#00FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Top" ToolTipService.ToolTip="Click to move north" Cursor="Hand" >
  821. <TextBlock Text="N" TextAlignment="Center" VerticalAlignment="Center" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold"  />
  822. </Grid>
  823. <Grid x:Name="PanDown" Width="20" Height="20" Background="#00FFFFFF" HorizontalAlignment="Center" VerticalAlignment="Bottom" ToolTipService.ToolTip="Click to move south" Cursor="Hand" >
  824. <TextBlock Text="S" TextAlignment="Center" VerticalAlignment="Center" FontSize="12" Foreground="#FFFFFFFF" FontWeight="Bold"  />
  825. </Grid>
  826. </Grid>
  827. <globe:WorldGlobe
  828.   x:Name="Globe" Map="{TemplateBinding Map}"
  829. RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" >
  830. <globe:WorldGlobe.RenderTransform>
  831. <TransformGroup>
  832. <ScaleTransform ScaleX="0.75" ScaleY="0.75"/>
  833. </TransformGroup>
  834. </globe:WorldGlobe.RenderTransform>
  835. </globe:WorldGlobe>
  836. <Ellipse x:Name="GlobeGlass" Fill="#00FFFFFF" StrokeThickness="0" Width="80" Height="80" HorizontalAlignment="Center" VerticalAlignment="Center" ToolTipService.ToolTip="Drag to rotate" Cursor="Hand" Stroke="#66FFFFFF" Grid.Column="1" >
  837. </Ellipse>
  838. <Button x:Name="ZoomFullExtent" Height="25" FontSize="8" Width="25" ToolTipService.ToolTip="Full Extent" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Column="1" Margin="5" Style="{StaticResource darkButtonStyle}" Foreground="White" Padding="0"  >
  839. <Button.Content>
  840. <Grid Height="20" Width="20">
  841. <Ellipse Height="Auto" Width="Auto" Stroke="{StaticResource FillColor}"/>
  842. <Ellipse Height="6" Width="Auto" Stroke="{StaticResource FillColor}"/>
  843. <Ellipse Height="Auto" Width="6" Stroke="{StaticResource FillColor}"/>
  844. </Grid>
  845. </Button.Content>
  846. </Button>
  847. <Button x:Name="ResetRotation" Height="25" FontSize="8" Width="25" ToolTipService.ToolTip="Reset Map Rotation" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Column="1" Margin="5" Style="{StaticResource darkButtonStyle}" Foreground="White" Padding="0" >
  848. <Button.Content>
  849. <Grid Height="Auto" HorizontalAlignment="Left" Width="Auto" RenderTransformOrigin="0.5,0.5">
  850. <Grid.RenderTransform>
  851. <RotateTransform Angle="0"/>
  852. </Grid.RenderTransform>
  853. <Path Height="12" Width="10" RenderTransformOrigin="0.5,0.5" Data="M49.643433,70.53167 L37.857143,76 L49.572575,81.46917 z" Fill="{StaticResource FillColor}" Stretch="Fill">
  854. <Path.RenderTransform>
  855. <RotateTransform Angle="90"/>
  856. </Path.RenderTransform>
  857. </Path>
  858. <Path Height="4" Margin="0,3,0,0" Width="4" Data="M92,29.833334 L92.000114,24.166691 L93.247681,24.184656 L96.134811,27.716934 L96.076241,24.166662 L97.444435,24.166662 L97.444435,29.833332 L96.218758,29.810295 L93.332748,26.418152 L93.361107,29.808037 z" Fill="#FF404040" Stretch="Fill"/>
  859. </Grid>
  860. </Button.Content>
  861. </Button>
  862. </Grid>
  863. </ControlTemplate>
  864. </Setter.Value>
  865. </Setter>
  866. </Style>
  867. </ResourceDictionary>