@@ -37,7 +37,6 @@ public BladeItem()
37
37
protected override void OnApplyTemplate ( )
38
38
{
39
39
_loaded = true ;
40
- base . OnApplyTemplate ( ) ;
41
40
42
41
_closeButton = GetTemplateChild ( "CloseButton" ) as Button ;
43
42
_enlargeButton = GetTemplateChild ( "EnlargeButton" ) as Button ;
@@ -66,10 +65,9 @@ private void OnExpanding(Expander sender, ExpanderExpandingEventArgs args)
66
65
{
67
66
Width = _normalModeWidth ;
68
67
VisualStateManager . GoToState ( this , "Expanded" , true ) ;
69
- var name = "WCT_BladeView_ExpandButton_Collapsed" . GetLocalized ( "CommunityToolkit.WinUI.UI.Controls.Layout/Resources" ) ;
70
68
if ( _enlargeButton != null )
71
69
{
72
- AutomationProperties . SetName ( _enlargeButton , name ) ;
70
+ AutomationProperties . SetName ( _enlargeButton , "Expand Blade Item" ) ;
73
71
}
74
72
}
75
73
}
@@ -80,11 +78,9 @@ private void OnCollapsed(Expander sender, ExpanderCollapsedEventArgs args)
80
78
if ( _loaded )
81
79
{
82
80
Width = double . NaN ;
83
- VisualStateManager . GoToState ( this , "Collapsed" , true ) ;
84
- var name = "WCT_BladeView_ExpandButton_Expanded" . GetLocalized ( "CommunityToolkit.WinUI.UI.Controls.Layout/Resources" ) ;
85
81
if ( _enlargeButton != null )
86
82
{
87
- AutomationProperties . SetName ( _enlargeButton , name ) ;
83
+ AutomationProperties . SetName ( _enlargeButton , "Collapse Blade Item" ) ;
88
84
}
89
85
}
90
86
}
0 commit comments