|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- <Window
- x:Class="XHWK.WKTool.ScreenRecordingToolbarWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="ScreenRecordingToolbarWindow"
- Width="420"
- Height="58"
- Margin="0"
- AllowsTransparency="True"
- Left="0"
- ShowInTaskbar="False"
- Top="0"
- Topmost="True"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Background>
- <SolidColorBrush Opacity="0" Color="#292C2E" />
- </Window.Background>
- <Grid>
- <Grid
- x:Name="GridSrToobar"
- MouseLeave="gridToobarTwo_MouseLeave"
- Visibility="Visible">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="60" />
- <ColumnDefinition Width="360" />
- </Grid.ColumnDefinitions>
- <Border
- Grid.ColumnSpan="2"
- Background="White"
- BorderBrush="#FF638AFF"
- BorderThickness="3,3,0,3"
- CornerRadius="29 0 0 29" />
- <!-- 开始暂停 -->
- <Grid Grid.Column="0">
- <Button
- x:Name="BtnRecordingScreen"
- Click="BtnRecordingScreen_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="开始"
- Visibility="Visible">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Start.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.6" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Start.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Button
- x:Name="BtnRecordingScreenPause"
- Click="BtnRecordingScreen_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="暂停"
- Visibility="Collapsed">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Pause.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.6" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Source" Value="/SkinImages/SR/SR_Pause.png" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- <!-- 其他按钮 -->
- <Grid Grid.Column="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="10*" />
- <RowDefinition Height="38*" />
- <RowDefinition Height="10*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="10" />
- <ColumnDefinition Width="38" />
- <ColumnDefinition Width="20" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="20" />
- <ColumnDefinition Width="38" />
- <ColumnDefinition Width="6" />
- <ColumnDefinition Width="38" />
- <ColumnDefinition Width="20" />
- <ColumnDefinition Width="38" />
- <ColumnDefinition Width="10" />
- </Grid.ColumnDefinitions>
- <Grid Grid.Row="1" Grid.Column="1">
- <!-- 停止 -->
- <Button
- x:Name="BtnStopRecordingScreen"
- Click="BtnStopRecordingScreen_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="停止">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image
- x:Name="BtnImages"
- Width="24"
- Source="/SkinImages/SR/SR_Stop.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="9*" />
- <RowDefinition Height="20*" />
- <RowDefinition Height="9*" />
- </Grid.RowDefinitions>
- <Label
- Grid.Row="1"
- Width="2"
- Margin="0"
- Padding="5"
- Background="#FF638AFF" />
- </Grid>
- <Grid
- Grid.Row="0"
- Grid.RowSpan="3"
- Grid.Column="3">
- <Label
- x:Name="TxbTime"
- Grid.Column="1"
- Padding="0"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Content="00:00:00"
- FontFamily="/星火微课;component/Resources/#Quartz"
- FontSize="36"
- Foreground="#FF3F6FFF"
- Visibility="Visible" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="4">
- <Grid.RowDefinitions>
- <RowDefinition Height="9*" />
- <RowDefinition Height="20*" />
- <RowDefinition Height="9*" />
- </Grid.RowDefinitions>
- <Label
- Grid.Row="1"
- Width="2"
- Margin="0"
- Padding="5"
- Background="#FF638AFF" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="5">
- <!-- 蓝笔 -->
- <Button
- x:Name="BtnPenBlue"
- Click="BtnBrush_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="蓝笔">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <!-- 选中 -->
- <Button
- x:Name="BtnPenBlue_CL"
- Click="BtnBrush_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="批注"
- Visibility="Collapsed">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenBlue.png" />
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="7">
- <!-- 红笔 -->
- <Button
- x:Name="BtnPenRed"
- Click="BtnBlackPenTwo_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="批注">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <!-- 选中 -->
- <Button
- x:Name="BtnPenRed_CL"
- Click="BtnBlackPenTwo_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="批注"
- Visibility="Collapsed">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_PenRed.png" />
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- <Grid Grid.Row="1" Grid.Column="8">
- <Grid.RowDefinitions>
- <RowDefinition Height="9*" />
- <RowDefinition Height="20*" />
- <RowDefinition Height="9*" />
- </Grid.RowDefinitions>
- <Label
- Grid.Row="1"
- Width="2"
- Margin="0"
- Padding="5"
- Background="#FF638AFF" />
- </Grid>
- <Grid Grid.Row="1" Grid.Column="9">
- <!-- 返回 -->
- <Button
- x:Name="BtnReturn"
- Click="BtnReturn_Click"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"
- ToolTip="返回">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Image x:Name="BtnImages" Source="/SkinImages/SR/SR_Out.png" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BtnImages" Property="Opacity" Value="0.4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </Window>
|