|
28 | 28 | Grid.Column="0"> |
29 | 29 | <Button x:Name="ToggleReplaceModeButton" |
30 | 30 | x:Uid="FindAndReplace_ToggleReplaceModeButton" |
31 | | - Style="{StaticResource DismissButtonStyle}" |
| 31 | + Style="{StaticResource TransparentButtonStyle}" |
32 | 32 | Width="20" |
33 | 33 | MinHeight="32" |
34 | | - d:Content="" |
35 | | - FontSize="12" |
| 34 | + Padding="0" |
36 | 35 | Click="ToggleReplaceModeButton_OnClick" |
37 | | - IsTabStop="False" /> |
| 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> |
38 | 61 | </Grid> |
39 | 62 |
|
40 | 63 | <RelativePanel x:Name="FindBarPlaceHolder" |
|
92 | 115 | </Line> |
93 | 116 | <Button x:Name="OptionButton" |
94 | 117 | x:Uid="FindAndReplace_SearchOptionButton" |
95 | | - Style="{StaticResource DismissButtonStyle}" |
| 118 | + Style="{StaticResource TransparentButtonStyle}" |
96 | 119 | Width="32" |
97 | 120 | Height="32" |
98 | | - Content="" |
99 | | - FontSize="16" |
100 | 121 | IsTabStop="False"> |
| 122 | + <FontIcon FontSize="16" Glyph="" /> |
101 | 123 | <Button.Flyout> |
102 | 124 | <MenuFlyout Placement="BottomEdgeAlignedRight"> |
103 | 125 | <ToggleMenuFlyoutItem x:Name="MatchCaseToggle" |
|
142 | 164 | <Button x:Name="SearchBackwardButton" |
143 | 165 | x:Uid="FindAndReplace_SearchBackwardButton" |
144 | 166 | Grid.Column="0" |
145 | | - Style="{StaticResource DismissButtonStyle}" |
| 167 | + Style="{StaticResource TransparentButtonStyle}" |
146 | 168 | Width="36" |
147 | 169 | Height="32" |
148 | | - Content="" |
149 | | - FontSize="16" |
| 170 | + Padding="0" |
150 | 171 | Click="SearchBackwardButton_OnClick" |
151 | 172 | IsEnabled="False" |
152 | 173 | IsTabStop="False"> |
| 174 | + <FontIcon FontSize="16" Glyph="" /> |
153 | 175 | <Button.KeyboardAccelerators> |
154 | 176 | <KeyboardAccelerator Modifiers="Shift" Key="F3" /> |
155 | 177 | </Button.KeyboardAccelerators> |
|
158 | 180 | <Button x:Name="SearchForwardButton" |
159 | 181 | x:Uid="FindAndReplace_SearchForwardButton" |
160 | 182 | Grid.Column="1" |
161 | | - Style="{StaticResource DismissButtonStyle}" |
| 183 | + Style="{StaticResource TransparentButtonStyle}" |
162 | 184 | Width="36" |
163 | 185 | Height="32" |
164 | | - Content="" |
165 | | - FontSize="16" |
| 186 | + Padding="0" |
166 | 187 | Click="SearchForwardButton_OnClick" |
167 | 188 | IsEnabled="False" |
168 | 189 | IsTabStop="False"> |
| 190 | + <FontIcon FontSize="16" Glyph="" /> |
169 | 191 | <Button.KeyboardAccelerators> |
170 | 192 | <KeyboardAccelerator Key="F3" /> |
171 | 193 | </Button.KeyboardAccelerators> |
|
174 | 196 | <Button x:Name="DismissButton" |
175 | 197 | x:Uid="FindAndReplace_DismissButton" |
176 | 198 | Grid.Column="2" |
177 | | - Style="{StaticResource DismissButtonStyle}" |
| 199 | + Style="{StaticResource TransparentButtonStyle}" |
178 | 200 | Width="36" |
179 | 201 | Height="32" |
180 | | - Content="" |
181 | | - FontSize="16" |
| 202 | + Padding="0" |
182 | 203 | Click="DismissButton_OnClick" |
183 | | - IsTabStop="False" /> |
| 204 | + IsTabStop="False"> |
| 205 | + <FontIcon FontSize="16" Glyph="" /> |
| 206 | + </Button> |
184 | 207 | </Grid> |
185 | 208 |
|
186 | 209 | <Grid x:Name="ReplaceBarPlaceHolder" |
|
215 | 238 | <Button x:Name="ReplaceButton" |
216 | 239 | x:Uid="FindAndReplace_ReplaceButton" |
217 | 240 | Grid.Column="0" |
218 | | - Style="{StaticResource DismissButtonStyle}" |
| 241 | + Style="{StaticResource TransparentButtonStyle}" |
219 | 242 | Width="36" |
220 | 243 | Height="32" |
221 | | - Content="" |
222 | | - FontSize="16" |
| 244 | + Padding="0" |
223 | 245 | Click="ReplaceButton_OnClick" |
224 | 246 | IsEnabled="False" |
225 | 247 | IsTabStop="False"> |
| 248 | + <FontIcon FontSize="16" Glyph="" /> |
226 | 249 | <Button.KeyboardAccelerators> |
227 | 250 | <KeyboardAccelerator Modifiers="Menu" Key="R" /> |
228 | 251 | </Button.KeyboardAccelerators> |
|
231 | 254 | <Button x:Name="ReplaceAllButton" |
232 | 255 | x:Uid="FindAndReplace_ReplaceAllButton" |
233 | 256 | Grid.Column="1" |
234 | | - Style="{StaticResource DismissButtonStyle}" |
| 257 | + Style="{StaticResource TransparentButtonStyle}" |
235 | 258 | Width="36" |
236 | 259 | Height="32" |
237 | | - Content="" |
238 | | - FontSize="16" |
| 260 | + Padding="0" |
239 | 261 | Click="ReplaceAllButton_OnClick" |
240 | 262 | IsEnabled="False" |
241 | 263 | IsTabStop="False"> |
| 264 | + <FontIcon FontSize="16" Glyph="" /> |
242 | 265 | <Button.KeyboardAccelerators> |
243 | 266 | <KeyboardAccelerator Modifiers="Control,Menu" Key="Enter" /> |
244 | 267 | </Button.KeyboardAccelerators> |
|
0 commit comments