File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ public partial class TitleBar : Control
2020 private const string PartBackButton = "PART_BackButton" ;
2121 private const string PartPaneButton = "PART_PaneButton" ;
2222
23- private const string BackButtonVisibleState = "PaneButtonVisible " ;
24- private const string BackButtonCollapsedState = "PaneButtonCollapsed " ;
23+ private const string BackButtonVisibleState = "BackButtonVisible " ;
24+ private const string BackButtonCollapsedState = "BackButtonCollapsed " ;
2525 private const string BackButtonStates = "BackButtonStates" ;
2626
2727 private const string PaneButtonVisibleState = "PaneButtonVisible" ;
@@ -44,7 +44,7 @@ public TitleBar()
4444
4545 protected override void OnApplyTemplate ( )
4646 {
47- Update ( ) ;
47+
4848 _titleBar = ( TitleBar ) this ;
4949
5050 if ( ( Button ) _titleBar . GetTemplateChild ( PartBackButton ) is Button backButton )
@@ -59,7 +59,7 @@ protected override void OnApplyTemplate()
5959 paneButton . Click += PaneButton_Click ;
6060 }
6161 _dragRegion = ( Grid ) _titleBar . GetTemplateChild ( PartDragRegionPresenter ) ;
62-
62+ Update ( ) ;
6363
6464
6565 SetTitleBar ( ) ;
You can’t perform that action at this time.
0 commit comments