private void AssociatedObject_Loaded(object sender, RoutedEventArgs e)
        {
            MetroWindow metroWindow = sender as MetroWindow;

            if (metroWindow == null)
            {
                return;
            }
            metroWindow.SetIsHitTestVisibleInChromeProperty <UIElement>("PART_Icon");
            metroWindow.SetIsHitTestVisibleInChromeProperty <UIElement>("PART_TitleBar");
            metroWindow.SetIsHitTestVisibleInChromeProperty <Thumb>("PART_WindowTitleThumb");
            metroWindow.SetIsHitTestVisibleInChromeProperty <ContentPresenter>("PART_LeftWindowCommands");
            metroWindow.SetIsHitTestVisibleInChromeProperty <ContentPresenter>("PART_RightWindowCommands");
            metroWindow.SetIsHitTestVisibleInChromeProperty <ContentControl>("PART_WindowButtonCommands");
            metroWindow.SetWindowChromeResizeGripDirection("WindowResizeGrip", ResizeGripDirection.BottomRight);
        }