feat: make titlebar visible property actually useful.
This commit is contained in:
@@ -29,6 +29,15 @@ public class TitleBar: ContentControl
|
||||
get => GetValue(RightContentProperty);
|
||||
set => SetValue(RightContentProperty, value);
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<bool> IsTitleVisibleProperty = AvaloniaProperty.Register<TitleBar, bool>(
|
||||
nameof(IsTitleVisible));
|
||||
|
||||
public bool IsTitleVisible
|
||||
{
|
||||
get => GetValue(IsTitleVisibleProperty);
|
||||
set => SetValue(IsTitleVisibleProperty, value);
|
||||
}
|
||||
|
||||
protected override void OnApplyTemplate(TemplateAppliedEventArgs e)
|
||||
{
|
||||
|
||||
@@ -47,7 +47,7 @@ public class UrsaWindow: Window
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<bool> IsTitleBarVisibleProperty = AvaloniaProperty.Register<UrsaWindow, bool>(
|
||||
nameof(IsTitleBarVisible));
|
||||
nameof(IsTitleBarVisible), true);
|
||||
|
||||
public bool IsTitleBarVisible
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user