|
15 | 15 | >
|
16 | 16 |
|
17 | 17 | <Page.Resources>
|
18 |
| - <ResourceDictionary> |
19 |
| - <Style x:Key="ButtonStyle1" TargetType="Button"> |
20 |
| - <Setter Property="Background" Value="{ThemeResource SystemControlBackgroundBaseLowBrush}"/> |
21 |
| - <Setter Property="Foreground" Value="{ThemeResource SystemControlForegroundBaseHighBrush}"/> |
22 |
| - <Setter Property="BorderBrush" Value="{ThemeResource SystemControlForegroundTransparentBrush}"/> |
23 |
| - <Setter Property="BorderThickness" Value="{ThemeResource ButtonBorderThemeThickness}"/> |
24 |
| - <Setter Property="Padding" Value="8,4,8,4"/> |
25 |
| - <Setter Property="HorizontalAlignment" Value="Left"/> |
26 |
| - <Setter Property="VerticalAlignment" Value="Center"/> |
27 |
| - <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> |
28 |
| - <Setter Property="FontWeight" Value="Normal"/> |
29 |
| - <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> |
30 |
| - <Setter Property="UseSystemFocusVisuals" Value="True"/> |
31 |
| - <Setter Property="Template"> |
32 |
| - <Setter.Value> |
33 |
| - <ControlTemplate TargetType="Button"> |
34 |
| - <Grid x:Name="RootGrid" Background="{TemplateBinding Background}"> |
35 |
| - <VisualStateManager.VisualStateGroups> |
36 |
| - <VisualStateGroup x:Name="CommonStates"> |
37 |
| - <VisualState x:Name="Normal"> |
38 |
| - <Storyboard> |
39 |
| - <PointerUpThemeAnimation Storyboard.TargetName="RootGrid"/> |
40 |
| - </Storyboard> |
41 |
| - </VisualState> |
42 |
| - <VisualState x:Name="PointerOver"> |
43 |
| - <Storyboard> |
44 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ContentPresenter"> |
45 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseMediumLowBrush}"/> |
46 |
| - </ObjectAnimationUsingKeyFrames> |
47 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> |
48 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseHighBrush}"/> |
49 |
| - </ObjectAnimationUsingKeyFrames> |
50 |
| - <PointerUpThemeAnimation Storyboard.TargetName="RootGrid"/> |
51 |
| - </Storyboard> |
52 |
| - </VisualState> |
53 |
| - <VisualState x:Name="Pressed"> |
54 |
| - <Storyboard> |
55 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="RootGrid"> |
56 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundBaseMediumLowBrush}"/> |
57 |
| - </ObjectAnimationUsingKeyFrames> |
58 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ContentPresenter"> |
59 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightTransparentBrush}"/> |
60 |
| - </ObjectAnimationUsingKeyFrames> |
61 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> |
62 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlHighlightBaseHighBrush}"/> |
63 |
| - </ObjectAnimationUsingKeyFrames> |
64 |
| - <PointerDownThemeAnimation Storyboard.TargetName="RootGrid"/> |
65 |
| - </Storyboard> |
66 |
| - </VisualState> |
67 |
| - <VisualState x:Name="Disabled"> |
68 |
| - <Storyboard> |
69 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="RootGrid"> |
70 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlBackgroundBaseLowBrush}"/> |
71 |
| - </ObjectAnimationUsingKeyFrames> |
72 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> |
73 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledBaseLowBrush}"/> |
74 |
| - </ObjectAnimationUsingKeyFrames> |
75 |
| - <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ContentPresenter"> |
76 |
| - <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SystemControlDisabledTransparentBrush}"/> |
77 |
| - </ObjectAnimationUsingKeyFrames> |
78 |
| - </Storyboard> |
79 |
| - </VisualState> |
80 |
| - </VisualStateGroup> |
81 |
| - </VisualStateManager.VisualStateGroups> |
82 |
| - <ContentPresenter x:Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTransitions="{TemplateBinding ContentTransitions}" Content="{TemplateBinding Content}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
83 |
| - </Grid> |
84 |
| - </ControlTemplate> |
85 |
| - </Setter.Value> |
86 |
| - </Setter> |
87 |
| - </Style> |
88 |
| - <Style x:Key="RippleStyle1" TargetType="uwp:Ripple"> |
89 |
| - <Setter Property="HorizontalAlignment" Value="Stretch" /> |
90 |
| - <Setter Property="VerticalAlignment" Value="Stretch" /> |
91 |
| - <Setter Property="Background" Value="Transparent" /> |
92 |
| - <Setter Property="Feedback" Value="White" /> |
93 |
| - <Setter Property="Template"> |
94 |
| - <Setter.Value> |
95 |
| - <ControlTemplate TargetType="uwp:Ripple"> |
96 |
| - <Grid Background="Transparent"> |
97 |
| - <Canvas IsHitTestVisible="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
98 |
| - <Ellipse x:Name="ClickEllipse" Fill="{TemplateBinding Feedback}" Opacity="1" Width="10" Height="10" |
99 |
| -<<<<<<< HEAD |
100 |
| - Canvas.Left="10" |
101 |
| - Canvas.Top="10" |
102 |
| - RenderTransformOrigin=".5,.5"> |
103 |
| - <Ellipse.RenderTransform> |
104 |
| - <TransformGroup> |
105 |
| - <ScaleTransform /> |
106 |
| - <SkewTransform/> |
107 |
| - <RotateTransform/> |
108 |
| - <TranslateTransform x:Name="TranslateTransform"/> |
109 |
| - </TransformGroup> |
110 |
| -======= |
111 |
| - Canvas.Left="20" |
112 |
| - Canvas.Top="10" |
113 |
| - RenderTransformOrigin=".5,.5"> |
114 |
| - <Ellipse.RenderTransform> |
115 |
| - <TranslateTransform x:Name="TranslateTransform"/> |
116 |
| ->>>>>>> a27409f27850f2f66b86905963924270e29b69a7 |
117 |
| - </Ellipse.RenderTransform> |
118 |
| - </Ellipse> |
119 |
| - </Canvas> |
120 |
| - <ContentPresenter Content="{TemplateBinding Content}" |
121 |
| - ContentTemplate="{TemplateBinding ContentTemplate}" |
122 |
| - Margin="{TemplateBinding Padding}" |
123 |
| - HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
124 |
| - VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> |
125 |
| - </Grid> |
126 |
| - |
127 |
| - </ControlTemplate> |
128 |
| - </Setter.Value> |
129 |
| - </Setter> |
130 |
| - </Style> |
131 |
| - |
132 |
| - |
| 18 | + <ResourceDictionary> |
133 | 19 |
|
134 | 20 | </ResourceDictionary>
|
135 | 21 | </Page.Resources>
|
|
144 | 30 | <Button Margin="8 0 0 0" Width="100" Style="{StaticResource MaterialDesignRaisedDarkButton}">DARK</Button>
|
145 | 31 | <Button Margin="8 0 0 0" Width="100" Style="{StaticResource MaterialDesignRaisedAccentButton}">ACCENT</Button>
|
146 | 32 | </StackPanel>
|
147 |
| -<<<<<<< HEAD |
148 |
| - <Button Style="{StaticResource ButtonStyle1}">Normal</Button> |
149 |
| - <Border Background="Black"> |
150 |
| - <uwp:Ripple Padding="26" Style="{StaticResource RippleStyle1}"> |
151 |
| - <TextBlock Foreground="White">Ballz</TextBlock> |
152 |
| - </uwp:Ripple> |
153 |
| - </Border> |
154 |
| -======= |
155 |
| ->>>>>>> a27409f27850f2f66b86905963924270e29b69a7 |
156 | 33 | </StackPanel>
|
157 | 34 | </Grid>
|
158 | 35 | </Page>
|
0 commit comments