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

            // Unhook registered events
            Loaded                -= GridSplitter_Loaded;
            PointerEntered        -= GridSplitter_PointerEntered;
            PointerExited         -= GridSplitter_PointerExited;
            PointerPressed        -= GridSplitter_PointerPressed;
            PointerReleased       -= GridSplitter_PointerReleased;
            ManipulationStarted   -= GridSplitter_ManipulationStarted;
            ManipulationCompleted -= GridSplitter_ManipulationCompleted;

            _hoverWrapper?.UnhookEvents();

            // Register Events
            Loaded                += GridSplitter_Loaded;
            PointerEntered        += GridSplitter_PointerEntered;
            PointerExited         += GridSplitter_PointerExited;
            PointerPressed        += GridSplitter_PointerPressed;
            PointerReleased       += GridSplitter_PointerReleased;
            ManipulationStarted   += GridSplitter_ManipulationStarted;
            ManipulationCompleted += GridSplitter_ManipulationCompleted;

            _hoverWrapper?.UpdateHoverElement(Element);

            ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        protected override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            // Unhook registered events
            Loaded -= GridSplitter_Loaded;

            // Register Events
            Loaded += GridSplitter_Loaded;

            _hoverWrapper?.UnhookEvents();

            ManipulationMode = ManipulationModes.TranslateX | ManipulationModes.TranslateY;
        }