@@ -49,7 +49,6 @@ public string Message
49
49
set
50
50
{
51
51
SetValue ( MessageProperty , value ) ;
52
- UpdateMessageVisibility ( ) ; // Visibility update when change Message
53
52
}
54
53
}
55
54
@@ -128,13 +127,13 @@ private void UpdateIconAlignmentAndMargin()
128
127
{
129
128
if ( Length == InfoBarLength . Short )
130
129
{
131
- Part_IconBorder . VerticalAlignment = VerticalAlignment . Center ;
132
- Part_IconBorder . Margin = new Thickness ( 0 , 0 , 12 , 0 ) ;
130
+ PART_IconBorder . VerticalAlignment = VerticalAlignment . Center ;
131
+ PART_IconBorder . Margin = new Thickness ( 0 , 0 , 12 , 0 ) ;
133
132
}
134
133
else
135
134
{
136
- Part_IconBorder . VerticalAlignment = VerticalAlignment . Top ;
137
- Part_IconBorder . Margin = new Thickness ( 0 , 2 , 12 , 0 ) ;
135
+ PART_IconBorder . VerticalAlignment = VerticalAlignment . Top ;
136
+ PART_IconBorder . Margin = new Thickness ( 0 , 2 , 12 , 0 ) ;
138
137
}
139
138
}
140
139
@@ -158,22 +157,22 @@ private void UpdateStyle()
158
157
{
159
158
case InfoBarType . Info :
160
159
PART_Border . Background = ( Brush ) FindResource ( "InfoBarInfoBG" ) ;
161
- Part_IconBorder . Background = ( Brush ) FindResource ( "InfoBarInfoIcon" ) ;
160
+ PART_IconBorder . Background = ( Brush ) FindResource ( "InfoBarInfoIcon" ) ;
162
161
PART_Icon . Glyph = "\xF13F " ;
163
162
break ;
164
163
case InfoBarType . Success :
165
164
PART_Border . Background = ( Brush ) FindResource ( "InfoBarSuccessBG" ) ;
166
- Part_IconBorder . Background = ( Brush ) FindResource ( "InfoBarSuccessIcon" ) ;
165
+ PART_IconBorder . Background = ( Brush ) FindResource ( "InfoBarSuccessIcon" ) ;
167
166
PART_Icon . Glyph = "\xF13E " ;
168
167
break ;
169
168
case InfoBarType . Warning :
170
169
PART_Border . Background = ( Brush ) FindResource ( "InfoBarWarningBG" ) ;
171
- Part_IconBorder . Background = ( Brush ) FindResource ( "InfoBarWarningIcon" ) ;
170
+ PART_IconBorder . Background = ( Brush ) FindResource ( "InfoBarWarningIcon" ) ;
172
171
PART_Icon . Glyph = "\xF13C " ;
173
172
break ;
174
173
case InfoBarType . Error :
175
174
PART_Border . Background = ( Brush ) FindResource ( "InfoBarErrorBG" ) ;
176
- Part_IconBorder . Background = ( Brush ) FindResource ( "InfoBarErrorIcon" ) ;
175
+ PART_IconBorder . Background = ( Brush ) FindResource ( "InfoBarErrorIcon" ) ;
177
176
PART_Icon . Glyph = "\xF13D " ;
178
177
break ;
179
178
}
@@ -193,7 +192,7 @@ private static void OnClosableChanged(DependencyObject d, DependencyPropertyChan
193
192
194
193
private void UpdateIconVisibility ( )
195
194
{
196
- Part_IconBorder . Visibility = IsIconVisible ? Visibility . Visible : Visibility . Collapsed ;
195
+ PART_IconBorder . Visibility = IsIconVisible ? Visibility . Visible : Visibility . Collapsed ;
197
196
}
198
197
199
198
private void UpdateCloseButtonVisibility ( )
0 commit comments