using System.Windows; using System.Windows.Controls; using Qrakhen.TilingFrames.Models; namespace Qrakhen.TilingFrames.Controls; /// /// Control that represents the state of a , /// with all the necessary interaction logic tied to it. /// public class HostFrameControl : ContentControl { static HostFrameControl() { DefaultStyleKeyProperty.OverrideMetadata( typeof(HostFrameControl), new FrameworkPropertyMetadata(typeof(HostFrameControl))); } public HostFrameControl() { } #region DependencyProperties public HostFrame Frame { get => (HostFrame)GetValue(FrameProperty); set => SetValue(FrameProperty, value); } public static DependencyProperty FrameProperty = DependencyProperty .Register(nameof(Frame), typeof(HostFrame), typeof(HostFrameControl), new PropertyMetadata(null)); #endregion }