File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 102
102
<Grid >
103
103
<Image
104
104
x : Name =" ImageIcon"
105
- HorizontalAlignment =" Center"
106
- VerticalAlignment =" Center"
107
105
IsHitTestVisible =" False"
108
106
RenderOptions.BitmapScalingMode=" Fant"
109
107
Source =" {Binding Image, TargetNullValue={x:Null}}"
131
129
132
130
<TextBlock
133
131
x : Name =" GlyphIcon"
134
- HorizontalAlignment =" Center"
135
- VerticalAlignment =" Center"
136
132
FontFamily =" {Binding Glyph.FontFamily}"
137
133
Style =" {DynamicResource ItemGlyph}"
138
134
Text =" {Binding Glyph.Glyph}"
139
135
Visibility =" {Binding ShowGlyph}" />
136
+
140
137
<Image
141
138
x : Name =" BadgeIcon"
142
- Width =" 16"
143
- Height =" 16"
144
- Margin =" 0 2 4 0"
145
- HorizontalAlignment =" Right"
146
- VerticalAlignment =" Bottom"
147
- RenderOptions.BitmapScalingMode=" Fant"
139
+ Width =" {Binding ElementName=ImageIcon, Path=ActualWidth}"
140
+ Height =" {Binding ElementName=ImageIcon, Path=ActualHeight}"
141
+ RenderOptions.BitmapScalingMode=" HighQuality"
148
142
Source =" {Binding BadgeImage, TargetNullValue={x:Null}}"
149
143
Visibility =" {Binding ShowBadge}" />
150
144
</Grid >
151
145
</Border >
146
+
152
147
</Grid >
153
148
154
149
<Grid
Original file line number Diff line number Diff line change 38
38
BasedOn =" {StaticResource BaseGlyphStyle}"
39
39
TargetType =" {x:Type TextBlock}" >
40
40
<Setter Property =" Foreground" Value =" {DynamicResource Color05B}" />
41
- <Setter Property =" Margin" Value =" -4 0 0 0" />
41
+ <Setter Property =" Margin" Value =" 0 0 0 0" />
42
42
</Style >
43
43
<Style
44
44
x : Key =" QueryBoxStyle"
180
180
<Setter Property =" Foreground" Value =" {DynamicResource Color05B}" />
181
181
<Setter Property =" VerticalAlignment" Value =" Center" />
182
182
<Setter Property =" HorizontalAlignment" Value =" Center" />
183
- <Setter Property =" Margin" Value =" -4 0 0 0" />
183
+ <Setter Property =" Margin" Value =" 0 0 0 0" />
184
184
<Setter Property =" Width" Value =" 25" />
185
185
<Setter Property =" Height" Value =" 25" />
186
186
<Setter Property =" FontSize" Value =" 25" />
You can’t perform that action at this time.
0 commit comments