You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PocketBook/Sources/BookApp/Pages/EmpruntsPrets.xaml.cs

36 lines
631 B

using System.Windows.Input;
namespace BookApp.Pages;
public partial class EmpruntsPrets : ContentPage
{
public ICommand TapCommand => new Command(ToggleSwitch);
private bool _isToggled;
public bool IsToggled
{
get => _isToggled;
set
{
_isToggled = value;
OnPropertyChanged();
}
}
public EmpruntsPrets()
{
InitializeComponent();
}
async void BackButton(object sender, EventArgs args)
{
await Shell.Current.Navigation.PopAsync();
}
private void ToggleSwitch()
{
IsToggled = !IsToggled;
}
}