Browse Source

Remove "Show Native Notification" as we won't have them soon

pull/12178/head
Max Katz 2 years ago
parent
commit
8b8b137c30
  1. 3
      samples/ControlCatalog/Pages/NotificationsPage.xaml
  2. 8
      samples/ControlCatalog/ViewModels/NotificationViewModel.cs

3
samples/ControlCatalog/Pages/NotificationsPage.xaml

@ -6,6 +6,5 @@
<StackPanel Orientation="Vertical" Spacing="4" HorizontalAlignment="Left">
<Button Content="Show Standard Managed Notification" Command="{Binding ShowManagedNotificationCommand}" />
<Button Content="Show Custom Managed Notification" Command="{Binding ShowCustomManagedNotificationCommand}" />
<Button Content="Show Native Notification" Command="{Binding ShowNativeNotificationCommand}" />
</StackPanel>
</StackPanel>
</UserControl>

8
samples/ControlCatalog/ViewModels/NotificationViewModel.cs

@ -19,11 +19,6 @@ namespace ControlCatalog.ViewModels
NotificationManager?.Show(new Avalonia.Controls.Notifications.Notification("Welcome", "Avalonia now supports Notifications.", NotificationType.Information));
});
ShowNativeNotificationCommand = MiniCommand.Create(() =>
{
NotificationManager?.Show(new Avalonia.Controls.Notifications.Notification("Error", "Native Notifications are not quite ready. Coming soon.", NotificationType.Error));
});
YesCommand = MiniCommand.Create(() =>
{
NotificationManager?.Show(new Avalonia.Controls.Notifications.Notification("Avalonia Notifications", "Start adding notifications to your app today."));
@ -45,8 +40,5 @@ namespace ControlCatalog.ViewModels
public MiniCommand ShowCustomManagedNotificationCommand { get; }
public MiniCommand ShowManagedNotificationCommand { get; }
public MiniCommand ShowNativeNotificationCommand { get; }
}
}

Loading…
Cancel
Save