Fluent.Button Header Binding not visible
See original GitHub issueI have added a binding to the header property of a fluent.button, however when the application is running the value is not seen? I have used snoop and i can see that the binding is happy and with the correct value but it does not show?
the value 100 should be showing in the button header.
any ideas?
<Fluent:Button Command="{Binding ProgramSpeedCommand}" Header="{Binding ApplicationRobotControl.Robot.ProgramSpeed, FallbackValue=0}" Icon="pack://application:,,,/KUKA.RGI v3;component/Icons/hand.ico" LargeIcon="pack://application:,,,/KUKA.RGI v3;component/Icons/hand.ico"> <Fluent:Button.ToolTip> <Fluent:ScreenTip Title="Program Speed" Width="250" DisableReason="This control is disabled to show 'disable reason' section" HelpTopic="Help for Orange ScreenTip" Image="pack://application:,,,/KUKA.RGI v3;component/Images/hand.png" Text="This control is disabled and has fixed width 250px" /> </Fluent:Button.ToolTip> </Fluent:Button>
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
That’s quite strange. Most controls in Fluent.Ribbon use a TemplateBinding for the header, which does not seem to work when the bound value is not a string. It works again if using a Binding with a relative source…
Thanks. I ended up using a converter to return the ToString() of an object.