diff --git a/MainPage.xaml b/MainPage.xaml
index dc0db9c..36ecfbe 100644
--- a/MainPage.xaml
+++ b/MainPage.xaml
@@ -1,5 +1,5 @@
-
-
+
@@ -30,7 +30,7 @@
-
+
@@ -55,22 +55,21 @@
-
-
-
-
-
-
-
+ Grid.Row="3"
+ Grid.ColumnSpan="2"
+ Padding="10"
+ BackgroundColor="Transparent"
+ Direction="Row"
+ Wrap="Wrap"
+ JustifyContent="Center"
+ AlignItems="Center">
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/MainPage.xaml.cs b/MainPage.xaml.cs
index 5c42f4e..7669edc 100644
--- a/MainPage.xaml.cs
+++ b/MainPage.xaml.cs
@@ -1,7 +1,6 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
using CommanderApp.Services;
-using Microsoft.Maui.Controls;
namespace CommanderApp;
@@ -31,7 +30,7 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
if (_panelManager.LeftPanelPath != value)
{
_panelManager.UpdatePanelPaths(value, _panelManager.RightPanelPath);
- OnPropertyChanged();
+ NotifyPropertyChanged();
}
}
}
@@ -44,7 +43,7 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
if (_panelManager.RightPanelPath != value)
{
_panelManager.UpdatePanelPaths(_panelManager.LeftPanelPath, value);
- OnPropertyChanged();
+ NotifyPropertyChanged();
}
}
}
@@ -580,11 +579,10 @@ public partial class MainPage : ContentPage, INotifyPropertyChanged
private void OnExitClicked(object sender, EventArgs e) => Application.Current?.Quit();
// INotifyPropertyChanged
- public event PropertyChangedEventHandler? PropertyChanged;
- protected void SetProperty(ref T field, T value, [CallerMemberName] string? propertyName = null)
+ public new event PropertyChangedEventHandler? PropertyChanged;
+
+ protected virtual void NotifyPropertyChanged([CallerMemberName] string? propertyName = null)
{
- if (EqualityComparer.Default.Equals(field, value)) return;
- field = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
-}
\ No newline at end of file
+}