This is a migrated thread and some comments may be shown as answers.

Fluent theme keeps blurred box when collapsing view

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
IT
Top achievements
Rank 1
IT asked on 27 Jul 2018, 06:54 PM

If I open a view and then hit the X to collapse the view, there is a focused blurred area that won't go away.  I need the items to collapse rather then close because I keep them in memory.  So how can I fix this blurred box staying on the screen when setting a view to Collapsed?

 

The first pictures shows with View open.   The second picture is how it looks if the View is collapsed.  And here is the code I run to collapse it:

 

private void RadWindow_PreviewClosed(object sender, Telerik.Windows.Controls.WindowPreviewClosedEventArgs e)
        {

            Visibility = Visibility.Collapsed;
            e.Cancel = true;
        }

 

And this is how the MainWindow initializes the Fluent Theme and opens the windows when clicked:

 public partial class MainWindow : RadWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            StyleManager.ApplicationTheme = new FluentTheme();
            FluentPalette.LoadPreset(FluentPalette.ColorVariation.Dark);
            FluentPalette.Palette.FontSizeS = 8;
            FluentPalette.Palette.FontSize = 12;
            FluentPalette.Palette.FontSizeL = 14;
            FluentPalette.Palette.FontSizeXL = 16;
        }
        
        private void View1Button_Click(object sender, RoutedEventArgs e)
        {
            EmptyDialog emptyDialog = new EmptyDialog();
            emptyDialog.Owner = this;
            emptyDialog.View = new View1ViewModel();
            emptyDialog.Height = 500;
            emptyDialog.Width = 500;
            emptyDialog.Show();
        }

        private void View2Button_Click(object sender, RoutedEventArgs e)
        {
            EmptyDialog emptyDialog = new EmptyDialog();
            emptyDialog.Owner = this;
            emptyDialog.View = new View2ViewModel();
            emptyDialog.Height = 500;
            emptyDialog.Width = 500;
            emptyDialog.Show();
        }
    }
}

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Aug 2018, 04:03 PM
Hi Jason,

Thank you very much for the detailed report.

This seems to be an issue on our end. It is actually not related to whether the Visibility of the Window is set to Collapsed within the PreviewClose handler or not. I have logged it in our bug tracking system. You can track its progress in the Feedback Portal: When setting Visibility.Collapsed in Fluent theme the Acrylic effect is not hidden. For the time being, the only workaround I can propose you is to disable the Acrylic effect as shown in the Fluent Theme topic.

Regards,
Stefan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
IT
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or