Moved Menu into SplitView - Added Button to open SplitView
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Media;
|
||||
@@ -36,4 +37,26 @@ public class ViewModelBase : ObservableObject
|
||||
get => _brushThickness;
|
||||
set => SetProperty(ref _brushThickness, value);
|
||||
}
|
||||
|
||||
private double _buttonOffset = 0;
|
||||
|
||||
public double ButtonOffset
|
||||
{
|
||||
get => _buttonOffset;
|
||||
set => SetProperty(ref _buttonOffset, value);
|
||||
}
|
||||
|
||||
private bool _isSplitOpen = false;
|
||||
|
||||
public bool IsSplitOpen
|
||||
{
|
||||
get => _isSplitOpen;
|
||||
set => SetProperty(ref _isSplitOpen, value);
|
||||
}
|
||||
|
||||
public IRelayCommand DisplaySplitEvent { get; protected set; }
|
||||
protected void DisplaySplit()
|
||||
{
|
||||
IsSplitOpen = !IsSplitOpen;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user