/// <summary> /// Initializes a new instance of the SplitView class. /// </summary> public SplitView() { DefaultStyleKey = typeof(SplitView); TemplateSettings = new SplitViewTemplateSettings() { OpenPaneLength = OpenPaneLength }; UpdateTemplateSettings(); }
/// <summary> /// Initializes a new instance of the <see cref="SplitView"/> class. /// </summary> public SplitView() { DefaultStyleKey = typeof(SplitView); TemplateSettings = new SplitViewTemplateSettings(this); Loaded += (s, args) => { TemplateSettings.Update(); ChangeVisualState(false); }; }