public HomePage()
        {
            this.InitializeComponent();

            var infoBar = new WinUI.InfoBar
            {
                Title             = "OOPS",
                Message           = "Division by zero. Dude, I told you so ...",
                Severity          = WinUI.InfoBarSeverity.Error,
                IsOpen            = true,
                VerticalAlignment = VerticalAlignment.Bottom,
                Margin            = new Thickness(0, 0, 0, 80)
            };

            RootGrid.Children.Add(infoBar);
        }
예제 #2
0
 private void InfoBarAppWideMessages_Closing(WinUI.InfoBar sender, WinUI.InfoBarClosingEventArgs args)
 {
     args.Cancel = true;
 }