46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System.Windows;
|
|
|
|
namespace CopaData.FileInspector.GUI.TilingPanels.Controls;
|
|
|
|
/// <summary>
|
|
/// A dedicated window for hosting its own <see cref="TilingRoot"/>, to be used for pop-out interactions.
|
|
/// </summary>
|
|
public class TilingWindow : Window
|
|
{
|
|
static TilingWindow()
|
|
{
|
|
DefaultStyleKeyProperty.OverrideMetadata(
|
|
typeof(TilingWindow),
|
|
new FrameworkPropertyMetadata(typeof(TilingWindow)));
|
|
}
|
|
|
|
#region Dependency Properties
|
|
|
|
public double SplitterWidth
|
|
{
|
|
get => (double)GetValue(SplitterWidthProperty);
|
|
set => SetValue(SplitterWidthProperty, value);
|
|
}
|
|
|
|
public static DependencyProperty SplitterWidthProperty = DependencyProperty
|
|
.Register(
|
|
nameof(SplitterWidth),
|
|
typeof(double),
|
|
typeof(TilingWindow),
|
|
new PropertyMetadata(6.0));
|
|
|
|
public TilingRootControl Root
|
|
{
|
|
get => (TilingRootControl)GetValue(RootProperty);
|
|
set => SetValue(RootProperty, value);
|
|
}
|
|
|
|
public static DependencyProperty RootProperty = DependencyProperty
|
|
.Register(
|
|
nameof(Root),
|
|
typeof(TilingRootControl),
|
|
typeof(TilingWindow));
|
|
|
|
#endregion
|
|
}
|