BottomView.xaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <UserControl x:Class="Aitex.Core.UI.View.Frame.BottomView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. mc:Ignorable="d"
  7. d:DesignHeight="70" d:DesignWidth="300">
  8. <UserControl.Resources>
  9. <LinearGradientBrush x:Key="buttonNormal" StartPoint="0.5,0" EndPoint="0.5,1">
  10. <GradientStop Color="#0086cd" Offset="0" />
  11. <GradientStop Color="#389cd0" Offset="1" />
  12. </LinearGradientBrush>
  13. <SolidColorBrush x:Key="buttonForground" Color="White"></SolidColorBrush>
  14. <SolidColorBrush x:Key="buttonBorder" Color="#62b8e5"></SolidColorBrush>
  15. <LinearGradientBrush x:Key="buttonHover" StartPoint="0.5,0" EndPoint="0.5,1">
  16. <GradientStop Color="#668fa5" Offset="0" />
  17. <GradientStop Color="#3c6982" Offset="1" />
  18. </LinearGradientBrush>
  19. <Style x:Key="exitButton" TargetType="Button">
  20. <Setter Property="Background" Value="{StaticResource buttonNormal}"></Setter>
  21. <Setter Property="Foreground" Value="{StaticResource buttonForground}"></Setter>
  22. <Setter Property="BorderBrush" Value="{StaticResource buttonBorder}"></Setter>
  23. <Setter Property="Cursor" Value="Hand"/>
  24. <Setter Property="Margin" Value="5"/>
  25. <Setter Property="FontFamily" Value="Arial,SimSun" />
  26. <Setter Property="FontSize" Value="22"/>
  27. <Setter Property="Height" Value="45"></Setter>
  28. <Setter Property="Width" Value="160"></Setter>
  29. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  30. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  31. <Setter Property="Template">
  32. <Setter.Value>
  33. <ControlTemplate TargetType="{x:Type Button}">
  34. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"
  35. SnapsToDevicePixels="true" CornerRadius="3,3,3,3">
  36. <ContentPresenter x:Name="contentPresenter"
  37. Focusable="False"
  38. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  39. Margin="{TemplateBinding Padding}"
  40. RecognizesAccessKey="True"
  41. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
  42. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  43. </Border>
  44. <ControlTemplate.Triggers>
  45. <Trigger Property="IsMouseOver" Value="true">
  46. <Setter Property="Background" TargetName="border" Value="{StaticResource buttonHover}"/>
  47. </Trigger>
  48. </ControlTemplate.Triggers>
  49. </ControlTemplate>
  50. </Setter.Value>
  51. </Setter>
  52. </Style>
  53. <Style TargetType="Button" x:Key="navButton">
  54. <Setter Property="Cursor" Value="Hand"/>
  55. <Setter Property="Foreground" Value="#FF004294" />
  56. <Setter Property="BorderBrush" Value="Blue" />
  57. <Setter Property="Margin" Value="5"/>
  58. <Setter Property="FontFamily" Value="Arial,SimSun" />
  59. <Setter Property="FontSize" Value="22"/>
  60. <Setter Property="Height" Value="45"></Setter>
  61. <Setter Property="Width" Value="160"></Setter>
  62. <Setter Property="HorizontalAlignment" Value="Right"></Setter>
  63. <Setter Property="VerticalAlignment" Value="Top"></Setter>
  64. <Setter Property="Template">
  65. <Setter.Value>
  66. <ControlTemplate TargetType="ButtonBase">
  67. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
  68. <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" Margin="{TemplateBinding Control.Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" />
  69. </Border>
  70. </ControlTemplate>
  71. </Setter.Value>
  72. </Setter>
  73. <Setter Property="Background" >
  74. <Setter.Value>
  75. <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主菜单按钮.png">
  76. </ImageBrush>
  77. </Setter.Value>
  78. </Setter>
  79. <Style.Triggers>
  80. <Trigger Property="IsMouseOver" Value="True">
  81. <Setter Property="Background" >
  82. <Setter.Value>
  83. <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主菜单按钮_悬停.png">
  84. </ImageBrush>
  85. </Setter.Value>
  86. </Setter>
  87. </Trigger>
  88. <Trigger Property="IsPressed" Value="true">
  89. <Setter Property="Background" >
  90. <Setter.Value>
  91. <ImageBrush ImageSource="pack://application:,,,/MECF.Framework.Common;component/Resources/Main/主菜单按钮_点击.png">
  92. </ImageBrush>
  93. </Setter.Value>
  94. </Setter>
  95. </Trigger>
  96. </Style.Triggers>
  97. </Style>
  98. </UserControl.Resources>
  99. <Grid x:Name="gridContent" Background="#33a7e4">
  100. <!--<Button x:Name="btnBackward" Visibility="Hidden" Tag="Backward" VerticalAlignment="Center" Style="{StaticResource NavUpButton}" Click="btn_Click" Margin="82,0,0,0" />-->
  101. <Button x:Name="btnExit" Tag="Exit" Content="{DynamicResource GlobalLableButtonExit}" VerticalAlignment="Center" Style="{StaticResource exitButton}" Click="btn_Click" Margin="0,0,166,10" />
  102. <!--<Image Width="34" Height="37" HorizontalAlignment="Left" Source="/MECF.Framework.Common;component/Resources/Main/下一个.png" Margin="82,0,0,10" />-->
  103. <!--<Image Width="34" Height="37" HorizontalAlignment="Right" Source="/MECF.Framework.Common;component/Resources/Main/下一个.png" Margin="0,0,82,10" />-->
  104. <!--<Button x:Name="btnForward" Visibility="Hidden" Tag="Forward" VerticalAlignment="Center" Style="{StaticResource NavBackButton}" Click="btn_Click" Margin="0,0,82,0"/>-->
  105. </Grid>
  106. </UserControl>