Fluent theme keeps blurred box when collapsing view

2 posts, 0 answers
  1. Jason
    Jason avatar
    5 posts
    Member since:
    Feb 2013

    Posted 27 Jul Link to this post

    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();
            }
        }
    }

     

     

  2. Stefan
    Admin
    Stefan avatar
    1024 posts

    Posted 01 Aug Link to this post

    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.
Back to Top