зеркало из https://github.com/DeGsoft/maui-linux.git
1091 строка
74 KiB
Plaintext
1091 строка
74 KiB
Plaintext
|
<ResourceDictionary
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:uwp="using:Xamarin.Forms.Platform.UWP"
|
||
|
x:Class="Xamarin.Forms.Platform.UWP.Resources">
|
||
|
|
||
|
<ResourceDictionary.MergedDictionaries>
|
||
|
<ResourceDictionary Source="FormsTextBoxStyle.xaml" />
|
||
|
</ResourceDictionary.MergedDictionaries>
|
||
|
|
||
|
<uwp:CaseConverter x:Key="LowerConverter" ConvertToUpper="False" />
|
||
|
<uwp:CaseConverter x:Key="UpperConverter" ConvertToUpper="True" />
|
||
|
<uwp:HeightConverter x:Key="HeightConverter" />
|
||
|
<uwp:CollapseWhenEmptyConverter x:Key="CollapseWhenEmpty" />
|
||
|
<uwp:BoolToVisibilityConverter x:Key="BoolVisibilityConverter" />
|
||
|
<uwp:BoolToVisibilityConverter x:Key="InvertedBoolVisibilityConverter" FalseIsVisible="True" />
|
||
|
<uwp:PageToRenderedElementConverter x:Key="PageToRenderer" />
|
||
|
<uwp:ImageConverter x:Key="ImageConverter" />
|
||
|
<uwp:ViewToRendererConverter x:Key="ViewToRenderer" />
|
||
|
<uwp:ColorConverter x:Key="ColorConverter" />
|
||
|
<uwp:HorizontalTextAlignmentConverter x:Key="HorizontalTextAlignmentConverter" />
|
||
|
<uwp:TextAlignmentToHorizontalAlignmentConverter x:Key="AlignmentConverter" />
|
||
|
<uwp:KeyboardConverter x:Key="KeyboardConverter" />
|
||
|
<uwp:MasterBackgroundConverter x:Key="MasterBackgroundConverter" />
|
||
|
<x:Double x:Key="TitleBarHeight">48</x:Double>
|
||
|
|
||
|
<DataTemplate x:Key="PushPinTemplate">
|
||
|
<Path Data="M 50.7361,983.661 C 44.1895,983.661 38.8369,988.97 38.8369,995.517 39.8649,1003.3 45.246,1008.1 49.8547,1014.12 50.2838,1014.66 51.2336,1014.66 51.6619,1014.12 52.1384,1013.48 52.7575,1012.73 53.4248,1011.91 55.0322,1012.07 56.4727,1012.32 57.5676,1012.71 58.407,1013 59.06,1013.33 59.4192,1013.63 59.7784,1013.93 59.7716,1014.11 59.7716,1014.16 59.7716,1014.21 59.7716,1014.39 59.4192,1014.69 59.06,1014.99 58.407,1015.32 57.5676,1015.61 55.8888,1016.2 53.4519,1016.63 50.7361,1016.63 48.0204,1016.63 45.5399,1016.2 43.8611,1015.61 43.0218,1015.32 42.3695,1014.99 42.0103,1014.69 41.6504,1014.39 41.6135,1014.21 41.6135,1014.16 41.6135,1014.11 41.6511,1013.93 42.0103,1013.63 42.3695,1013.33 43.0218,1013 43.8611,1012.71 44.3158,1012.55 44.8455,1012.35 45.4039,1012.22 L 43.8611,1010.33 C 43.6124,1010.4 43.3441,1010.46 43.1119,1010.55 42.1005,1010.9 41.2318,1011.31 40.5555,1011.87 39.8799,1012.43 39.3216,1013.22 39.3216,1014.16 39.3216,1015.1 39.8799,1015.85 40.5555,1016.41 41.2318,1016.97 42.1005,1017.42 43.1119,1017.77 45.1356,1018.48 47.8025,1018.92 50.7362,1018.92 54.437,1018.81 57.9892,1018.36 60.8733,1016.41 62.5084,1014.79 62.0756,1013.4 60.8733,1011.87 60.1969,1011.31 59.3726,1010.9 58.3612,1010.55 57.4331,1010.22 56.3503,1009.94 55.1878,1009.75 56.1992,1008.51 57.2362,1007.18 58.2289,1005.79 60.5599,1002.51 62.5918,998.968 62.5918,995.517 62.5918,988.97 57.2836,983.661 50.7362,983.661 Z M 50.7361,989.655 C 47.571,989.655 44.9627,992.219 44.9627,995.385 44.9627,998.55 47.571,1001.16 50.7361,1001.16 53.902,1001.16 56.4659,998.55 56.4659,995.385 56.4659,992.219 53.902,989.655 50.7361,989.655 Z M 50.7361,991.947 C 52.6591,991.947 54.174,993.462 54.174,995.385 54.174,997.307 52.6591,998.866 50.7361,998.866 48.8139,998.866 47.2546,997.307 47.2546,995.385 47.2546,993.462 48.8139,991.947 50.7361,991.947 Z" Fill="#000000" Height="74" Stretch="Fill" Margin="0" Width="50"/>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<Style x:Key="PageTitleStyle" TargetType="TextBlock">
|
||
|
<Setter Property="FontWeight" Value="Bold" />
|
||
|
</Style>
|
||
|
|
||
|
<Style x:Key="RootContainerStyle" TargetType="Canvas">
|
||
|
<Setter Property="Background" Value="{ThemeResource ApplicationPageBackgroundThemeBrush}" />
|
||
|
</Style>
|
||
|
|
||
|
<Style x:Key="ActionSheetStyle" TargetType="ContentDialog" />
|
||
|
<Style x:Key="ActionSheetList" TargetType="ListView">
|
||
|
<Setter Property="SelectionMode" Value="None" />
|
||
|
<Setter Property="ItemContainerStyle">
|
||
|
<Setter.Value>
|
||
|
<Style TargetType="ListViewItem">
|
||
|
<Setter Property="Margin" Value="0" />
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||
|
</Style>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
<Setter Property="ItemTemplate">
|
||
|
<Setter.Value>
|
||
|
<DataTemplate>
|
||
|
<TextBlock Text="{Binding}" HorizontalAlignment="Stretch" VerticalAlignment="Center" Style="{ThemeResource SubtitleTextBlockStyle}" />
|
||
|
</DataTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<ControlTemplate TargetType="ContentDialog" x:Key="MyContentDialogControlTemplate">
|
||
|
<Border x:Name="Container">
|
||
|
<Grid x:Name="LayoutRoot">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Border x:Name="BackgroundElement"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
FlowDirection="{TemplateBinding FlowDirection}"
|
||
|
BorderThickness="{ThemeResource ContentDialogBorderWidth}"
|
||
|
BorderBrush="{ThemeResource SystemControlForegroundAccentBrush}"
|
||
|
MaxWidth="{TemplateBinding MaxWidth}"
|
||
|
MaxHeight="{TemplateBinding MaxHeight}"
|
||
|
MinWidth="{TemplateBinding MinWidth}"
|
||
|
MinHeight="{TemplateBinding MinHeight}" >
|
||
|
<Grid x:Name="DialogSpace" VerticalAlignment="Stretch">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<ScrollViewer x:Name="ContentScrollViewer"
|
||
|
HorizontalScrollBarVisibility="Disabled"
|
||
|
VerticalScrollBarVisibility="Disabled"
|
||
|
ZoomMode="Disabled"
|
||
|
Margin="{ThemeResource ContentDialogContentScrollViewerMargin}"
|
||
|
IsTabStop="False">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<!--CHANGED HERE. Used to be Auto as well-->
|
||
|
<RowDefinition />
|
||
|
</Grid.RowDefinitions>
|
||
|
<ContentControl x:Name="Title"
|
||
|
Margin="{ThemeResource ContentDialogTitleMargin}"
|
||
|
Content="{TemplateBinding Title}"
|
||
|
ContentTemplate="{TemplateBinding TitleTemplate}"
|
||
|
FontSize="20"
|
||
|
FontFamily="Segoe UI"
|
||
|
FontWeight="Normal"
|
||
|
Foreground="{TemplateBinding Foreground}"
|
||
|
HorizontalAlignment="Left"
|
||
|
VerticalAlignment="Top"
|
||
|
IsTabStop="False"
|
||
|
MaxHeight="{ThemeResource ContentDialogTitleMaxHeight}" >
|
||
|
<ContentControl.Template>
|
||
|
<ControlTemplate TargetType="ContentControl">
|
||
|
<ContentPresenter
|
||
|
Content="{TemplateBinding Content}"
|
||
|
MaxLines="2"
|
||
|
TextWrapping="Wrap"
|
||
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||
|
Margin="{TemplateBinding Padding}"
|
||
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
|
||
|
</ControlTemplate>
|
||
|
</ContentControl.Template>
|
||
|
</ContentControl>
|
||
|
<ContentPresenter x:Name="Content"
|
||
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||
|
Content="{TemplateBinding Content}"
|
||
|
FontSize="{ThemeResource ControlContentThemeFontSize}"
|
||
|
FontFamily="{ThemeResource ContentControlThemeFontFamily}"
|
||
|
Margin="{ThemeResource ContentDialogContentMargin}"
|
||
|
Foreground="{TemplateBinding Foreground}"
|
||
|
Grid.Row="1"
|
||
|
TextWrapping="Wrap" />
|
||
|
</Grid>
|
||
|
</ScrollViewer>
|
||
|
<Grid x:Name="CommandSpace" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Border x:Name="Button1Host"
|
||
|
Margin="{ThemeResource ContentDialogButton1HostMargin}"
|
||
|
MinWidth="{ThemeResource ContentDialogButtonMinWidth}"
|
||
|
MaxWidth="{ThemeResource ContentDialogButtonMaxWidth}"
|
||
|
Height="{ThemeResource ContentDialogButtonHeight}"
|
||
|
HorizontalAlignment="Stretch" />
|
||
|
<Border x:Name="Button2Host"
|
||
|
Margin="{ThemeResource ContentDialogButton2HostMargin}"
|
||
|
MinWidth="{ThemeResource ContentDialogButtonMinWidth}"
|
||
|
MaxWidth="{ThemeResource ContentDialogButtonMaxWidth}"
|
||
|
Height="{ThemeResource ContentDialogButtonHeight}"
|
||
|
Grid.Column="1"
|
||
|
HorizontalAlignment="Stretch" />
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
|
||
|
<Style x:Key="JumpListGrid" TargetType="GridView">
|
||
|
<Setter Property="ItemTemplate">
|
||
|
<Setter.Value>
|
||
|
<DataTemplate>
|
||
|
<Border Background="{ThemeResource SystemColorControlAccentBrush}" Padding="5" Margin="3" MinHeight="80" MinWidth="80">
|
||
|
<TextBlock Text="{Binding}" Style="{ThemeResource SubheaderTextBlockStyle}" VerticalAlignment="Bottom" />
|
||
|
</Border>
|
||
|
</DataTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="Button" x:Key="PaneButton">
|
||
|
<Setter Property="FontFamily" Value="{ThemeResource SymbolThemeFontFamily}" />
|
||
|
<Setter Property="FontSize" Value="20" />
|
||
|
<Setter Property="Height" Value="48" />
|
||
|
<Setter Property="Width" Value="48" />
|
||
|
<Setter Property="Content" Value="" />
|
||
|
</Style>
|
||
|
|
||
|
<DataTemplate x:Key="CellTemplate">
|
||
|
<uwp:CellControl HorizontalContentAlignment="Stretch" />
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="TableRoot">
|
||
|
<TextBlock Margin="0,20,0,0" Text="{Binding Title,Converter={StaticResource LowerConverter}}" Style="{ThemeResource TitleTextBlockStyle}" Visibility="{Binding Text,RelativeSource={RelativeSource Mode=Self},Converter={StaticResource CollapseWhenEmpty}}" />
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="TableSection">
|
||
|
<TextBlock Margin="0,20,0,0" Text="{Binding Title,Converter={StaticResource LowerConverter}}" Style="{ThemeResource SubtitleTextBlockStyle}" Visibility="{Binding Text,RelativeSource={RelativeSource Mode=Self},Converter={StaticResource CollapseWhenEmpty}}" />
|
||
|
</DataTemplate>
|
||
|
|
||
|
<uwp:ListViewGroupStyleSelector x:Key="ListViewGroupSelector" />
|
||
|
|
||
|
<DataTemplate x:Key="ListViewGroupTemplate">
|
||
|
<TextBlock Text="{Binding}" Style="{ThemeResource BaseTextBlockStyle}" />
|
||
|
</DataTemplate>
|
||
|
|
||
|
<GroupStyle x:Key="ListViewGroup" HidesIfEmpty="False">
|
||
|
<GroupStyle.HeaderContainerStyle>
|
||
|
<Style TargetType="ListViewHeaderItem">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate>
|
||
|
<uwp:ListGroupHeaderPresenter />
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</GroupStyle.HeaderContainerStyle>
|
||
|
<GroupStyle.HeaderTemplate>
|
||
|
<DataTemplate>
|
||
|
<uwp:CellControl IsGroupHeader="true" HorizontalContentAlignment="Stretch" />
|
||
|
</DataTemplate>
|
||
|
</GroupStyle.HeaderTemplate>
|
||
|
</GroupStyle>
|
||
|
|
||
|
<DataTemplate x:Key="ViewCell">
|
||
|
<ContentControl DataContext="{Binding Cell}">
|
||
|
<ContentPresenter Height="{Binding RenderHeight, Converter={StaticResource HeightConverter}}" Content="{Binding View, Converter={StaticResource ViewToRenderer}}" />
|
||
|
</ContentControl>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="ContainedPageTemplate">
|
||
|
<ContentPresenter Content="{Binding Converter={StaticResource PageToRenderer}}">
|
||
|
<ContentPresenter.Resources>
|
||
|
<Style TargetType="uwp:PageControl">
|
||
|
<Setter Property="Background" Value="Transparent" />
|
||
|
</Style>
|
||
|
</ContentPresenter.Resources>
|
||
|
</ContentPresenter>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="View">
|
||
|
<ContentPresenter Content="{Binding Converter={StaticResource ViewToRenderer}}" />
|
||
|
</DataTemplate>
|
||
|
|
||
|
<SolidColorBrush x:Key="TabButtonPointerOverBackgroundBrush" Color="#44888888" />
|
||
|
<SolidColorBrush x:Key="TabButtonBackgroundBrush" Color="#29888888" />
|
||
|
|
||
|
<Style x:Key="TitleToolbar" TargetType="uwp:FormsCommandBar">
|
||
|
<Setter Property="ContentTemplate">
|
||
|
<Setter.Value>
|
||
|
<DataTemplate>
|
||
|
<TextBlock Text="{Binding}" Margin="10,0,0,0" VerticalAlignment="Center" Style="{ThemeResource TitleTextBlockStyle}" />
|
||
|
</DataTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="uwp:MasterDetailControl">
|
||
|
<Setter Property="ToolbarForeground" Value="{ThemeResource DefaultTextForegroundThemeBrush}" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="uwp:MasterDetailControl">
|
||
|
<SplitView x:Name="SplitView" IsPaneOpen="{Binding IsPaneOpen,RelativeSource={RelativeSource TemplatedParent},Mode=TwoWay}" DisplayMode="Overlay">
|
||
|
<SplitView.Pane>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<StackPanel Grid.Row="0" Orientation="Horizontal" Visibility="{TemplateBinding MasterToolbarVisibility}" Background="{TemplateBinding ToolbarBackground}">
|
||
|
<Button Name="PaneTogglePane" Style="{ThemeResource PaneButton}" Foreground="{TemplateBinding ToolbarForeground}" />
|
||
|
<TextBlock Style="{ThemeResource TitleTextBlockStyle}" VerticalAlignment="Center" Text="{TemplateBinding MasterTitle}" Visibility="{TemplateBinding MasterTitleVisibility}" Foreground="{TemplateBinding ToolbarForeground}"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<ContentPresenter x:Name="MasterPresenter" Grid.Row="1" Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Master}" />
|
||
|
</Grid>
|
||
|
</SplitView.Pane>
|
||
|
<SplitView.Content>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<uwp:FormsCommandBar x:Name="CommandBar" Grid.Row="0" Foreground="{TemplateBinding ToolbarForeground}" Background="{TemplateBinding ToolbarBackground}" Visibility="{TemplateBinding DetailTitleVisibility}" VerticalContentAlignment="Top">
|
||
|
<uwp:FormsCommandBar.Content>
|
||
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
|
||
|
<Button Name="ContentTogglePane" Style="{ThemeResource PaneButton}" Foreground="{TemplateBinding ToolbarForeground}" Visibility="{Binding ElementName=SplitView,Path=IsPaneOpen,Converter={StaticResource InvertedBoolVisibilityConverter}}" />
|
||
|
<ContentControl VerticalAlignment="Top" VerticalContentAlignment="Center" Height="{StaticResource TitleBarHeight}">
|
||
|
<TextBlock Text="{TemplateBinding DetailTitle}" Margin="10,0,0,0" Foreground="{TemplateBinding ToolbarForeground}" Style="{ThemeResource TitleTextBlockStyle}" />
|
||
|
</ContentControl>
|
||
|
</StackPanel>
|
||
|
</uwp:FormsCommandBar.Content>
|
||
|
</uwp:FormsCommandBar>
|
||
|
|
||
|
<ContentPresenter x:Name="DetailPresenter" Grid.Row="1" Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Detail}" />
|
||
|
</Grid>
|
||
|
</SplitView.Content>
|
||
|
</SplitView>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style x:Key="FormsListViewItem" TargetType="ListViewItem">
|
||
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
||
|
<Setter Property="Background" Value="Transparent" />
|
||
|
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
|
||
|
<Setter Property="TabNavigation" Value="Local" />
|
||
|
<Setter Property="IsHoldingEnabled" Value="True" />
|
||
|
<Setter Property="Padding" Value="0" />
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
|
<Setter Property="MinWidth" Value="{ThemeResource ListViewItemMinWidth}" />
|
||
|
<Setter Property="MinHeight" Value="0" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="ListViewItem">
|
||
|
<ListViewItemPresenter
|
||
|
CheckBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
|
||
|
ContentMargin="{TemplateBinding Padding}"
|
||
|
CheckMode="Inline"
|
||
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
||
|
CheckBoxBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
|
||
|
DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}"
|
||
|
DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
|
||
|
DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}"
|
||
|
DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
|
||
|
FocusBorderBrush="{ThemeResource SystemControlForegroundAltHighBrush}"
|
||
|
FocusSecondaryBorderBrush="{ThemeResource SystemControlForegroundBaseHighBrush}"
|
||
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
PointerOverForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
|
||
|
PressedBackground="{ThemeResource SystemControlHighlightListMediumBrush}"
|
||
|
PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}"
|
||
|
PointerOverBackground="{ThemeResource SystemControlHighlightListLowBrush}"
|
||
|
ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
|
||
|
SelectedPressedBackground="{ThemeResource SystemControlHighlightListAccentHighBrush}"
|
||
|
SelectionCheckMarkVisualEnabled="True"
|
||
|
SelectedForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
|
||
|
SelectedPointerOverBackground="{ThemeResource SystemControlHighlightListAccentMediumBrush}"
|
||
|
SelectedBackground="{ThemeResource SystemControlHighlightListAccentLowBrush}"
|
||
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<Style x:Key="FormsCarouselViewItem" TargetType="FlipViewItem">
|
||
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
||
|
<Setter Property="Background" Value="Transparent" />
|
||
|
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
|
||
|
<Setter Property="TabNavigation" Value="Local" />
|
||
|
<Setter Property="IsHoldingEnabled" Value="True" />
|
||
|
<Setter Property="Padding" Value="0" />
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||
|
<Setter Property="MinWidth" Value="{ThemeResource ListViewItemMinWidth}" />
|
||
|
<Setter Property="MinHeight" Value="0" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="ListViewItem">
|
||
|
<ListViewItemPresenter
|
||
|
CheckBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
|
||
|
ContentMargin="{TemplateBinding Padding}"
|
||
|
CheckMode="Inline"
|
||
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
||
|
CheckBoxBrush="{ThemeResource SystemControlForegroundBaseMediumHighBrush}"
|
||
|
DragForeground="{ThemeResource ListViewItemDragForegroundThemeBrush}"
|
||
|
DragOpacity="{ThemeResource ListViewItemDragThemeOpacity}"
|
||
|
DragBackground="{ThemeResource ListViewItemDragBackgroundThemeBrush}"
|
||
|
DisabledOpacity="{ThemeResource ListViewItemDisabledThemeOpacity}"
|
||
|
FocusBorderBrush="{ThemeResource SystemControlForegroundAltHighBrush}"
|
||
|
FocusSecondaryBorderBrush="{ThemeResource SystemControlForegroundBaseHighBrush}"
|
||
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
PointerOverForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
|
||
|
PressedBackground="{ThemeResource SystemControlHighlightListMediumBrush}"
|
||
|
PlaceholderBackground="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}"
|
||
|
PointerOverBackground="{ThemeResource SystemControlHighlightListLowBrush}"
|
||
|
ReorderHintOffset="{ThemeResource ListViewItemReorderHintThemeOffset}"
|
||
|
SelectedPressedBackground="{ThemeResource SystemControlHighlightListAccentHighBrush}"
|
||
|
SelectionCheckMarkVisualEnabled="True"
|
||
|
SelectedForeground="{ThemeResource SystemControlHighlightAltBaseHighBrush}"
|
||
|
SelectedPointerOverBackground="{ThemeResource SystemControlHighlightListAccentMediumBrush}"
|
||
|
SelectedBackground="{ThemeResource SystemControlHighlightListAccentLowBrush}"
|
||
|
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<DataTemplate x:Key="TextCell">
|
||
|
<StackPanel>
|
||
|
<TextBlock
|
||
|
Text="{Binding Text}"
|
||
|
Style="{ThemeResource BaseTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />
|
||
|
|
||
|
<TextBlock
|
||
|
Text="{Binding Detail}"
|
||
|
Style="{ThemeResource BodyTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
|
||
|
x:Name="detail"/>
|
||
|
</StackPanel>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="ListViewHeaderTextCell">
|
||
|
<StackPanel>
|
||
|
<TextBlock
|
||
|
Text="{Binding Text}"
|
||
|
Style="{ThemeResource SubheaderTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />
|
||
|
|
||
|
<TextBlock
|
||
|
Text="{Binding Detail}"
|
||
|
Style="{ThemeResource BodyTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
|
||
|
x:Name="detail" />
|
||
|
</StackPanel>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="ImageCell">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<Image Grid.Column="0" Grid.RowSpan="2"
|
||
|
DataContext="{Binding ImageSource, Converter={StaticResource ImageConverter}}"
|
||
|
Source="{Binding Value}"
|
||
|
VerticalAlignment="Center" />
|
||
|
|
||
|
<TextBlock Grid.Column="1" Grid.Row="0"
|
||
|
Text="{Binding Text}"
|
||
|
Style="{ThemeResource BaseTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding TextColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />
|
||
|
|
||
|
<TextBlock Grid.Column="1" Grid.Row="1"
|
||
|
Text="{Binding Detail}"
|
||
|
Style="{ThemeResource BodyTextBlockStyle}"
|
||
|
Visibility="{Binding Text,RelativeSource={RelativeSource Self}, Converter={StaticResource CollapseWhenEmpty}}"
|
||
|
Foreground="{Binding DetailColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}"
|
||
|
x:Name="detail" />
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="SwitchCell">
|
||
|
<Grid HorizontalAlignment="Stretch">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<TextBlock Grid.Column="0" Text="{Binding Text}" VerticalAlignment="Center" Style="{ThemeResource BaseTextBlockStyle}" />
|
||
|
|
||
|
<ToggleSwitch Grid.Column="1" IsOn="{Binding On, Mode=TwoWay}" OnContent="" OffContent="" VerticalAlignment="Center" />
|
||
|
</Grid>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<DataTemplate x:Key="EntryCell">
|
||
|
<uwp:EntryCellTextBox IsEnabled="{Binding IsEnabled}" Header="{Binding}" Text="{Binding Text, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" TextAlignment="{Binding HorizontalTextAlignment,Converter={StaticResource HorizontalTextAlignmentConverter}}" PlaceholderText="{Binding Placeholder}" InputScope="{Binding Keyboard,Converter={StaticResource KeyboardConverter}}" HorizontalAlignment="Stretch">
|
||
|
<uwp:EntryCellTextBox.HeaderTemplate>
|
||
|
<DataTemplate>
|
||
|
<TextBlock Text="{Binding Label}" Style="{ThemeResource BaseTextBlockStyle}" Foreground="{Binding LabelColor, Converter={StaticResource ColorConverter}, ConverterParameter=DefaultTextForegroundThemeBrush}" />
|
||
|
</DataTemplate>
|
||
|
</uwp:EntryCellTextBox.HeaderTemplate>
|
||
|
</uwp:EntryCellTextBox>
|
||
|
</DataTemplate>
|
||
|
|
||
|
<Style x:Key="TabbedPageStyle" TargetType="uwp:FormsPivot">
|
||
|
<Setter Property="HeaderTemplate">
|
||
|
<Setter.Value>
|
||
|
<DataTemplate>
|
||
|
<TextBlock Text="{Binding Title}" Style="{ThemeResource BodyTextBlockStyle}" />
|
||
|
</DataTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
|
||
|
<Setter Property="ItemTemplate">
|
||
|
<Setter.Value>
|
||
|
<DataTemplate>
|
||
|
<uwp:TabbedPagePresenter Content="{Binding}" ContentTemplate="{ThemeResource ContainedPageTemplate}" />
|
||
|
</DataTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="uwp:FormsPivot">
|
||
|
<Grid x:Name="RootElement" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="NavigationButtonsVisibility">
|
||
|
<VisualState x:Name="NavigationButtonsHidden"/>
|
||
|
<VisualState x:Name="NavigationButtonsVisible">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="NextButton">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="NextButton">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PreviousButton">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="1"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsEnabled" Storyboard.TargetName="PreviousButton">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="True"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
<VisualStateGroup x:Name="HeaderStates">
|
||
|
<VisualState x:Name="HeaderDynamic"/>
|
||
|
<VisualState x:Name="HeaderStatic">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="Header">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="StaticHeader">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<uwp:FormsCommandBar x:Name="CommandBar" Grid.Row="0" VerticalContentAlignment="Top" Background="{TemplateBinding ToolbarBackground}" Visibility="{TemplateBinding ToolbarVisibility}" >
|
||
|
<uwp:FormsCommandBar.Content>
|
||
|
<ContentControl VerticalAlignment="Top" VerticalContentAlignment="Center" Height="{ThemeResource TitleBarHeight}" >
|
||
|
<TextBlock Text="{TemplateBinding Title}" VerticalAlignment="Center" Padding="10,0,0,0" Foreground="{TemplateBinding ToolbarForeground}" Style="{ThemeResource TitleTextBlockStyle}" />
|
||
|
</ContentControl>
|
||
|
</uwp:FormsCommandBar.Content>
|
||
|
</uwp:FormsCommandBar>
|
||
|
<Grid Grid.Row="1">
|
||
|
<Grid.Resources>
|
||
|
<ControlTemplate x:Key="NextTemplate" TargetType="Button">
|
||
|
<Border x:Name="Root" BorderBrush="{ThemeResource SystemControlForegroundTransparentBrush}" BorderThickness="{ThemeResource PivotNavButtonBorderThemeThickness}" Background="{ThemeResource SystemControlBackgroundBaseMediumLowBrush}">
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="CommonStates">
|
||
|
<VisualState x:Name="Normal"/>
|
||
|
<VisualState x:Name="PointerOver">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseMediumBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Arrow">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltAltMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Pressed">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Arrow">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltAltMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<FontIcon x:Name="Arrow" Foreground="{ThemeResource SystemControlForegroundAltMediumHighBrush}" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" HorizontalAlignment="Center" MirroredWhenRightToLeft="True" UseLayoutRounding="False" VerticalAlignment="Center"/>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
<ControlTemplate x:Key="PreviousTemplate" TargetType="Button">
|
||
|
<Border x:Name="Root" BorderBrush="{ThemeResource SystemControlForegroundTransparentBrush}" BorderThickness="{ThemeResource PivotNavButtonBorderThemeThickness}" Background="{ThemeResource SystemControlBackgroundBaseMediumLowBrush}">
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="CommonStates">
|
||
|
<VisualState x:Name="Normal"/>
|
||
|
<VisualState x:Name="PointerOver">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseMediumBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Arrow">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltAltMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Pressed">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Root">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="Arrow">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltAltMediumHighBrush}"/>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<FontIcon x:Name="Arrow" Foreground="{ThemeResource SystemControlForegroundAltMediumHighBrush}" FontSize="12" FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" HorizontalAlignment="Center" MirroredWhenRightToLeft="True" UseLayoutRounding="False" VerticalAlignment="Center"/>
|
||
|
</Border>
|
||
|
</ControlTemplate>
|
||
|
</Grid.Resources>
|
||
|
<ScrollViewer x:Name="ScrollViewer" BringIntoViewOnFocusChange="False" HorizontalSnapPointsAlignment="Center" HorizontalSnapPointsType="MandatorySingle" HorizontalScrollBarVisibility="Hidden" Margin="{TemplateBinding Padding}" Template="{StaticResource ScrollViewerScrollBarlessTemplate}" VerticalSnapPointsType="None" VerticalScrollBarVisibility="Disabled" VerticalScrollMode="Disabled" VerticalContentAlignment="Stretch" ZoomMode="Disabled">
|
||
|
<PivotPanel x:Name="Panel" VerticalAlignment="Stretch">
|
||
|
<Grid x:Name="PivotLayoutElement">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
<ColumnDefinition Width="*"/>
|
||
|
<ColumnDefinition Width="Auto"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto"/>
|
||
|
<RowDefinition Height="*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.RenderTransform>
|
||
|
<CompositeTransform x:Name="PivotLayoutElementTranslateTransform"/>
|
||
|
</Grid.RenderTransform>
|
||
|
<ContentPresenter x:Name="LeftHeaderPresenter" ContentTemplate="{TemplateBinding LeftHeaderTemplate}" Content="{TemplateBinding LeftHeader}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
||
|
<ContentControl x:Name="HeaderClipper" Grid.Column="1" HorizontalContentAlignment="Stretch" UseSystemFocusVisuals="True">
|
||
|
<ContentControl.Clip>
|
||
|
<RectangleGeometry x:Name="HeaderClipperGeometry"/>
|
||
|
</ContentControl.Clip>
|
||
|
<Grid Background="Transparent">
|
||
|
<PivotHeaderPanel x:Name="StaticHeader" Visibility="Collapsed"/>
|
||
|
<PivotHeaderPanel x:Name="Header">
|
||
|
<PivotHeaderPanel.RenderTransform>
|
||
|
<TransformGroup>
|
||
|
<CompositeTransform x:Name="HeaderTranslateTransform"/>
|
||
|
<CompositeTransform x:Name="HeaderOffsetTranslateTransform"/>
|
||
|
</TransformGroup>
|
||
|
</PivotHeaderPanel.RenderTransform>
|
||
|
</PivotHeaderPanel>
|
||
|
</Grid>
|
||
|
</ContentControl>
|
||
|
<Button x:Name="PreviousButton" Background="Transparent" Grid.Column="1" HorizontalAlignment="Left" Height="36" IsTabStop="False" IsEnabled="False" Margin="{ThemeResource PivotNavButtonMargin}" Opacity="0" Template="{StaticResource PreviousTemplate}" UseSystemFocusVisuals="False" VerticalAlignment="Top" Width="20"/>
|
||
|
<Button x:Name="NextButton" Background="Transparent" Grid.Column="1" HorizontalAlignment="Right" Height="36" IsTabStop="False" IsEnabled="False" Margin="{ThemeResource PivotNavButtonMargin}" Opacity="0" Template="{StaticResource NextTemplate}" UseSystemFocusVisuals="False" VerticalAlignment="Top" Width="20"/>
|
||
|
<ContentPresenter x:Name="RightHeaderPresenter" ContentTemplate="{TemplateBinding RightHeaderTemplate}" Content="{TemplateBinding RightHeader}" Grid.Column="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
||
|
<ItemsPresenter x:Name="PivotItemPresenter" Grid.ColumnSpan="3" Grid.Row="1">
|
||
|
<ItemsPresenter.RenderTransform>
|
||
|
<TransformGroup>
|
||
|
<TranslateTransform x:Name="ItemsPresenterTranslateTransform"/>
|
||
|
<CompositeTransform x:Name="ItemsPresenterCompositeTransform"/>
|
||
|
</TransformGroup>
|
||
|
</ItemsPresenter.RenderTransform>
|
||
|
</ItemsPresenter>
|
||
|
</Grid>
|
||
|
</PivotPanel>
|
||
|
</ScrollViewer>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style x:Key="PageControlDefaultStyle" TargetType="uwp:PageControl">
|
||
|
<Setter Property="ContentMargin" Value="0" />
|
||
|
<Setter Property="TitleBrush" Value="{ThemeResource DefaultTextForegroundThemeBrush}" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="uwp:PageControl">
|
||
|
<Grid Background="{TemplateBinding Background}">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<uwp:FormsCommandBar x:Name="CommandBar" Grid.Row="0" VerticalContentAlignment="Top" Background="{TemplateBinding NavigationBarBackground}" Visibility="{Binding ShowNavigationBar,RelativeSource={RelativeSource Mode=TemplatedParent},Converter={StaticResource BoolVisibilityConverter}}">
|
||
|
<uwp:FormsCommandBar.Content>
|
||
|
<ContentControl VerticalAlignment="Top" VerticalContentAlignment="Center" Height="{ThemeResource TitleBarHeight}">
|
||
|
<TextBlock Text="{Binding Title}" VerticalAlignment="Center" Padding="10,0,0,0" Foreground="{TemplateBinding TitleBrush}" Style="{ThemeResource TitleTextBlockStyle}" />
|
||
|
</ContentControl>
|
||
|
</uwp:FormsCommandBar.Content>
|
||
|
</uwp:FormsCommandBar>
|
||
|
|
||
|
<ContentPresenter Margin="{TemplateBinding ContentMargin}" ContentTransitions="{TemplateBinding ContentTransitions}" x:Name="presenter" Grid.Row="1" />
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="uwp:StepperControl">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate>
|
||
|
<Grid HorizontalAlignment="Left">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="*" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<Button Name="Minus" Grid.Column="0" Content="-" />
|
||
|
<Button Name="Plus" Grid.Column="1" Content="+" />
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="uwp:PageControl" BasedOn="{StaticResource PageControlDefaultStyle}" />
|
||
|
|
||
|
<Style TargetType="TextBox">
|
||
|
<Setter Property="Margin" Value="0" />
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="ToggleSwitch">
|
||
|
<Setter Property="MinWidth" Value="0"/>
|
||
|
</Style>
|
||
|
|
||
|
<SolidColorBrush x:Key="FormsCancelForegroundBrush" />
|
||
|
<SolidColorBrush x:Key="FormsCancelBackgroundBrush" />
|
||
|
|
||
|
<!-- Default Style for AutoSuggestBox -->
|
||
|
<Style TargetType="AutoSuggestBox">
|
||
|
<Setter Property="VerticalAlignment" Value="Top" />
|
||
|
<Setter Property="IsTabStop" Value="False" />
|
||
|
<Setter Property="TextBoxStyle" Value="{StaticResource AutoSuggestBoxTextBoxStyle}" />
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="AutoSuggestBox">
|
||
|
<Grid>
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="Orientation">
|
||
|
<VisualState x:Name="Landscape"/>
|
||
|
<VisualState x:Name="Portrait"/>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<uwp:FormsTextBox x:Name="TextBox"
|
||
|
Style="{TemplateBinding TextBoxStyle}"
|
||
|
FontFamily="{TemplateBinding FontFamily}"
|
||
|
FontSize="{TemplateBinding FontSize}"
|
||
|
FontStyle="{TemplateBinding FontStyle}"
|
||
|
PlaceholderText="{TemplateBinding PlaceholderText}"
|
||
|
Header="{TemplateBinding Header}"
|
||
|
Width="{TemplateBinding Width}"
|
||
|
ScrollViewer.BringIntoViewOnFocusChange="False"
|
||
|
Canvas.ZIndex="0"
|
||
|
Margin="0"
|
||
|
DesiredCandidateWindowAlignment="BottomEdge"/>
|
||
|
<Popup x:Name="SuggestionsPopup">
|
||
|
<Border x:Name="SuggestionsContainer">
|
||
|
<Border.RenderTransform>
|
||
|
<TranslateTransform x:Name="UpwardTransform"/>
|
||
|
</Border.RenderTransform>
|
||
|
<ListView x:Name="SuggestionsList"
|
||
|
Background="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}"
|
||
|
BorderThickness="{ThemeResource AutoSuggestListBorderThemeThickness}"
|
||
|
BorderBrush="{ThemeResource SystemControlForegroundBaseMediumLowBrush}"
|
||
|
DisplayMemberPath="{TemplateBinding DisplayMemberPath}"
|
||
|
IsItemClickEnabled="True"
|
||
|
ItemTemplate="{TemplateBinding ItemTemplate}"
|
||
|
ItemTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
||
|
ItemContainerStyle="{TemplateBinding ItemContainerStyle}"
|
||
|
MaxHeight="{ThemeResource AutoSuggestListMaxHeight}"
|
||
|
Margin="{ThemeResource AutoSuggestListMargin}">
|
||
|
<ListView.ItemContainerTransitions>
|
||
|
<TransitionCollection />
|
||
|
</ListView.ItemContainerTransitions>
|
||
|
</ListView>
|
||
|
</Border>
|
||
|
</Popup>
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="uwp:FormsTextBox" x:Key="AutoSuggestBoxTextBoxStyle">
|
||
|
<Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}" />
|
||
|
<Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}" />
|
||
|
<Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}" />
|
||
|
<Setter Property="ForegroundFocusBrush" Value="{ThemeResource SystemControlForegroundChromeBlackHighBrush}" />
|
||
|
<Setter Property="PlaceholderForegroundBrush" Value="{ThemeResource SystemControlPageTextBaseMediumBrush}" />
|
||
|
<Setter Property="PlaceholderForegroundFocusBrush" Value="{ThemeResource SystemControlPageTextChromeBlackMediumLowBrush}" />
|
||
|
<Setter Property="Background" Value="{ThemeResource SystemControlBackgroundAltHighBrush}" />
|
||
|
<Setter Property="BorderBrush" Value="{ThemeResource SystemControlForegroundChromeDisabledLowBrush}" />
|
||
|
<Setter Property="SelectionHighlightColor" Value="{ThemeResource SystemControlHighlightAccentBrush}" />
|
||
|
<Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}" />
|
||
|
<Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}" />
|
||
|
<Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}" />
|
||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden" />
|
||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden" />
|
||
|
<Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False" />
|
||
|
<Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/>
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="uwp:FormsTextBox">
|
||
|
<Grid>
|
||
|
<Grid.Resources>
|
||
|
<Style x:Name="DeleteButtonStyle" TargetType="Button">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="Button">
|
||
|
<Grid>
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="CommonStates">
|
||
|
<VisualState x:Name="Normal" />
|
||
|
<VisualState x:Name="PointerOver">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightTransparentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="GlyphElement"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource FormsCancelBackgroundBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Pressed">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAccentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="GlyphElement"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltChromeWhiteBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Disabled">
|
||
|
<Storyboard>
|
||
|
<DoubleAnimation Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Opacity"
|
||
|
To="0"
|
||
|
Duration="0" />
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<Border x:Name="BorderElement"
|
||
|
BorderBrush="{ThemeResource TextBoxButtonBorderThemeBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Background="{ThemeResource FormsCancelBackgroundBrush}">
|
||
|
<TextBlock x:Name="GlyphElement"
|
||
|
Foreground="{ThemeResource FormsCancelForegroundBrush}"
|
||
|
VerticalAlignment="Center"
|
||
|
HorizontalAlignment="Center"
|
||
|
FontStyle="Normal"
|
||
|
FontSize="12"
|
||
|
Text=""
|
||
|
FontFamily="{ThemeResource SymbolThemeFontFamily}"
|
||
|
AutomationProperties.AccessibilityView="Raw"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
<Style x:Name="QueryButtonStyle" TargetType="Button">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="Button">
|
||
|
<Grid>
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="CommonStates">
|
||
|
<VisualState x:Name="Normal" />
|
||
|
<VisualState x:Name="PointerOver">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightTransparentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltAccentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Pressed">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAccentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAltChromeWhiteBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Disabled">
|
||
|
<Storyboard>
|
||
|
<DoubleAnimation Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Opacity"
|
||
|
To="0"
|
||
|
Duration="0" />
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<Border x:Name="BorderElement"
|
||
|
BorderBrush="{ThemeResource TextBoxButtonBorderThemeBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Background="{ThemeResource TextBoxButtonBackgroundThemeBrush}">
|
||
|
<ContentPresenter x:Name="ContentPresenter"
|
||
|
Content="{TemplateBinding Content}"
|
||
|
ContentTransitions="{TemplateBinding ContentTransitions}"
|
||
|
ContentTemplate="{TemplateBinding ContentTemplate}"
|
||
|
Margin="{TemplateBinding Padding}"
|
||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
||
|
AutomationProperties.AccessibilityView="Raw"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</Grid.Resources>
|
||
|
<VisualStateManager.VisualStateGroups>
|
||
|
<VisualStateGroup x:Name="CommonStates">
|
||
|
<VisualState x:Name="Disabled">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderContentPresenter"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledBaseLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledTransparentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundBaseLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="BorderBrush">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledBaseLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledChromeDisabledLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PlaceholderTextContentPresenter"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledChromeDisabledLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Normal" />
|
||
|
<VisualState x:Name="PointerOver">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="BorderBrush">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightChromeAltLowBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundElement"
|
||
|
Storyboard.TargetProperty="Opacity">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundHoverOpacity}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="Focused">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PlaceholderTextContentPresenter"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{Binding PlaceholderForegroundFocusBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundElement"
|
||
|
Storyboard.TargetProperty="Background">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundChromeWhiteBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BackgroundElement"
|
||
|
Storyboard.TargetProperty="Opacity">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextControlBackgroundFocusedOpacity}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement"
|
||
|
Storyboard.TargetProperty="BorderBrush">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightAccentBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{Binding ForegroundFocusBrush, RelativeSource={RelativeSource TemplatedParent}}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentElement"
|
||
|
Storyboard.TargetProperty="RequestedTheme">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="Light" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="QueryButton"
|
||
|
Storyboard.TargetProperty="Foreground">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundChromeBlackMediumBrush}" />
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
</VisualStateGroup>
|
||
|
<VisualStateGroup x:Name="ButtonStates">
|
||
|
<VisualState x:Name="ButtonVisible">
|
||
|
<Storyboard>
|
||
|
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DeleteButton"
|
||
|
Storyboard.TargetProperty="Visibility">
|
||
|
<DiscreteObjectKeyFrame KeyTime="0">
|
||
|
<DiscreteObjectKeyFrame.Value>
|
||
|
<Visibility>Visible</Visibility>
|
||
|
</DiscreteObjectKeyFrame.Value>
|
||
|
</DiscreteObjectKeyFrame>
|
||
|
</ObjectAnimationUsingKeyFrames>
|
||
|
</Storyboard>
|
||
|
</VisualState>
|
||
|
<VisualState x:Name="ButtonCollapsed" />
|
||
|
</VisualStateGroup>
|
||
|
</VisualStateManager.VisualStateGroups>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition Height="*" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border x:Name="BackgroundElement"
|
||
|
Grid.Row="1"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
Margin="{TemplateBinding BorderThickness}"
|
||
|
Opacity="{ThemeResource TextControlBackgroundRestOpacity}"
|
||
|
Grid.ColumnSpan="3"
|
||
|
Grid.RowSpan="1"/>
|
||
|
<Border x:Name="BorderElement"
|
||
|
Grid.Row="1"
|
||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Grid.ColumnSpan="3"
|
||
|
Grid.RowSpan="1"/>
|
||
|
<ContentPresenter x:Name="HeaderContentPresenter"
|
||
|
x:DeferLoadStrategy="Lazy"
|
||
|
Visibility="Collapsed"
|
||
|
Grid.Row="0"
|
||
|
Foreground="{Binding PlaceholderForegroundBrush, RelativeSource={RelativeSource TemplatedParent}}"
|
||
|
Margin="0,0,0,8"
|
||
|
Grid.ColumnSpan="3"
|
||
|
Content="{TemplateBinding Header}"
|
||
|
ContentTemplate="{TemplateBinding HeaderTemplate}"
|
||
|
FontWeight="Normal"
|
||
|
TextWrapping="Wrap" />
|
||
|
<ScrollViewer x:Name="ContentElement"
|
||
|
Grid.Row="1"
|
||
|
HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}"
|
||
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
||
|
VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}"
|
||
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}"
|
||
|
IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}"
|
||
|
IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}"
|
||
|
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
||
|
Margin="{TemplateBinding BorderThickness}"
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
IsTabStop="False"
|
||
|
AutomationProperties.AccessibilityView="Raw"
|
||
|
ZoomMode="Disabled" />
|
||
|
<!-- Converting the TextAlignment set for the control's input text to a HorizontalAlignment
|
||
|
so the PlaceholderText's alignment will match the input text -->
|
||
|
<ContentControl x:Name="PlaceholderTextContentPresenter"
|
||
|
Grid.Row="1"
|
||
|
Foreground="{Binding PlaceholderForegroundBrush, RelativeSource={RelativeSource TemplatedParent}}"
|
||
|
Margin="{TemplateBinding BorderThickness}"
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
IsTabStop="False"
|
||
|
Grid.ColumnSpan="3"
|
||
|
Content="{TemplateBinding PlaceholderText}"
|
||
|
FontFamily="{TemplateBinding FontFamily}"
|
||
|
FontSize="{TemplateBinding FontSize}"
|
||
|
FontStyle="{TemplateBinding FontStyle}"
|
||
|
IsHitTestVisible="False"
|
||
|
HorizontalAlignment="{Binding TextAlignment,
|
||
|
RelativeSource={RelativeSource Mode=TemplatedParent},
|
||
|
Converter={StaticResource AlignmentConverter}}" />
|
||
|
<Button x:Name="DeleteButton"
|
||
|
Grid.Row="1"
|
||
|
Style="{StaticResource DeleteButtonStyle}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Margin="{ThemeResource HelperButtonThemePadding}"
|
||
|
IsTabStop="False"
|
||
|
Grid.Column="1"
|
||
|
Visibility="Collapsed"
|
||
|
FontSize="{TemplateBinding FontSize}"
|
||
|
MinWidth="34"
|
||
|
VerticalAlignment="Stretch"/>
|
||
|
<Button x:Name="QueryButton"
|
||
|
Grid.Row="1"
|
||
|
Style="{StaticResource QueryButtonStyle}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
Margin="{ThemeResource HelperButtonThemePadding}"
|
||
|
IsTabStop="False"
|
||
|
Grid.Column="2"
|
||
|
FontSize="{TemplateBinding FontSize}"
|
||
|
MinWidth="34"
|
||
|
VerticalAlignment="Stretch"/>
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</ResourceDictionary>
|