|
37 | 37 |
|
38 | 38 | <Setter Property="Height" Value="{StaticResource OmnibarDefaultHeight}" /> |
39 | 39 |
|
| 40 | + <Setter Property="IsTabStop" Value="False" /> |
| 41 | + |
40 | 42 | <Setter Property="Template"> |
41 | 43 | <Setter.Value> |
42 | 44 | <ControlTemplate TargetType="local:Omnibar"> |
|
79 | 81 | x:Name="PART_SuggestionsPopup" |
80 | 82 | Grid.Row="1" |
81 | 83 | IsLightDismissEnabled="False" |
| 84 | + IsTabStop="False" |
82 | 85 | ShouldConstrainToRootBounds="False" |
83 | 86 | VerticalOffset="1"> |
84 | 87 | <Border |
|
119 | 122 | <Setter Property="HorizontalContentAlignment" Value="Left" /> |
120 | 123 | <Setter Property="VerticalAlignment" Value="Stretch" /> |
121 | 124 |
|
| 125 | + <Setter Property="IsTabStop" Value="True" /> |
| 126 | + <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> |
| 127 | + |
122 | 128 | <Setter Property="Template"> |
123 | 129 | <Setter.Value> |
124 | 130 | <ControlTemplate TargetType="local:OmnibarMode"> |
125 | | - <Grid x:Name="PART_RootGrid" Height="{TemplateBinding Height}"> |
126 | | - <!-- Clickable Area --> |
127 | | - <Grid HorizontalAlignment="Left" Background="Transparent"> |
128 | | - <Border |
129 | | - x:Name="PART_ModeButton" |
130 | | - Width="{StaticResource OmnibarModeDefaultClickAreaWidth}" |
131 | | - Height="{TemplateBinding Height}" |
132 | | - Background="{TemplateBinding Background}" |
133 | | - BorderBrush="{TemplateBinding BorderBrush}" |
134 | | - BorderThickness="{TemplateBinding BorderThickness}" |
135 | | - CornerRadius="{TemplateBinding CornerRadius}" |
136 | | - ToolTipService.ToolTip="{Binding ModeName, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}"> |
137 | | - <Border.BackgroundTransition> |
138 | | - <BrushTransition Duration="0:0:0.083" /> |
139 | | - </Border.BackgroundTransition> |
140 | | - |
141 | | - <ContentPresenter |
142 | | - x:Name="PART_ModeButtonIconPresenter" |
143 | | - HorizontalAlignment="Center" |
144 | | - VerticalAlignment="Center" |
145 | | - Content="{Binding IconOnInactive, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> |
146 | | - </Border> |
147 | | - </Grid> |
| 131 | + <Grid |
| 132 | + x:Name="PART_RootGrid" |
| 133 | + Height="{TemplateBinding Height}" |
| 134 | + HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
| 135 | + Background="{TemplateBinding Background}" |
| 136 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 137 | + TabFocusNavigation="Local"> |
| 138 | + <!-- Mode Button --> |
| 139 | + <Border |
| 140 | + x:Name="PART_ModeButton" |
| 141 | + Width="{StaticResource OmnibarModeDefaultClickAreaWidth}" |
| 142 | + Height="{TemplateBinding Height}" |
| 143 | + Background="{TemplateBinding Background}" |
| 144 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 145 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 146 | + CornerRadius="{TemplateBinding CornerRadius}" |
| 147 | + IsTabStop="True" |
| 148 | + ToolTipService.ToolTip="{Binding ModeName, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" |
| 149 | + UseSystemFocusVisuals="{StaticResource UseSystemFocusVisuals}"> |
| 150 | + <Border.BackgroundTransition> |
| 151 | + <BrushTransition Duration="0:0:0.083" /> |
| 152 | + </Border.BackgroundTransition> |
| 153 | + |
| 154 | + <ContentPresenter |
| 155 | + x:Name="PART_ModeButtonIconPresenter" |
| 156 | + HorizontalAlignment="Center" |
| 157 | + VerticalAlignment="Center" |
| 158 | + Content="{Binding IconOnInactive, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> |
| 159 | + </Border> |
148 | 160 |
|
149 | 161 | <ContentPresenter |
150 | 162 | x:Name="PART_InactiveContent" |
151 | | - Grid.Column="0" |
152 | | - Grid.ColumnSpan="2" |
153 | 163 | HorizontalAlignment="Stretch" |
154 | 164 | VerticalAlignment="Stretch" |
155 | 165 | HorizontalContentAlignment="Stretch" |
|
237 | 247 | x:Key="DefaultOmnibarTextBoxStyle" |
238 | 248 | BasedOn="{StaticResource AutoSuggestBoxTextBoxStyle}" |
239 | 249 | TargetType="TextBox"> |
| 250 | + |
240 | 251 | <Setter Property="Foreground" Value="{ThemeResource TextControlForeground}" /> |
241 | 252 | <Setter Property="Background" Value="{ThemeResource TextControlBackground}" /> |
242 | 253 | <Setter Property="BorderBrush" Value="{ThemeResource TextControlBorderBrush}" /> |
243 | | - <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}" /> |
244 | 254 | <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}" /> |
| 255 | + |
245 | 256 | <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" /> |
246 | 257 | <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" /> |
247 | | - <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto" /> |
248 | | - <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto" /> |
249 | | - <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" /> |
250 | | - <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" /> |
251 | | - <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" /> |
| 258 | + <Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" /> |
| 259 | + |
252 | 260 | <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" /> |
253 | 261 | <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" /> |
254 | 262 | <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}" /> |
| 263 | + |
255 | 264 | <Setter Property="UseSystemFocusVisuals" Value="{ThemeResource IsApplicationFocusVisualKindReveal}" /> |
| 265 | + |
| 266 | + <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextControlSelectionHighlightColor}" /> |
256 | 267 | <Setter Property="ContextFlyout" Value="{StaticResource TextControlCommandBarContextFlyout}" /> |
257 | 268 | <Setter Property="SelectionFlyout" Value="{StaticResource TextControlCommandBarSelectionFlyout}" /> |
258 | | - <Setter Property="CornerRadius" Value="{ThemeResource ControlCornerRadius}" /> |
259 | | - <Setter Property="BackgroundSizing" Value="InnerBorderEdge" /> |
| 269 | + |
| 270 | + <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto" /> |
| 271 | + <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto" /> |
| 272 | + <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" /> |
| 273 | + <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" /> |
| 274 | + <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" /> |
| 275 | + |
260 | 276 | <Setter Property="Template"> |
261 | 277 | <Setter.Value> |
262 | 278 | <ControlTemplate TargetType="TextBox"> |
|
0 commit comments