WindowBorder.cs 1000 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Windows;
  3. namespace Muchinfo.WPF.Controls.Windows
  4. {
  5. /// <summary>
  6. /// Class WindowBorder.
  7. /// </summary>
  8. public class WindowBorder
  9. {
  10. /// <summary>
  11. /// The element which is acting as the border.
  12. /// </summary>
  13. public FrameworkElement Element { get; private set; }
  14. /// <summary>
  15. /// The position of the border.
  16. /// </summary>
  17. public BorderPosition Position { get; private set; }
  18. /// <summary>
  19. /// Creates a new window border using the specified element and position.
  20. /// </summary>
  21. /// <param name="position"></param>
  22. /// <param name="element"></param>
  23. public WindowBorder(BorderPosition position, FrameworkElement element)
  24. {
  25. if (element == null)
  26. {
  27. throw new ArgumentNullException("element");
  28. }
  29. Position = position;
  30. Element = element;
  31. }
  32. }
  33. }