|
13 | 13 | </ResourceDictionary> |
14 | 14 | </ResourceDictionary.ThemeDictionaries>--> |
15 | 15 |
|
16 | | - <x:Double x:Key="OmnibarDefaultHeight">36</x:Double> |
17 | | - <CornerRadius x:Key="OmnibarDefaultCornerRadius">18</CornerRadius> |
| 16 | + <x:Double x:Key="OmnibarDefaultHeight">38</x:Double> |
| 17 | + <CornerRadius x:Key="OmnibarDefaultCornerRadius">19</CornerRadius> |
18 | 18 | <Thickness x:Key="OmnibarFocusedBorderThickness">2</Thickness> |
19 | 19 | <Thickness x:Key="OmnibarUnfocusedBorderThickness">1</Thickness> |
20 | 20 | <Thickness x:Key="OmnibarUnfocusedRootPadding">1</Thickness> |
|
26 | 26 |
|
27 | 27 | <Style x:Key="DefaultOmnibarStyle" TargetType="local:Omnibar"> |
28 | 28 | <Setter Property="IsTabStop" Value="True" /> |
29 | | - <Setter Property="Height" Value="{StaticResource OmnibarDefaultHeight}" /> |
30 | 29 | <Setter Property="UseSystemFocusVisuals" Value="True" /> |
31 | 30 | <Setter Property="HorizontalAlignment" Value="Stretch" /> |
32 | 31 | <Setter Property="Background" Value="{ThemeResource ControlFillColorDefaultBrush}" /> |
33 | | - <Setter Property="Padding" Value="{ThemeResource OmnibarUnfocusedRootPadding}" /> |
| 32 | + <Setter Property="Padding" Value="{StaticResource OmnibarUnfocusedRootPadding}" /> |
34 | 33 | <Setter Property="BorderBrush" Value="{ThemeResource CircleElevationBorderBrush}" /> |
35 | 34 | <Setter Property="BorderThickness" Value="{StaticResource OmnibarUnfocusedBorderThickness}" /> |
36 | 35 | <Setter Property="HorizontalContentAlignment" Value="Stretch" /> |
|
45 | 44 | <RowDefinition Height="Auto" /> |
46 | 45 | <RowDefinition Height="Auto" /> |
47 | 46 | </Grid.RowDefinitions> |
48 | | - <!-- input area --> |
| 47 | + <!-- Input area --> |
49 | 48 | <Grid |
50 | 49 | x:Name="PART_ModesHostGrid" |
51 | 50 | Grid.Row="0" |
52 | | - Margin="{TemplateBinding Padding}" |
| 51 | + Height="{StaticResource OmnibarDefaultHeight}" |
| 52 | + Padding="{TemplateBinding Padding}" |
53 | 53 | Background="{TemplateBinding Background}" |
54 | 54 | BorderBrush="{TemplateBinding BorderBrush}" |
55 | 55 | BorderThickness="{TemplateBinding BorderThickness}" |
|
76 | 76 | <ListView |
77 | 77 | HorizontalAlignment="Stretch" |
78 | 78 | IsItemClickEnabled="True" |
79 | | - ItemTemplate="{Binding CurrentActiveMode.SuggestionItemTemplate, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> |
| 79 | + ItemTemplate="{Binding CurrentActiveMode.SuggestionItemTemplate, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" |
| 80 | + ItemsSource="{Binding CurrentActiveMode.SuggestionItemsSource, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" /> |
80 | 81 |
|
81 | 82 | </Border> |
82 | 83 | </Popup> |
|
94 | 95 | </VisualState> |
95 | 96 | </VisualStateGroup> |
96 | 97 |
|
| 98 | + <VisualStateGroup x:Name="PopupVisibilityStates"> |
| 99 | + <VisualState x:Name="Closed" /> |
| 100 | + <VisualState x:Name="Opened"> |
| 101 | + <VisualState.Setters> |
| 102 | + <Setter Target="PART_ModesHostGrid.BorderBrush" Value="{ThemeResource AccentFillColorDefaultBrush}" /> |
| 103 | + <Setter Target="PART_ModesHostGrid.BorderThickness" Value="{StaticResource OmnibarFocusedBorderThickness}" /> |
| 104 | + <Setter Target="PART_ModesHostGrid.Margin" Value="-1" /> |
| 105 | + </VisualState.Setters> |
| 106 | + </VisualState> |
| 107 | + </VisualStateGroup> |
| 108 | + |
97 | 109 | </VisualStateManager.VisualStateGroups> |
98 | 110 | </Grid> |
99 | 111 | </ControlTemplate> |
|
0 commit comments