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

Assign a StringFormat binding to a RibbonGroupBox Header #214

Closed
1nTheZ0ne opened this issue Dec 11, 2015 · 2 comments
Closed

Assign a StringFormat binding to a RibbonGroupBox Header #214

1nTheZ0ne opened this issue Dec 11, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@1nTheZ0ne
Copy link

I've been trying to create a dynamic RibbonGroupBox with some success however I cannot find a good way to set the header to a formatted string, barring the user of a value converter.

As the Header property is an object rather than a string I cannot use a binding in XAML that has a StringFormat parameter.

I would like to be able to do one of the following:

<Fluent:RibbonGroupBox Header="{Binding Path=Name, StringFormat='{}{0} Properties'}">`
</Fluent:RibbonGroupBox>

Or:

<Fluent:RibbonGroupBox.Header>
    <TextBlock Text="{Binding Path=Name, StringFormat='{}{0} Properties'}" />
</Fluent:RibbonGroupBox.Header>
@batzen batzen added this to the 3.6.1 milestone Dec 12, 2015
@batzen batzen self-assigned this Dec 12, 2015
@batzen batzen modified the milestone: 3.6.1 Dec 12, 2015
@batzen
Copy link
Member

batzen commented Dec 12, 2015

Damn, forget to reference in commit.
Is fixed with ab241d5

@batzen batzen closed this as completed Dec 12, 2015
@batzen
Copy link
Member

batzen commented Dec 12, 2015

You can now use the former of your mentioned alternatives.
The latter is, currently, impossible.

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

No branches or pull requests

2 participants