MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

ValidationAssist.PopupPlacement does not work as expected

Open KillyMXI opened this issue 5 years ago • 1 comments

I have the following in my Xaml:

<TextBox x:Name="FirstName"
         Grid.Row="0"
         Grid.Column="2"
         Width="300"
         HorizontalAlignment="Left"
         VerticalAlignment="Center"
         md:ValidationAssist.PopupPlacement="Right"
         md:ValidationAssist.UsePopup="True" />

I expect the popup to show up on the right of the TextBox. But instead I get the following:

image

Results are the same with MaterialDesignInXaml v3.1.2 and v3.2.0-ci1479.

There is another issue too. Alignment by the top edge produces bad looking result. VerticalAlignment is required for side placement, and better default to Center.

KillyMXI avatar May 20 '20 15:05 KillyMXI

I didn't realize Popup placement works back to front in Xaml and I have to use md:ValidationAssist.PopupPlacement="Left" instead. It's quite confusing part and a wiki page for ValidationAssist would certainly help.

Vertical offset is still an issue though.

KillyMXI avatar May 20 '20 23:05 KillyMXI