diff --git a/src/MainDemo.Wpf/Alerts.xaml b/src/MainDemo.Wpf/Alerts.xaml new file mode 100644 index 0000000000..9dcb7a7b53 --- /dev/null +++ b/src/MainDemo.Wpf/Alerts.xaml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/src/MainDemo.Wpf/Alerts.xaml.cs b/src/MainDemo.Wpf/Alerts.xaml.cs new file mode 100644 index 0000000000..38deaf551f --- /dev/null +++ b/src/MainDemo.Wpf/Alerts.xaml.cs @@ -0,0 +1,6 @@ +namespace MaterialDesignDemo; + +public partial class Alerts +{ + public Alerts() => InitializeComponent(); +} diff --git a/src/MainDemo.Wpf/Domain/MainWindowViewModel.cs b/src/MainDemo.Wpf/Domain/MainWindowViewModel.cs index 391faf8a57..c023dd60f8 100644 --- a/src/MainDemo.Wpf/Domain/MainWindowViewModel.cs +++ b/src/MainDemo.Wpf/Domain/MainWindowViewModel.cs @@ -255,6 +255,15 @@ private static IEnumerable GenerateDemoItems(ISnackbarMessageQueue sna HorizontalScrollBarVisibilityRequirement = ScrollBarVisibility.Disabled }; + yield return new DemoItem( + "Alert", + typeof(Alerts), + [ + DocumentationLink.DemoPageLink(), + DocumentationLink.StyleLink("Alert"), + DocumentationLink.ApiLink() + ]); + yield return new DemoItem( "Icons", typeof(IconPack), diff --git a/src/MaterialDesign3.Demo.Wpf/Alerts.xaml b/src/MaterialDesign3.Demo.Wpf/Alerts.xaml new file mode 100644 index 0000000000..5944c8da4f --- /dev/null +++ b/src/MaterialDesign3.Demo.Wpf/Alerts.xaml @@ -0,0 +1,15 @@ + + + + + + + + + + diff --git a/src/MaterialDesign3.Demo.Wpf/Alerts.xaml.cs b/src/MaterialDesign3.Demo.Wpf/Alerts.xaml.cs new file mode 100644 index 0000000000..5345d446da --- /dev/null +++ b/src/MaterialDesign3.Demo.Wpf/Alerts.xaml.cs @@ -0,0 +1,6 @@ +namespace MaterialDesign3Demo; + +public partial class Alerts +{ + public Alerts() => InitializeComponent(); +} diff --git a/src/MaterialDesign3.Demo.Wpf/Domain/MainWindowViewModel.cs b/src/MaterialDesign3.Demo.Wpf/Domain/MainWindowViewModel.cs index 526947a680..a2511cc14f 100644 --- a/src/MaterialDesign3.Demo.Wpf/Domain/MainWindowViewModel.cs +++ b/src/MaterialDesign3.Demo.Wpf/Domain/MainWindowViewModel.cs @@ -291,6 +291,17 @@ private static IEnumerable GenerateDemoItems(ISnackbarMessageQueue sna selectedIcon: PackIconKind.Card, unselectedIcon: PackIconKind.CardOutline); + yield return new DemoItem( + "Alert", + typeof(Alerts), + [ + DocumentationLink.DemoPageLink(), + DocumentationLink.StyleLink("Alert"), + DocumentationLink.ApiLink() + ], + selectedIcon: PackIconKind.AlertCircle, + unselectedIcon: PackIconKind.AlertCircleOutline); + yield return new DemoItem( "Icon Pack", typeof(IconPack), diff --git a/src/MaterialDesignDemo.Shared/Examples/Alerts/AlertCloseExamples.xaml b/src/MaterialDesignDemo.Shared/Examples/Alerts/AlertCloseExamples.xaml new file mode 100644 index 0000000000..d2dfca0722 --- /dev/null +++ b/src/MaterialDesignDemo.Shared/Examples/Alerts/AlertCloseExamples.xaml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + +