Ejemplo n.º 1
0
        private void LoadPlacement()
        {
            var placement = GetPlacement();

            if (placement != null)
            {
                if (_placementType == PlacementType.SizeAndPosition)
                {
                    placement.GetSizeAndPosition(_window);
                    WindowHelper.AdjustWindowPosition(_window, SystemParameters.WorkArea);
                }
                else if (_placementType == PlacementType.SizeOnly)
                {
                    placement.GetSizeOnly(_window);
                    WindowHelper.SetWindowPosition(_window);
                }
                else if (_placementType == PlacementType.PositionOnly)
                {
                    placement.GetPositionOnly(_window);
                    WindowHelper.AdjustWindowPosition(_window, SystemParameters.WorkArea);
                }
            }
        }