private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var zoomPanel = new ZoomPanel
            {
                Image = new Image() { Source = Image.Source }, 
                Height = Application.Current.RootVisual.RenderSize.Height,
                Width = Application.Current.RootVisual.RenderSize.Width,
            };
            
            var customMessageBox = new CustomMessageBox
            {
                Title = Title,
                Message = Message,
                Content = zoomPanel,
                IsLeftButtonEnabled = false,
				IsRightButtonEnabled = false,
                IsFullScreen = true
            };

            customMessageBox.Show();
        }
예제 #2
0
        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            var zoomPanel = new ZoomPanel
            {
                Image = new Image()
                {
                    Source = Image.Source
                },
                Height = Application.Current.RootVisual.RenderSize.Height,
                Width  = Application.Current.RootVisual.RenderSize.Width,
            };

            var customMessageBox = new CustomMessageBox
            {
                Title                = Title,
                Message              = Message,
                Content              = zoomPanel,
                IsLeftButtonEnabled  = false,
                IsRightButtonEnabled = false,
                IsFullScreen         = true
            };

            customMessageBox.Show();
        }