20211010_CZPM_upperpc/垂直剖面动态观测系统/View/VideoRecord.xaml

53 lines
3.5 KiB
Plaintext
Raw Permalink Normal View History

2023-07-27 03:01:29 +00:00
<UserControl x:Class="垂直剖面动态观测系统.View.VideoRecord"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:垂直剖面动态观测系统.View"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<ResourceDictionary Source="../Assets/Styles/DefaultStyle.xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
<SolidColorBrush x:Key="TextBox.Static.Border" Color="#FFABAdB3"/>
<SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
<SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
<ControlTemplate TargetType="Button" x:Key="LoginButtonTemplete">
<Border Background="#004EA1" CornerRadius="5">
<Grid>
<Border CornerRadius="4" Background="#22FFFFFF" Name="back" Visibility="Hidden"/>
<ContentControl Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{TemplateBinding Foreground}"/>
<Border CornerRadius="4" Background="#22FFFFFF" Name="BK" Visibility="Hidden" BorderThickness="2" BorderBrush="Black"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Visibility" Value="Visible" TargetName="back"/>
</Trigger>
<Trigger Property="IsPressed" Value="true">
<Setter Property="Visibility" Value="Visible" TargetName="BK"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="90*"/>
<RowDefinition Height="10*"/>
</Grid.RowDefinitions>
<Border CornerRadius="10" Margin="20" Background="Black">
</Border>
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="20,0">
<Button VerticalAlignment="Center" Content="播放" Margin="10,0" Height="35" Width="50" Foreground="#ADD8E6" FontSize="16" Template="{DynamicResource LoginButtonTemplete}"/>
<Button VerticalAlignment="Center" Content="暂停" Margin="10,0" Height="35" Width="50" Foreground="#ADD8E6" FontSize="16" Template="{DynamicResource LoginButtonTemplete}"/>
<Button VerticalAlignment="Center" Content="开始录制" Margin="10,0" Height="35" Width="70" Foreground="#ADD8E6" FontSize="16" Template="{DynamicResource LoginButtonTemplete}"/>
<Button VerticalAlignment="Center" Content="停止录制" Margin="10,0" Height="35" Width="70" Foreground="#ADD8E6" FontSize="16" Template="{DynamicResource LoginButtonTemplete}"/>
</StackPanel>
</Grid>
</UserControl>