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

Changed the [Object][object] error that showed when a HyperlinkButton… #231

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ronmenator
Copy link
Contributor

...is bound to an object

VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
<TextBlock.Foreground>

<Border x:Name="UnderlineTextBlock" Margin="2,0,2,1" BorderThickness="0,0,0,1" Visibility="Collapsed">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned that this will negatively affect the underline on regular text. Should we show/hide the underline text box based on whether the bound data is text?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The more I think about it...we should just apply TextDecorations = Underline should be applied to the content presenter on hover. Since TextDecorations is inheritable, it should cascade to the TextBlock in the template regardless of how it was created.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try it and see what happens - the offshore team has already asked about the underline that shows up. This way, it can be controlled by template. I like this better

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

Successfully merging this pull request may close these issues.

2 participants