MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit

ValidationAssist.PopupPlacement does not work as expected

Open
#1,850 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug evaluation required
Dominant language
C#
Stars
16.3k
Forks
3.5k
Avg merge
1d 22h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported XAML TextBox case with ValidationAssist.PopupPlacement="Right" and ValidationAssist.UsePopup="True", then inspect the implementation of those properties. Done means the validation popup appears beside the TextBox for side placement and the top-edge alignment produces the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
design, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.