using System.Windows; using System.Windows.Controls; using Qrakhen.TilingFrames.Controls.DragAndDrop; 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 HostControl : DragAndDropControl { public TilingHost? Host => DataContext as TilingHost; static HostControl() { DefaultStyleKeyProperty.OverrideMetadata( typeof(HostControl), new FrameworkPropertyMetadata(typeof(HostControl))); } public HostControl() { } #region DependencyProperties /*public Host Host { get => (Host)GetValue(HostProperty); set => SetValue(HostProperty, value); } public static DependencyProperty HostProperty = DependencyProperty .Register(nameof(Host), typeof(Host), typeof(HostControl), new PropertyMetadata(null));*/ #endregion }