Exemple #1
0
        private void NavAppInfoDialogButton_Click(object sender, RoutedEventArgs e)
        {
            var winInfo = new AboutView();
            var win     = new XamDialogWindow
            {
                Width               = winInfo.GetDesiredSize().Width,
                Height              = winInfo.GetDesiredSize().Height + 80,
                StartupPosition     = StartupPosition.Center,
                Content             = winInfo,
                IsModal             = true,
                IsResizable         = false,
                RestrictInContainer = true,
                Style               = Application.Current.Resources["AppDialogWindowStyle"] as Style
            };

            this.AppInfoContainer.Children.Add(win);
        }
        private void NavAppInfoDialogButton_Click(object sender, RoutedEventArgs e)
        {
            var winInfo = new AboutView();
            var win     = new XamDialogWindow
            {
                Width           = winInfo.GetDesiredSize().Width,
                Height          = winInfo.GetDesiredSize().Height + 80,
                StartupPosition = StartupPosition.Center,
                Content         = winInfo,
                IsModal         = true,
                ModalBackground = new SolidColorBrush(Colors.Black)
                {
                    Opacity = 0.75
                },
                IsResizable = false,
                Header      = AppStrings.AppView_About,
            };

            this.AppInfoContainer.Children.Add(win);
        }