qamp/Qrakhen.TilingFrames/Controls/HostControl.cs

44 lines
1.0 KiB
C#

using System.Windows;
using System.Windows.Controls;
using Qrakhen.TilingFrames.Controls.DragAndDrop;
using Qrakhen.TilingFrames.Models;
namespace Qrakhen.TilingFrames.Controls;
/// <summary>
/// Control that represents the state of a <see cref="Models.TilingHost"/>,
/// with all the necessary interaction logic tied to it.
/// </summary>
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
}