Browse Source

feat(client): add hot key `F11` to maximize

tags/0.1.0^2
Timothy Liu 2 years ago
parent
commit
7502ee8053
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      docs/使用文档.md
  2. +9
    -0
      logic/Client/MainWindow.xaml

+ 1
- 1
docs/使用文档.md View File

@@ -170,7 +170,7 @@ start cmd /k win64\Client.exe --cl --playbackFile .\video.thuaipb --playbackSpee

## WPF简易调试界面

![client](https://raw.githubusercontent.com/shangfengh/THUAI6/new/resource/clientsmaller.png)
![client](https://raw.githubusercontent.com/eesast/THUAI6/dev/resource/clientsmaller.png)

### 界面介绍



+ 9
- 0
logic/Client/MainWindow.xaml View File

@@ -10,8 +10,17 @@

<Window.Resources>
<ImageBrush x:Key="Logo" ImageSource="Logo.png"/>
<RoutedUICommand x:Key="maximize_Pressed" Text="maximize_Pressed"/>
</Window.Resources>

<Window.CommandBindings>
<CommandBinding Command="{StaticResource maximize_Pressed}" Executed="ClickToMaxmize"/>
</Window.CommandBindings>

<Window.InputBindings>
<KeyBinding Key="F11" Command="{StaticResource maximize_Pressed}"/>
</Window.InputBindings>

<Grid Name="MainGrid" Margin="0,0,0,0">
<!--Title行删去了两个赋值语句,等之后补回来-->
<Grid.RowDefinitions>


Loading…
Cancel
Save