/// <summary>
        /// Check for the conditions where the navigation pane does not occupy the space under the floating
        /// hamburger button and trigger the event.
        /// </summary>
        private void CheckTogglePaneButtonSizeChanged()
        {
            if (rootSplitView.DisplayMode == SplitViewDisplayMode.Inline ||
                rootSplitView.DisplayMode == SplitViewDisplayMode.Overlay)
            {
                var transform = togglePaneButton.TransformToVisual(this);
                var rect      =
                    transform.TransformBounds(new Rect(0, 0, togglePaneButton.ActualWidth,
                                                       togglePaneButton.ActualHeight));
                TogglePaneButtonRect = rect;
            }
            else
            {
                TogglePaneButtonRect = new Rect();
            }

            TogglePaneButtonRectChanged?.DynamicInvoke(this, TogglePaneButtonRect);
        }
 /// <summary>
 ///     Check for the conditions where the navigation pane does not occupy the space under the floating
 ///     hamburger button and trigger the event.
 /// </summary>
 private void CheckTogglePaneButtonSizeChanged()
 {
     AppNavigationUtil.SplitViewPaneHandler(this, rootSplitView, TogglePaneButton);
     TogglePaneButtonRectChanged?.DynamicInvoke(this, TogglePaneButtonRect);
 }