Exemplo n.º 1
0
        /// <inheritdoc />
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            this.quickAccessToolbarHolder = this.GetTemplateChild("PART_QuickAccessToolbarHolder") as FrameworkElement;
            this.headerHolder             = this.GetTemplateChild("PART_HeaderHolder") as FrameworkElement;
            this.itemsContainer           = this.GetTemplateChild("PART_ItemsContainer") as Panel;

            this.isAtLeastOneRequiredControlPresent = this.quickAccessToolbarHolder != null ||
                                                      this.headerHolder != null ||
                                                      this.itemsContainer != null;

            if (this.quickAccessToolbarHolder != null)
            {
                WindowChrome.SetIsHitTestVisibleInChrome(this.quickAccessToolbarHolder, true);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 public RibbonTitleBar()
 {
     WindowChrome.SetIsHitTestVisibleInChrome(this, true);
 }