Ejemplo n.º 1
0
 public override void OnApplyTemplate()
 {
     base.OnApplyTemplate();
     this.TopBar           = this.GetTemplateChild(PART_TopBar) as MetroWindowTopBar;
     this.isLoadCompeleted = true;
     this.ChangeToScreen(this.IsFullScreen);
     this.ChangeUseTopBar(this.IsUseTopBar);
 }
Ejemplo n.º 2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            if (this.TopBar == null)
            {
                TopBar = new MetroWindowTopBar();
            }
        }