|
26 | 26 | <Grid x:Name="ToggleReplaceModeButtonGrid" |
27 | 27 | Grid.Row="0" |
28 | 28 | Grid.Column="0"> |
29 | | - <ToggleButton x:Name="ToggleReplaceModeButton" |
30 | | - x:Uid="FindAndReplace_ToggleReplaceModeButton" |
31 | | - Style="{StaticResource ExpanderToggleButtonStyle}" |
32 | | - Width="20" |
33 | | - MinHeight="32" |
34 | | - Content="{StaticResource ExpanderChevronRightGlyph}" |
35 | | - Click="ToggleReplaceModeButton_OnClick" |
36 | | - IsTabStop="False"> |
37 | | - <ToggleButton.Resources> |
38 | | - <x:Double x:Key="ExpandCollapseChevronCheckedAngle">90.0</x:Double> |
39 | | - </ToggleButton.Resources> |
40 | | - </ToggleButton> |
| 29 | + <Button x:Name="ToggleReplaceModeButton" |
| 30 | + x:Uid="FindAndReplace_ToggleReplaceModeButton" |
| 31 | + Style="{StaticResource TransparentButtonStyle}" |
| 32 | + Width="20" |
| 33 | + MinHeight="32" |
| 34 | + Padding="0" |
| 35 | + Click="ToggleReplaceModeButton_OnClick" |
| 36 | + IsTabStop="False"> |
| 37 | + <Button.Resources> |
| 38 | + <x:String x:Key="ExpandCollapseChevronAnimationDuration">00:00:00.200</x:String> |
| 39 | + <x:String x:Key="ExpandCollapseChevronKeySpline">0.1,0.25,0.1,0.75</x:String> |
| 40 | + |
| 41 | + <Storyboard x:Name="ReplaceBarClosed"> |
| 42 | + <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExpandCollapseChevronTransform" Storyboard.TargetProperty="Rotation"> |
| 43 | + <SplineDoubleKeyFrame KeyTime="{StaticResource ExpandCollapseChevronAnimationDuration}" Value="0" KeySpline="{StaticResource ExpandCollapseChevronKeySpline}" /> |
| 44 | + </DoubleAnimationUsingKeyFrames> |
| 45 | + </Storyboard> |
| 46 | + |
| 47 | + <Storyboard x:Name="ReplaceBarOpened"> |
| 48 | + <DoubleAnimationUsingKeyFrames Storyboard.TargetName="ExpandCollapseChevronTransform" Storyboard.TargetProperty="Rotation"> |
| 49 | + <SplineDoubleKeyFrame KeyTime="{StaticResource ExpandCollapseChevronAnimationDuration}" Value="90" KeySpline="{StaticResource ExpandCollapseChevronKeySpline}" /> |
| 50 | + </DoubleAnimationUsingKeyFrames> |
| 51 | + </Storyboard> |
| 52 | + </Button.Resources> |
| 53 | + <FontIcon FontSize="12" |
| 54 | + Glyph="" |
| 55 | + RenderTransformOrigin="0.5 0.5"> |
| 56 | + <FontIcon.RenderTransform> |
| 57 | + <CompositeTransform x:Name="ExpandCollapseChevronTransform" /> |
| 58 | + </FontIcon.RenderTransform> |
| 59 | + </FontIcon> |
| 60 | + </Button> |
41 | 61 | </Grid> |
42 | 62 |
|
43 | 63 | <RelativePanel x:Name="FindBarPlaceHolder" |
|
95 | 115 | </Line> |
96 | 116 | <Button x:Name="OptionButton" |
97 | 117 | x:Uid="FindAndReplace_SearchOptionButton" |
98 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 118 | + Style="{StaticResource TransparentButtonStyle}" |
99 | 119 | Width="32" |
100 | 120 | Height="32" |
101 | | - Content="" |
102 | | - FontSize="16" |
103 | 121 | IsTabStop="False"> |
| 122 | + <FontIcon FontSize="16" Glyph="" /> |
104 | 123 | <Button.Flyout> |
105 | 124 | <MenuFlyout Placement="BottomEdgeAlignedRight"> |
106 | 125 | <ToggleMenuFlyoutItem x:Name="MatchCaseToggle" |
|
145 | 164 | <Button x:Name="SearchBackwardButton" |
146 | 165 | x:Uid="FindAndReplace_SearchBackwardButton" |
147 | 166 | Grid.Column="0" |
148 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 167 | + Style="{StaticResource TransparentButtonStyle}" |
149 | 168 | Width="36" |
150 | 169 | Height="32" |
151 | | - Content="" |
152 | | - FontSize="16" |
| 170 | + Padding="0" |
153 | 171 | Click="SearchBackwardButton_OnClick" |
154 | 172 | IsEnabled="False" |
155 | 173 | IsTabStop="False"> |
| 174 | + <FontIcon FontSize="16" Glyph="" /> |
156 | 175 | <Button.KeyboardAccelerators> |
157 | 176 | <KeyboardAccelerator Modifiers="Shift" Key="F3" /> |
158 | 177 | </Button.KeyboardAccelerators> |
|
161 | 180 | <Button x:Name="SearchForwardButton" |
162 | 181 | x:Uid="FindAndReplace_SearchForwardButton" |
163 | 182 | Grid.Column="1" |
164 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 183 | + Style="{StaticResource TransparentButtonStyle}" |
165 | 184 | Width="36" |
166 | 185 | Height="32" |
167 | | - Content="" |
168 | | - FontSize="16" |
| 186 | + Padding="0" |
169 | 187 | Click="SearchForwardButton_OnClick" |
170 | 188 | IsEnabled="False" |
171 | 189 | IsTabStop="False"> |
| 190 | + <FontIcon FontSize="16" Glyph="" /> |
172 | 191 | <Button.KeyboardAccelerators> |
173 | 192 | <KeyboardAccelerator Key="F3" /> |
174 | 193 | </Button.KeyboardAccelerators> |
|
177 | 196 | <Button x:Name="DismissButton" |
178 | 197 | x:Uid="FindAndReplace_DismissButton" |
179 | 198 | Grid.Column="2" |
180 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 199 | + Style="{StaticResource TransparentButtonStyle}" |
181 | 200 | Width="36" |
182 | 201 | Height="32" |
183 | | - Content="" |
184 | | - FontSize="16" |
| 202 | + Padding="0" |
185 | 203 | Click="DismissButton_OnClick" |
186 | | - IsTabStop="False" /> |
| 204 | + IsTabStop="False"> |
| 205 | + <FontIcon FontSize="16" Glyph="" /> |
| 206 | + </Button> |
187 | 207 | </Grid> |
188 | 208 |
|
189 | 209 | <Grid x:Name="ReplaceBarPlaceHolder" |
|
218 | 238 | <Button x:Name="ReplaceButton" |
219 | 239 | x:Uid="FindAndReplace_ReplaceButton" |
220 | 240 | Grid.Column="0" |
221 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 241 | + Style="{StaticResource TransparentButtonStyle}" |
222 | 242 | Width="36" |
223 | 243 | Height="32" |
224 | | - Content="" |
225 | | - FontSize="16" |
| 244 | + Padding="0" |
226 | 245 | Click="ReplaceButton_OnClick" |
227 | 246 | IsEnabled="False" |
228 | 247 | IsTabStop="False"> |
| 248 | + <FontIcon FontSize="16" Glyph="" /> |
229 | 249 | <Button.KeyboardAccelerators> |
230 | 250 | <KeyboardAccelerator Modifiers="Menu" Key="R" /> |
231 | 251 | </Button.KeyboardAccelerators> |
|
234 | 254 | <Button x:Name="ReplaceAllButton" |
235 | 255 | x:Uid="FindAndReplace_ReplaceAllButton" |
236 | 256 | Grid.Column="1" |
237 | | - Style="{StaticResource ChromelessIconButtonStyle}" |
| 257 | + Style="{StaticResource TransparentButtonStyle}" |
238 | 258 | Width="36" |
239 | 259 | Height="32" |
240 | | - Content="" |
241 | | - FontSize="16" |
| 260 | + Padding="0" |
242 | 261 | Click="ReplaceAllButton_OnClick" |
243 | 262 | IsEnabled="False" |
244 | 263 | IsTabStop="False"> |
| 264 | + <FontIcon FontSize="16" Glyph="" /> |
245 | 265 | <Button.KeyboardAccelerators> |
246 | 266 | <KeyboardAccelerator Modifiers="Control,Menu" Key="Enter" /> |
247 | 267 | </Button.KeyboardAccelerators> |
|
0 commit comments