OverlayArea.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*************************************************************************************
  2. Extended WPF Toolkit
  3. Copyright (C) 2007-2013 Xceed Software Inc.
  4. This program is provided to you under the terms of the Microsoft Public
  5. License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
  6. For more features, controls, and fast professional support,
  7. pick up the Plus Edition at http://xceed.com/wpf_toolkit
  8. Stay informed: follow @datagrid on Twitter or Like http://facebook.com/datagrids
  9. ***********************************************************************************/
  10. using System;
  11. using System.Collections.Generic;
  12. using System.Linq;
  13. using System.Text;
  14. using System.Windows.Controls;
  15. using System.Windows;
  16. using Xceed.Wpf.AvalonDock.Layout;
  17. namespace Xceed.Wpf.AvalonDock.Controls
  18. {
  19. public abstract class OverlayArea : IOverlayWindowArea
  20. {
  21. internal OverlayArea(IOverlayWindow overlayWindow)
  22. {
  23. _overlayWindow = overlayWindow;
  24. }
  25. IOverlayWindow _overlayWindow;
  26. Rect? _screenDetectionArea;
  27. Rect IOverlayWindowArea.ScreenDetectionArea
  28. {
  29. get
  30. {
  31. return _screenDetectionArea.Value;
  32. }
  33. }
  34. protected void SetScreenDetectionArea(Rect rect)
  35. {
  36. _screenDetectionArea = rect;
  37. }
  38. }
  39. }