punker76 / MahApps.Metro.SimpleChildWindow

A simple child window for MahApps.Metro
MIT License
374 stars 55 forks source link

Child window appears "beneath" validation errors #24

Closed agc93 closed 7 years ago

agc93 commented 8 years ago

I have a simple WPF app with "standard" WPF validation (i.e. IDataErrorInfo and ValidatesOnDataErrors ) enabled, and when opening the child window, the outlines left by validation errors appear on top of the child window (the field's stay below it).

screenshot 8

I have tried updating the Panel.ZIndex property to something extremely high (5000) and it does not resolve the issue.

Note that this may be an issue with MahApps.Metro's implementation of validation errors, so let me know if this should be raised in that repo, or if you need any more information.

Markup (trimmed) for ChildWindow:

 <s:ChildWindow
        IsOpen="{Binding Path=IsAboutWindowVisible}"
        HorizontalContentAlignment="Center"
        VerticalContentAlignment="Center"
        Padding="15"
        ChildWindowImage="Information"
        Title="Help/About"
        CloseOnOverlay="True"
        GlowBrush="{DynamicResource AccentColorBrush}">
</s:ChildWindow
punker76 commented 7 years ago

@agc93 You can prevent this if you put your window/usercontrol content (not the child window content) in a AdornerDecorator.

punker76 commented 7 years ago

@agc93 Can I close this?

agc93 commented 7 years ago

@punker76 yeah close this one: haven't worked on the application for a while