| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Windows;
- namespace Muchinfo.WPF.Controls.Windows
- {
- /// <summary>
- /// Class WindowBorder.
- /// </summary>
- public class WindowBorder
- {
- /// <summary>
- /// The element which is acting as the border.
- /// </summary>
- public FrameworkElement Element { get; private set; }
- /// <summary>
- /// The position of the border.
- /// </summary>
- public BorderPosition Position { get; private set; }
- /// <summary>
- /// Creates a new window border using the specified element and position.
- /// </summary>
- /// <param name="position"></param>
- /// <param name="element"></param>
- public WindowBorder(BorderPosition position, FrameworkElement element)
- {
- if (element == null)
- {
- throw new ArgumentNullException("element");
- }
- Position = position;
- Element = element;
- }
- }
- }
|