Microsoft.Windows.Controls.Ribbon.RibbonApplicationSplitMenuItem.OnApplyTemplate C# (CSharp) 메소드

OnApplyTemplate() 공개 메소드

Invoked whenever the control's template is applied.
public OnApplyTemplate ( ) : void
리턴 void
        public override void OnApplyTemplate()
        {
            if (Level == RibbonApplicationMenuItemLevel.Top)
            {
                RibbonHelper.UnhookPopupForTopLevelMenuItem(this);
            }

            base.OnApplyTemplate();

            if (Level == RibbonApplicationMenuItemLevel.Top)
            {
                // Bind properties such as PlacementTarget, Height and 
                // Width for the submenu Popup to the parent 
                // RibbonApplicationMenu's SubmenuPlaceholder element.

                RibbonHelper.HookPopupForTopLevelMenuItem(this, ParentItemsControl);
            }
        }