XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using System.Windows;
using System.Windows.Controls;

namespace XFEToolBox.WpfCore.Controls;

/// <summary>
/// 左侧导航式分页控件,导航列表与当前子页拥有独立的滚动区域。
/// </summary>
public class NavigationView : TabControl
{
    public static readonly DependencyProperty NavigationWidthProperty = DependencyProperty.Register(
        nameof(NavigationWidth),
        typeof(GridLength),
        typeof(NavigationView),
        new FrameworkPropertyMetadata(new GridLength(190)));

    public GridLength NavigationWidth
    {
        get => (GridLength)GetValue(NavigationWidthProperty);
        set => SetValue(NavigationWidthProperty, value);
    }
}