Advertisement
FrayxRulez

Untitled

Nov 10th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.64 KB | None | 0 0
  1.     <Style TargetType="local:ContentDialogBase">
  2.         <Setter Property="Foreground" Value="{ThemeResource SystemControlPageTextBaseHighBrush}" />
  3.         <Setter Property="Background" Value="{ThemeResource SystemControlBackgroundChromeMediumLowBrush}" />
  4.         <Setter Property="HorizontalAlignment" Value="Center" />
  5.         <Setter Property="VerticalAlignment" Value="Top" />
  6.         <Setter Property="IsTabStop" Value="False" />
  7.         <Setter Property="MaxHeight" Value="Infinity" />
  8.         <Setter Property="MinHeight" Value="{ThemeResource ContentDialogMinHeight}" />
  9.         <Setter Property="MaxWidth" Value="Infinity" />
  10.         <Setter Property="MinWidth" Value="{ThemeResource ContentDialogMinWidth}" />
  11.         <Setter Property="Template">
  12.             <Setter.Value>
  13.                 <ControlTemplate TargetType="local:ContentDialogBase">
  14.                     <Border x:Name="Container" Background="{ThemeResource SystemControlBackgroundBaseMediumBrush}">
  15.                         <Border x:Name="BackgroundElement"
  16.                                    Background="{TemplateBinding Background}"
  17.                                    FlowDirection="{TemplateBinding FlowDirection}"
  18.                                    BorderThickness="1,0,1,1"
  19.                                    BorderBrush="{ThemeResource SystemControlForegroundAccentBrush}"
  20.                                    MaxWidth="{ThemeResource ContentDialogMaxWidth}"
  21.                                    MaxHeight="{ThemeResource ContentDialogMaxHeight}"
  22.                                    MinWidth="{ThemeResource ContentDialogMinWidth}"
  23.                                    MinHeight="{ThemeResource ContentDialogMinHeight}"
  24.                                    VerticalAlignment="{TemplateBinding VerticalAlignment}"
  25.                                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}">
  26.                             <ContentPresenter x:Name="Content"
  27.                                        ContentTemplate="{TemplateBinding ContentTemplate}"
  28.                                        Content="{TemplateBinding Content}"
  29.                                        FontSize="{ThemeResource ControlContentThemeFontSize}"
  30.                                        FontFamily="{ThemeResource ContentControlThemeFontFamily}"
  31.                                        Margin="0"
  32.                                        Foreground="{TemplateBinding Foreground}"
  33.                                        TextWrapping="Wrap" />
  34.                         </Border>
  35.                     </Border>
  36.                 </ControlTemplate>
  37.             </Setter.Value>
  38.         </Setter>
  39.     </Style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement