/// <summary>Responds to the creation of the visual tree for the <see cref="T:System.Windows.Controls.GridViewColumnHeader" />.</summary>
        // Token: 0x06004D2B RID: 19755 RVA: 0x0015BA70 File Offset: 0x00159C70
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            GridViewColumnHeaderRole role = this.Role;

            if (role == GridViewColumnHeaderRole.Normal)
            {
                this.HookupGripperEvents();
                return;
            }
            if (role == GridViewColumnHeaderRole.Floating)
            {
                this._floatingHeaderCanvas = (base.GetTemplateChild("PART_FloatingHeaderCanvas") as Canvas);
                this.UpdateFloatingHeaderCanvas();
            }
        }
Exemplo n.º 2
0
        //-------------------------------------------------------------------
        //
        //  Public Methods
        //
        //-------------------------------------------------------------------

        #region Public Methods

        /// <summary>
        /// Called when the Template's tree has been generated
        /// </summary>
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            GridViewColumnHeaderRole role = Role;

            if (role == GridViewColumnHeaderRole.Normal)
            {
                HookupGripperEvents();
            }
            else if (role == GridViewColumnHeaderRole.Floating)
            {
                // if this is a floating header, try to find the FloatingHeaderCanvas,
                // and copy source header's visual to it
                _floatingHeaderCanvas = GetTemplateChild(FloatingHeaderCanvasTemplateName) as Canvas;

                UpdateFloatingHeaderCanvas();
            }
        }
Exemplo n.º 3
0
        public static IntPtr Box_GridViewColumnHeaderRole(GridViewColumnHeaderRole val)
        {
            IntPtr ret = NoesisGUI_PINVOKE.Box_GridViewColumnHeaderRole((int)val);

            return(ret);
        }
Exemplo n.º 4
0
        public static GridViewColumnHeaderRole Unbox_GridViewColumnHeaderRole(IntPtr val)
        {
            GridViewColumnHeaderRole ret = (GridViewColumnHeaderRole)NoesisGUI_PINVOKE.Unbox_GridViewColumnHeaderRole(val);

            return(ret);
        }