|
@@ -9,6 +9,96 @@ |
9 |
9 |
|
<Application.Resources> |
10 |
10 |
|
<converter:RssTextTrimmer xmlns:converter="clr-namespace:NotizieTL" x:Key="RssTextTrimmer" /> |
11 |
11 |
|
|
|
12 |
+ |
<Style x:Key="ButtonStyleReload" TargetType="Button"> |
|
13 |
+ |
<Setter Property="Background" Value="Transparent"/> |
|
14 |
+ |
<Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/> |
|
15 |
+ |
<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/> |
|
16 |
+ |
<Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/> |
|
17 |
+ |
<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilySemiBold}"/> |
|
18 |
+ |
<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeMediumLarge}"/> |
|
19 |
+ |
<Setter Property="Padding" Value="10,3,10,5"/> |
|
20 |
+ |
<Setter Property="Template"> |
|
21 |
+ |
<Setter.Value> |
|
22 |
+ |
<ControlTemplate TargetType="Button"> |
|
23 |
+ |
<Grid Background="Transparent"> |
|
24 |
+ |
<VisualStateManager.VisualStateGroups> |
|
25 |
+ |
<VisualStateGroup x:Name="CommonStates"> |
|
26 |
+ |
<VisualState x:Name="Normal"> |
|
27 |
+ |
<Storyboard> |
|
28 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer"> |
|
29 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
30 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
31 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground"> |
|
32 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" > |
|
33 |
+ |
<DiscreteObjectKeyFrame.Value> |
|
34 |
+ |
<ImageBrush ImageSource="/images/reloadGray.png" Stretch="Fill"/> |
|
35 |
+ |
</DiscreteObjectKeyFrame.Value> |
|
36 |
+ |
</DiscreteObjectKeyFrame> |
|
37 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
38 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground"> |
|
39 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
40 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
41 |
+ |
</Storyboard> |
|
42 |
+ |
</VisualState> |
|
43 |
+ |
<VisualState x:Name="MouseOver"> |
|
44 |
+ |
<Storyboard> |
|
45 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer"> |
|
46 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
47 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
48 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground"> |
|
49 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" > |
|
50 |
+ |
<DiscreteObjectKeyFrame.Value> |
|
51 |
+ |
<ImageBrush ImageSource="/images/reloadGray.png" Stretch="Fill"/> |
|
52 |
+ |
</DiscreteObjectKeyFrame.Value> |
|
53 |
+ |
</DiscreteObjectKeyFrame> |
|
54 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
55 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground"> |
|
56 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
57 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
58 |
+ |
</Storyboard> |
|
59 |
+ |
</VisualState> |
|
60 |
+ |
<VisualState x:Name="Pressed"> |
|
61 |
+ |
<Storyboard> |
|
62 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer"> |
|
63 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
64 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
65 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground"> |
|
66 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" > |
|
67 |
+ |
<DiscreteObjectKeyFrame.Value> |
|
68 |
+ |
<ImageBrush ImageSource="/images/reloadBlack.png" Stretch="Fill"/> |
|
69 |
+ |
</DiscreteObjectKeyFrame.Value> |
|
70 |
+ |
</DiscreteObjectKeyFrame> |
|
71 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
72 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground"> |
|
73 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
74 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
75 |
+ |
</Storyboard> |
|
76 |
+ |
</VisualState> |
|
77 |
+ |
|
|
78 |
+ |
<VisualState x:Name="Disabled"> |
|
79 |
+ |
<Storyboard> |
|
80 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentContainer"> |
|
81 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/> |
|
82 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
83 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="ButtonBackground"> |
|
84 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource PhoneDisabledBrush}"/> |
|
85 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
86 |
+ |
<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="ButtonBackground"> |
|
87 |
+ |
<DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> |
|
88 |
+ |
</ObjectAnimationUsingKeyFrames> |
|
89 |
+ |
</Storyboard> |
|
90 |
+ |
</VisualState> |
|
91 |
+ |
</VisualStateGroup> |
|
92 |
+ |
</VisualStateManager.VisualStateGroups> |
|
93 |
+ |
<Border x:Name="ButtonBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" CornerRadius="0" Margin="{StaticResource PhoneTouchTargetOverhang}"> |
|
94 |
+ |
<ContentControl x:Name="ContentContainer" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" Padding="{TemplateBinding Padding}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/> |
|
95 |
+ |
</Border> |
|
96 |
+ |
</Grid> |
|
97 |
+ |
</ControlTemplate> |
|
98 |
+ |
</Setter.Value> |
|
99 |
+ |
</Setter> |
|
100 |
+ |
</Style> |
|
101 |
+ |
|
12 |
102 |
|
<!--<converter:AlternateRowColour xmlns:converter="clr-namespace:NotizieTL" x:Key="RowColour" />--> |
13 |
103 |
|
</Application.Resources> |
14 |
104 |
|
|