|
8 | 8 | d:DesignWidth="340" |
9 | 9 | mc:Ignorable="d"> |
10 | 10 |
|
11 | | - <Grid x:Name="FindAndReplaceRootGrid" KeyDown="FindAndReplaceRootGrid_KeyDown"> |
| 11 | + <Grid x:Name="FindAndReplaceRootGrid" |
| 12 | + Padding="1,1,1,1" |
| 13 | + KeyDown="FindAndReplaceRootGrid_KeyDown"> |
12 | 14 | <Grid.RowDefinitions> |
13 | 15 | <RowDefinition Height="Auto" /> |
14 | 16 | <RowDefinition Height="Auto" /> |
|
21 | 23 |
|
22 | 24 | <Grid x:Name="ToggleReplaceModeButtonGrid" |
23 | 25 | Grid.Row="0" |
24 | | - Grid.Column="0" |
25 | | - Height="36" |
26 | | - Padding="1,1,1,1"> |
| 26 | + Grid.Column="0"> |
27 | 27 |
|
28 | 28 | <Button x:Name="ToggleReplaceModeButton" |
29 | 29 | x:Uid="FindAndReplace_ToggleReplaceModeButton" |
30 | | - Grid.Column="0" |
31 | 30 | Style="{StaticResource DismissButtonStyle}" |
32 | 31 | Width="20" |
33 | | - Padding="0" |
34 | | - Content="" |
| 32 | + MinHeight="32" |
35 | 33 | d:Content="" |
36 | | - FontFamily="Segoe MDL2 Assets" |
37 | 34 | FontSize="12" |
38 | 35 | Click="ToggleReplaceModeButton_OnClick" |
39 | 36 | IsTabStop="False" /> |
|
42 | 39 | <RelativePanel x:Name="FindBarPlaceHolder" |
43 | 40 | Grid.Row="0" |
44 | 41 | Grid.Column="1" |
45 | | - Height="36" |
46 | | - Padding="1,1,1,1"> |
| 42 | + Height="36"> |
47 | 43 | <findAndReplace:FindAndReplaceTextBox x:Name="FindBar" |
48 | 44 | x:Uid="FindAndReplace_FindBar" |
49 | 45 | RelativePanel.AlignLeftWithPanel="True" |
|
63 | 59 | LostFocus="FindBar_LostFocus" |
64 | 60 | d:PlaceholderText="Find" /> |
65 | 61 |
|
66 | | - <Grid x:Name="OptionButtonGrid" |
67 | | - RelativePanel.AlignRightWithPanel="True" |
68 | | - Background="Transparent"> |
69 | | - <Border x:Name="OptionButtonSelectionIndicator" |
70 | | - BorderBrush="{StaticResource SystemControlBackgroundAccentBrush}" |
71 | | - BorderThickness="1" |
72 | | - Margin="9" |
73 | | - VerticalAlignment="Bottom" |
74 | | - Visibility="Collapsed" |
75 | | - d:Visibility="Visible" /> |
| 62 | + <Grid x:Name="OptionButtonGrid" RelativePanel.AlignRightWithPanel="True"> |
| 63 | + <Line x:Name="OptionButtonSelectionIndicator" |
| 64 | + X1="9" Y1="24" |
| 65 | + X2="23" Y2="24" |
| 66 | + Stroke="{ThemeResource SystemControlHighlightAccentBrush}" |
| 67 | + StrokeThickness="2" |
| 68 | + StrokeStartLineCap="Round" |
| 69 | + StrokeEndLineCap="Round" |
| 70 | + Visibility="Collapsed" |
| 71 | + d:Visibility="Visible" |
| 72 | + IsHitTestVisible="False" /> |
76 | 73 | <Button x:Name="OptionButton" |
77 | 74 | x:Uid="FindAndReplace_SearchOptionButton" |
78 | 75 | Style="{StaticResource DismissButtonStyle}" |
79 | | - Width="36" |
| 76 | + Width="32" |
| 77 | + Height="32" |
80 | 78 | Content="" |
81 | | - FontFamily="Segoe MDL2 Assets" |
82 | 79 | FontSize="16" |
83 | 80 | IsTabStop="False"> |
84 | 81 | <Button.Flyout> |
|
87 | 84 | x:Uid="FindAndReplace_SearchOptionToggleButton_MatchCase" |
88 | 85 | Click="OptionButtonFlyoutItem_OnClick"> |
89 | 86 | <ToggleMenuFlyoutItem.KeyboardAccelerators> |
90 | | - <KeyboardAccelerator Key="C" Modifiers="Menu" /> |
| 87 | + <KeyboardAccelerator Modifiers="Menu" Key="C" /> |
91 | 88 | </ToggleMenuFlyoutItem.KeyboardAccelerators> |
92 | 89 | </ToggleMenuFlyoutItem> |
93 | 90 | <ToggleMenuFlyoutItem x:Name="MatchWholeWordToggle" |
94 | 91 | x:Uid="FindAndReplace_SearchOptionToggleButton_MatchWholeWord" |
95 | 92 | Click="OptionButtonFlyoutItem_OnClick"> |
96 | 93 | <ToggleMenuFlyoutItem.KeyboardAccelerators> |
97 | | - <KeyboardAccelerator Key="W" Modifiers="Menu" /> |
| 94 | + <KeyboardAccelerator Modifiers="Menu" Key="W" /> |
98 | 95 | </ToggleMenuFlyoutItem.KeyboardAccelerators> |
99 | 96 | </ToggleMenuFlyoutItem> |
100 | 97 | <ToggleMenuFlyoutItem x:Name="UseRegexToggle" |
101 | 98 | x:Uid="FindAndReplace_SearchOptionToggleButton_UseRegex" |
102 | 99 | Click="OptionButtonFlyoutItem_OnClick"> |
103 | 100 | <ToggleMenuFlyoutItem.KeyboardAccelerators> |
104 | | - <KeyboardAccelerator Key="E" Modifiers="Menu" /> |
| 101 | + <KeyboardAccelerator Modifiers="Menu" Key="E" /> |
105 | 102 | </ToggleMenuFlyoutItem.KeyboardAccelerators> |
106 | 103 | </ToggleMenuFlyoutItem> |
107 | 104 | </MenuFlyout> |
|
112 | 109 |
|
113 | 110 | <Grid Grid.Row="0" |
114 | 111 | Grid.Column="2" |
115 | | - Height="36" |
116 | | - Padding="1,1,1,1"> |
| 112 | + Padding="2,0,0,0" |
| 113 | + VerticalAlignment="Top"> |
117 | 114 | <Grid.ColumnDefinitions> |
118 | 115 | <ColumnDefinition Width="Auto" /> |
119 | 116 | <ColumnDefinition Width="Auto" /> |
|
125 | 122 | Grid.Column="0" |
126 | 123 | Style="{StaticResource DismissButtonStyle}" |
127 | 124 | Width="36" |
128 | | - Content="" |
129 | | - FontFamily="Segoe MDL2 Assets" |
| 125 | + Height="32" |
| 126 | + Content="" |
130 | 127 | FontSize="16" |
131 | 128 | Click="SearchBackwardButton_OnClick" |
132 | 129 | IsEnabled="False" |
133 | 130 | IsTabStop="False"> |
134 | 131 | <Button.KeyboardAccelerators> |
135 | | - <KeyboardAccelerator Key="F3" Modifiers="Shift" /> |
| 132 | + <KeyboardAccelerator Modifiers="Shift" Key="F3" /> |
136 | 133 | </Button.KeyboardAccelerators> |
137 | 134 | </Button> |
138 | 135 |
|
|
141 | 138 | Grid.Column="1" |
142 | 139 | Style="{StaticResource DismissButtonStyle}" |
143 | 140 | Width="36" |
| 141 | + Height="32" |
144 | 142 | Content="" |
145 | | - FontFamily="Segoe MDL2 Assets" |
146 | 143 | FontSize="16" |
147 | 144 | Click="SearchForwardButton_OnClick" |
148 | 145 | IsEnabled="False" |
|
157 | 154 | Grid.Column="2" |
158 | 155 | Style="{StaticResource DismissButtonStyle}" |
159 | 156 | Width="36" |
| 157 | + Height="32" |
160 | 158 | Content="" |
161 | | - FontFamily="Segoe MDL2 Assets" |
162 | 159 | FontSize="16" |
163 | 160 | Click="DismissButton_OnClick" |
164 | 161 | IsTabStop="False" /> |
|
167 | 164 | <Grid x:Name="ReplaceBarPlaceHolder" |
168 | 165 | Grid.Row="1" |
169 | 166 | Grid.Column="1" |
170 | | - Height="36" |
171 | | - Padding="1,1,1,1"> |
| 167 | + VerticalAlignment="Top"> |
172 | 168 | <findAndReplace:FindAndReplaceTextBox x:Name="ReplaceBar" |
173 | 169 | x:Uid="FindAndReplace_ReplaceBar" |
174 | 170 | Style="{StaticResource TransparentTextBoxStyle}" |
|
188 | 184 |
|
189 | 185 | <Grid Grid.Row="1" |
190 | 186 | Grid.Column="2" |
191 | | - Height="36" |
192 | | - Padding="1,1,1,1"> |
| 187 | + Padding="2,0,0,0" |
| 188 | + VerticalAlignment="Top"> |
193 | 189 | <Grid> |
194 | 190 | <Grid.ColumnDefinitions> |
195 | 191 | <ColumnDefinition Width="Auto" /> |
|
201 | 197 | Grid.Column="0" |
202 | 198 | Style="{StaticResource DismissButtonStyle}" |
203 | 199 | Width="36" |
| 200 | + Height="32" |
204 | 201 | Content="" |
205 | | - FontFamily="Segoe MDL2 Assets" |
206 | 202 | FontSize="16" |
207 | 203 | Click="ReplaceButton_OnClick" |
208 | 204 | IsEnabled="False" |
209 | 205 | IsTabStop="False"> |
210 | 206 | <Button.KeyboardAccelerators> |
211 | | - <KeyboardAccelerator Key="R" Modifiers="Menu" /> |
| 207 | + <KeyboardAccelerator Modifiers="Menu" Key="R" /> |
212 | 208 | </Button.KeyboardAccelerators> |
213 | 209 | </Button> |
214 | 210 |
|
|
217 | 213 | Grid.Column="1" |
218 | 214 | Style="{StaticResource DismissButtonStyle}" |
219 | 215 | Width="36" |
| 216 | + Height="32" |
220 | 217 | Content="" |
221 | | - FontFamily="Segoe MDL2 Assets" |
222 | 218 | FontSize="16" |
223 | 219 | Click="ReplaceAllButton_OnClick" |
224 | 220 | IsEnabled="False" |
225 | 221 | IsTabStop="False"> |
226 | 222 | <Button.KeyboardAccelerators> |
227 | | - <KeyboardAccelerator Key="Enter" Modifiers="Control,Menu" /> |
| 223 | + <KeyboardAccelerator Modifiers="Control,Menu" Key="Enter" /> |
228 | 224 | </Button.KeyboardAccelerators> |
229 | 225 | </Button> |
230 | 226 | </Grid> |
|
0 commit comments