Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Badged Control Causes Window Loading to Hang #2885

Closed
amkuchta opened this issue Mar 9, 2017 · 4 comments
Closed

[Bug] Badged Control Causes Window Loading to Hang #2885

amkuchta opened this issue Mar 9, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@amkuchta
Copy link
Contributor

amkuchta commented Mar 9, 2017

What steps will reproduce this issue?

Wrapping a TextBox in a Badged control (bound to the TextBox's Text.Length property) causes the window to hang when loading - the GlowBoarder will load, but nothing else. Code Snippet provided below:

<Controls:Badged Margin="5,0,5,5" Badge="{Binding ElementName=badgeTest, Path=Text.Length}" BadgePlacementMode="TopLeft">
  <TextBox x:Name="badgeTest" Controls:TextBoxHelper.Watermark="Enter sometext!" />
</Controls:Badged>

Expected outcome

Window should load and the badge should show the length of the text in the named TextBox

Repo

https://github.com/amkuchta/Vulnerator/tree/code_cleanup (code can be found in the "RmfView.xaml" file and is currently commented out)

Environment

  • MahApps.Metro v1.5.0-alpha007
  • Windows OS 10
  • Visual Studio 2017
  • .NET Framework 4.5.2
@amkuchta
Copy link
Contributor Author

amkuchta commented Mar 9, 2017

@ButchersBoy this one might interest you, since you implemented the Badge Control

@punker76
Copy link
Member

@amkuchta I can't start your Vulnerator sample, so I extracted the view and put it into the main demo and can not reproduce what you say. So please, try to figure it out if this is really the problem of the badged control, try to create a short sample app which reproduces your issue, thx

badged_test

@amkuchta
Copy link
Contributor Author

@punker76 to get the Vulnerator app to build, try copying the x86 and x64 folders from the main "Vulnerator" folder into "/bin/Debug". I think that should solve your issues.

@amkuchta
Copy link
Contributor Author

amkuchta commented Mar 13, 2017

@punker76 new info - I am now getting an exception (had to disable "Just My Code"):

"Exception = 'BadgeScaleTransform' name cannot be found in the name scope of 'System.Windows.Controls.ControlTemplate'."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants