|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" |
| 5 | + xmlns:controls="using:Microsoft.UI.Xaml.Controls" |
5 | 6 | xmlns:conv="using:CollapseLauncher.Pages" |
6 | 7 | xmlns:interactivity="using:Microsoft.Xaml.Interactivity" |
7 | | - xmlns:controls="using:Microsoft.UI.Xaml.Controls" |
8 | 8 | xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives" |
9 | 9 | xmlns:ui="using:Windows.UI"> |
10 | 10 | <!-- ReSharper disable Xaml.InvalidResourceType --> |
|
2190 | 2190 | <!-- Fix https://github.com/microsoft/microsoft-ui-xaml/issues/8657 --> |
2191 | 2191 | <interactivity:Interaction.Behaviors> |
2192 | 2192 | <interactivity:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}" |
2193 | | - ComparisonCondition="Equal" |
2194 | | - Value="False"> |
| 2193 | + ComparisonCondition="Equal" |
| 2194 | + Value="False"> |
2195 | 2195 | <interactivity:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds" |
2196 | | - TargetObject="{Binding ElementName=Popup}" |
2197 | | - Value="True" /> |
| 2196 | + TargetObject="{Binding ElementName=Popup}" |
| 2197 | + Value="True" /> |
2198 | 2198 | </interactivity:DataTriggerBehavior> |
2199 | 2199 | </interactivity:Interaction.Behaviors> |
2200 | 2200 | <Border x:Name="PopupBorder" |
|
2627 | 2627 | <!-- Fix https://github.com/microsoft/microsoft-ui-xaml/issues/8657 --> |
2628 | 2628 | <interactivity:Interaction.Behaviors> |
2629 | 2629 | <interactivity:DataTriggerBehavior Binding="{Binding ShouldConstrainToRootBounds, ElementName=Popup}" |
2630 | | - ComparisonCondition="Equal" |
2631 | | - Value="False"> |
| 2630 | + ComparisonCondition="Equal" |
| 2631 | + Value="False"> |
2632 | 2632 | <interactivity:ChangePropertyAction PropertyName="ShouldConstrainToRootBounds" |
2633 | | - TargetObject="{Binding ElementName=Popup}" |
2634 | | - Value="True" /> |
| 2633 | + TargetObject="{Binding ElementName=Popup}" |
| 2634 | + Value="True" /> |
2635 | 2635 | </interactivity:DataTriggerBehavior> |
2636 | 2636 | </interactivity:Interaction.Behaviors> |
2637 | 2637 | <Border x:Name="PopupBorder" |
|
5018 | 5018 | </Style> |
5019 | 5019 |
|
5020 | 5020 | <!-- PipsPager styles --> |
5021 | | - <Style x:Key="DefaultPipsPagerStyle" TargetType="controls:PipsPager"> |
| 5021 | + <Style x:Key="DefaultPipsPagerStyle" |
| 5022 | + TargetType="controls:PipsPager"> |
5022 | 5023 | <Setter Property="Background" Value="Transparent" /> |
5023 | 5024 | <Setter Property="HorizontalAlignment" Value="Left" /> |
5024 | 5025 | <Setter Property="VerticalAlignment" Value="Top" /> |
|
5030 | 5031 | <Setter Property="Template"> |
5031 | 5032 | <Setter.Value> |
5032 | 5033 | <ControlTemplate TargetType="controls:PipsPager"> |
5033 | | - <StackPanel x:Name="RootPanel" Orientation="{TemplateBinding Orientation}" Background="{TemplateBinding Background}"> |
| 5034 | + <StackPanel x:Name="RootPanel" |
| 5035 | + Background="{TemplateBinding Background}" |
| 5036 | + Orientation="{TemplateBinding Orientation}"> |
5034 | 5037 |
|
5035 | 5038 | <VisualStateManager.VisualStateGroups> |
5036 | 5039 | <VisualStateGroup x:Name="PreviousPageButtonVisibilityStates"> |
|
5111 | 5114 | </VisualStateGroup> |
5112 | 5115 |
|
5113 | 5116 | </VisualStateManager.VisualStateGroups> |
5114 | | - <Button x:Name="PreviousPageButton" ToolTipService.ToolTip="{Binding ElementName=PreviousPageButton, Path=(AutomationProperties.Name)}" ToolTipService.Placement="Top" Style="{TemplateBinding PreviousButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
5115 | | - <ScrollViewer x:Name="PipsPagerScrollViewer" VerticalScrollBarVisibility="Hidden" VerticalScrollMode="Disabled" HorizontalScrollBarVisibility="Hidden" HorizontalScrollMode="Disabled" IsHorizontalScrollChainingEnabled="False" IsVerticalScrollChainingEnabled="False" HorizontalAlignment="Center" VerticalAlignment="Center"> |
5116 | | - <controls:ItemsRepeater x:Name="PipsPagerItemsRepeater" ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.PipsPagerItems}"> |
| 5117 | + <Button x:Name="PreviousPageButton" |
| 5118 | + HorizontalAlignment="Center" |
| 5119 | + VerticalAlignment="Center" |
| 5120 | + Style="{TemplateBinding PreviousButtonStyle}" |
| 5121 | + ToolTipService.Placement="Top" |
| 5122 | + ToolTipService.ToolTip="{Binding ElementName=PreviousPageButton, Path=(AutomationProperties.Name)}" /> |
| 5123 | + <ScrollViewer x:Name="PipsPagerScrollViewer" |
| 5124 | + HorizontalAlignment="Center" |
| 5125 | + VerticalAlignment="Center" |
| 5126 | + HorizontalScrollBarVisibility="Hidden" |
| 5127 | + HorizontalScrollMode="Disabled" |
| 5128 | + IsHorizontalScrollChainingEnabled="False" |
| 5129 | + IsVerticalScrollChainingEnabled="False" |
| 5130 | + VerticalScrollBarVisibility="Hidden" |
| 5131 | + VerticalScrollMode="Disabled"> |
| 5132 | + <controls:ItemsRepeater x:Name="PipsPagerItemsRepeater" |
| 5133 | + ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=TemplateSettings.PipsPagerItems}"> |
5117 | 5134 | <controls:ItemsRepeater.Layout> |
5118 | 5135 | <controls:StackLayout Orientation="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Orientation}" /> |
5119 | 5136 | </controls:ItemsRepeater.Layout> |
|
5124 | 5141 | </controls:ItemsRepeater.ItemTemplate> |
5125 | 5142 | </controls:ItemsRepeater> |
5126 | 5143 | </ScrollViewer> |
5127 | | - <Button x:Name="NextPageButton" ToolTipService.ToolTip="{Binding ElementName=NextPageButton, Path=(AutomationProperties.Name)}" ToolTipService.Placement="Bottom" Style="{TemplateBinding NextButtonStyle}" HorizontalAlignment="Center" VerticalAlignment="Center" /> |
| 5144 | + <Button x:Name="NextPageButton" |
| 5145 | + HorizontalAlignment="Center" |
| 5146 | + VerticalAlignment="Center" |
| 5147 | + Style="{TemplateBinding NextButtonStyle}" |
| 5148 | + ToolTipService.Placement="Bottom" |
| 5149 | + ToolTipService.ToolTip="{Binding ElementName=NextPageButton, Path=(AutomationProperties.Name)}" /> |
5128 | 5150 | </StackPanel> |
5129 | 5151 |
|
5130 | 5152 | </ControlTemplate> |
5131 | 5153 | </Setter.Value> |
5132 | 5154 | </Setter> |
5133 | 5155 | </Style> |
5134 | | - <Style BasedOn="{StaticResource DefaultPipsPagerStyle}" TargetType="controls:PipsPager" /> |
| 5156 | + <Style BasedOn="{StaticResource DefaultPipsPagerStyle}" |
| 5157 | + TargetType="controls:PipsPager" /> |
5135 | 5158 |
|
5136 | 5159 | <!-- Pivot styles --> |
5137 | | - <Style x:Key="ThinPivotHeaderItemStyle" TargetType="PivotHeaderItem" BasedOn="{StaticResource DefaultPivotHeaderItemStyle}"> |
| 5160 | + <Style x:Key="ThinPivotHeaderItemStyle" |
| 5161 | + BasedOn="{StaticResource DefaultPivotHeaderItemStyle}" |
| 5162 | + TargetType="PivotHeaderItem"> |
5138 | 5163 | <Setter Property="Height" Value="30" /> |
5139 | 5164 | </Style> |
5140 | | - <Style BasedOn="{StaticResource ThinPivotHeaderItemStyle}" TargetType="PivotHeaderItem" /> |
| 5165 | + <Style BasedOn="{StaticResource ThinPivotHeaderItemStyle}" |
| 5166 | + TargetType="PivotHeaderItem" /> |
5141 | 5167 | <Thickness x:Key="PivotNavButtonMargin">0,-6,0,0</Thickness> |
5142 | 5168 | </ResourceDictionary> |
5143 | 5169 | </ResourceDictionary.MergedDictionaries> |
|
0 commit comments