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

Comments

Projects
None yet
2 participants
@amkuchta
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

This comment has been minimized.

Show comment
Hide comment
@amkuchta

amkuchta Mar 9, 2017

Contributor

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

Contributor

amkuchta commented Mar 9, 2017

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

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Mar 13, 2017

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

Member

punker76 commented Mar 13, 2017

@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

This comment has been minimized.

Show comment
Hide comment
@amkuchta

amkuchta Mar 13, 2017

Contributor

@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.

Contributor

amkuchta commented Mar 13, 2017

@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

This comment has been minimized.

Show comment
Hide comment
@amkuchta

amkuchta Mar 13, 2017

Contributor

@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'."

Contributor

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'."

@punker76 punker76 added this to the 1.5.0 milestone Mar 16, 2017

@punker76 punker76 added the Bug label Mar 16, 2017

@punker76 punker76 self-assigned this Mar 16, 2017

@punker76 punker76 closed this in d6e6d17 Mar 16, 2017

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