qamp/Qrakhen.TilingFrames/Controls/TilingHostFrameControl.cs

41 lines
1.0 KiB
C#

using System.Windows;
using System.Windows.Controls;
using CopaData.FileInspector.GUI.TilingPanels.Models;
namespace CopaData.FileInspector.GUI.TilingPanels.Controls;
/// <summary>
/// Control that represents the state of a <see cref="TilingFrame"/>,
/// with all the necessary interaction logic tied to it.
/// </summary>
public class TilingHostFrameControl : ContentControl
{
static TilingHostFrameControl()
{
DefaultStyleKeyProperty.OverrideMetadata(
typeof(TilingHostFrameControl),
new FrameworkPropertyMetadata(typeof(TilingHostFrameControl)));
}
public TilingHostFrameControl()
{
}
#region DependencyProperties
public TilingFrame Frame
{
get => (TilingFrame)GetValue(FrameProperty);
set => SetValue(FrameProperty, value);
}
public static DependencyProperty FrameProperty = DependencyProperty
.Register(nameof(Frame),
typeof(TilingFrame),
typeof(TilingHostFrameControl),
new PropertyMetadata(null));
#endregion
}