46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using CopaData.FileInspector.GUI.TilingPanels.Models;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace CopaData.FileInspector.GUI.TilingPanels.Controls;
|
|
|
|
public class TilingRootControl : Control
|
|
{
|
|
static TilingRootControl()
|
|
{
|
|
DefaultStyleKeyProperty.OverrideMetadata(
|
|
typeof(TilingRootControl),
|
|
new FrameworkPropertyMetadata(typeof(TilingRootControl)));
|
|
}
|
|
|
|
#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(TilingRootControl),
|
|
new PropertyMetadata(6.0));
|
|
|
|
public bool IsPrimaryRoot
|
|
{
|
|
get => (bool)GetValue(IsPrimaryRootProperty);
|
|
set => SetValue(IsPrimaryRootProperty, value);
|
|
}
|
|
|
|
public static DependencyProperty IsPrimaryRootProperty = DependencyProperty
|
|
.Register(
|
|
nameof(IsPrimaryRoot),
|
|
typeof(bool),
|
|
typeof(TilingRootControl),
|
|
new PropertyMetadata(true));
|
|
|
|
#endregion
|
|
}
|