File tree Expand file tree Collapse file tree 4 files changed +117
-85
lines changed Expand file tree Collapse file tree 4 files changed +117
-85
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ public partial class TitleBar : Control
20
20
private const string PartBackButton = "PART_BackButton" ;
21
21
private const string PartPaneButton = "PART_PaneButton" ;
22
22
23
- private const string BackButtonVisibleState = "PaneButtonVisible " ;
24
- private const string BackButtonCollapsedState = "PaneButtonCollapsed " ;
23
+ private const string BackButtonVisibleState = "BackButtonVisible " ;
24
+ private const string BackButtonCollapsedState = "BackButtonCollapsed " ;
25
25
private const string BackButtonStates = "BackButtonStates" ;
26
26
27
27
private const string PaneButtonVisibleState = "PaneButtonVisible" ;
@@ -44,7 +44,7 @@ public TitleBar()
44
44
45
45
protected override void OnApplyTemplate ( )
46
46
{
47
- Update ( ) ;
47
+
48
48
_titleBar = ( TitleBar ) this ;
49
49
50
50
if ( ( Button ) _titleBar . GetTemplateChild ( PartBackButton ) is Button backButton )
@@ -59,7 +59,7 @@ protected override void OnApplyTemplate()
59
59
paneButton . Click += PaneButton_Click ;
60
60
}
61
61
_dragRegion = ( Grid ) _titleBar . GetTemplateChild ( PartDragRegionPresenter ) ;
62
-
62
+ Update ( ) ;
63
63
64
64
65
65
SetTitleBar ( ) ;
You can’t perform that action at this time.
0 commit comments