|
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
5 | 5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
6 | 6 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
| 7 | + xmlns:ui="http://schemas.modernwpf.com/2019" |
7 | 8 | xmlns:viewModel="clr-namespace:Flow.Launcher.ViewModel"
|
8 | 9 | d:DataContext="{d:DesignInstance viewModel:PluginViewModel}"
|
9 | 10 | d:DesignHeight="300"
|
10 | 11 | d:DesignWidth="300"
|
11 | 12 | mc:Ignorable="d">
|
12 |
| - <Border |
13 |
| - Width="Auto" |
14 |
| - Height="52" |
15 |
| - Margin="0" |
16 |
| - Padding="0" |
17 |
| - BorderThickness="0 1 0 0" |
18 |
| - CornerRadius="0" |
19 |
| - Style="{DynamicResource SettingGroupBox}" |
20 |
| - Visibility="{Binding ActionKeywordsVisibility}"> |
21 |
| - <DockPanel Margin="22 0 18 0" VerticalAlignment="Center"> |
22 |
| - <TextBlock |
23 |
| - Margin="48 0 10 0" |
24 |
| - DockPanel.Dock="Left" |
25 |
| - Style="{StaticResource Glyph}"> |
26 |
| -  |
27 |
| - </TextBlock> |
28 |
| - <TextBlock |
29 |
| - HorizontalAlignment="Left" |
30 |
| - VerticalAlignment="Center" |
31 |
| - DockPanel.Dock="Left" |
32 |
| - Style="{DynamicResource SettingTitleLabel}" |
33 |
| - Text="{DynamicResource actionKeywords}" /> |
34 |
| - <Button |
35 |
| - Width="100" |
36 |
| - Height="34" |
37 |
| - Margin="5 0 0 0" |
38 |
| - HorizontalAlignment="Right" |
39 |
| - Command="{Binding SetActionKeywordsCommand}" |
40 |
| - Content="{Binding ActionKeywordsText}" |
41 |
| - Cursor="Hand" |
42 |
| - DockPanel.Dock="Right" |
43 |
| - FontWeight="Bold" |
44 |
| - ToolTip="{DynamicResource actionKeywordsTooltip}" /> |
45 |
| - </DockPanel> |
46 |
| - </Border> |
| 13 | + <StackPanel Orientation="Vertical"> |
| 14 | + <Border |
| 15 | + Width="Auto" |
| 16 | + Height="52" |
| 17 | + Margin="0" |
| 18 | + Padding="0" |
| 19 | + BorderThickness="0 1 0 0" |
| 20 | + CornerRadius="0" |
| 21 | + Style="{DynamicResource SettingGroupBox}" |
| 22 | + Visibility="{Binding ActionKeywordsVisibility}"> |
| 23 | + <DockPanel Margin="22 0 18 0" VerticalAlignment="Center"> |
| 24 | + <TextBlock |
| 25 | + Margin="48 0 10 0" |
| 26 | + DockPanel.Dock="Left" |
| 27 | + Style="{StaticResource Glyph}"> |
| 28 | +  |
| 29 | + </TextBlock> |
| 30 | + <TextBlock |
| 31 | + HorizontalAlignment="Left" |
| 32 | + VerticalAlignment="Center" |
| 33 | + DockPanel.Dock="Left" |
| 34 | + Style="{DynamicResource SettingTitleLabel}" |
| 35 | + Text="{DynamicResource actionKeywords}" /> |
| 36 | + <Button |
| 37 | + Width="100" |
| 38 | + Height="34" |
| 39 | + Margin="5 0 0 0" |
| 40 | + HorizontalAlignment="Right" |
| 41 | + Command="{Binding SetActionKeywordsCommand}" |
| 42 | + Content="{Binding ActionKeywordsText}" |
| 43 | + Cursor="Hand" |
| 44 | + DockPanel.Dock="Right" |
| 45 | + FontWeight="Bold" |
| 46 | + ToolTip="{DynamicResource actionKeywordsTooltip}" /> |
| 47 | + </DockPanel> |
| 48 | + </Border> |
| 49 | + <Border |
| 50 | + Width="Auto" |
| 51 | + Height="52" |
| 52 | + Margin="0" |
| 53 | + Padding="0" |
| 54 | + BorderThickness="0 1 0 0" |
| 55 | + CornerRadius="0" |
| 56 | + Style="{DynamicResource SettingGroupBox}" |
| 57 | + Visibility="{Binding ActionKeywordsVisibility}"> |
| 58 | + <DockPanel Margin="22 0 18 0" VerticalAlignment="Center"> |
| 59 | + <TextBlock |
| 60 | + Margin="48 0 10 0" |
| 61 | + DockPanel.Dock="Left" |
| 62 | + Style="{StaticResource Glyph}"> |
| 63 | +  |
| 64 | + </TextBlock> |
| 65 | + <TextBlock |
| 66 | + HorizontalAlignment="Left" |
| 67 | + VerticalAlignment="Center" |
| 68 | + DockPanel.Dock="Left" |
| 69 | + Style="{DynamicResource SettingTitleLabel}" |
| 70 | + Text="{DynamicResource globalSearch}" /> |
| 71 | + <ui:ToggleSwitch |
| 72 | + Height="34" |
| 73 | + Margin="5 0 0 0" |
| 74 | + HorizontalAlignment="Right" |
| 75 | + Cursor="Hand" |
| 76 | + DockPanel.Dock="Right" |
| 77 | + IsOn="{Binding GlobalSearch}" |
| 78 | + OffContent="{DynamicResource disable}" |
| 79 | + OnContent="{DynamicResource enable}" /> |
| 80 | + </DockPanel> |
| 81 | + </Border> |
| 82 | + </StackPanel> |
47 | 83 | </UserControl>
|
0 commit comments