WPF Slow window resizing with borderless window

I have a borderless transparent (rounded corners) WPF Window. It is a fairly complex app with a lot of dialogs that can be shown or hidden. We do this via MVVM binding to the Visibility property using the BooleanToVisibilityConverter which, as far as I am aware, set the visibility to Visible or Collapsed accordingly.

When I resize the window I get a significant lag in the drawing of the window that tends to leave content (borders, framework elements) behind (in that they dont follow the resize very fast). So to clarify I have the main window and the content inside of it (the content is inside a border). The main window will follow the mouse on resize accurately but the content will follow very slowly and will jerk.

I can't figure out what it is, can anyone offer any assistance? Obviously I am assuming that Collapsed dialogs are not resized (or relocated) when the window resizes.

Here is a little example of how we setup a dialog within the Main Window

<Grid x:Name="GlobalModalBackground" Visibility="{Binding ShowGlobalModalBackground, Converter={StaticResource BoolToVisibilityConverter}, FallbackValue=hidden}" Grid.ColumnSpan="2">
    <Border CornerRadius="3" Background="#66000000" Opacity="{Binding ModalOpacity}" />
        <local:About x:Name="AboutDialog" DataContext="{Binding AboutViewModel}" HorizontalAlignment="Center" VerticalAlignment="Center" Height="300" Width="500"/>
        <!-- Other dialogs here -->

In this case, the AboutDialog itself will take care of showing itself or closing itself based on what its ViewModel is set to.


Need Your Help

Jenkins on ISPConfig

linux jenkins

I'm usin ISPConfig to have multiple domains for my clients. Now, I have Jenkins to deploy an specific project.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.