How to format a string in RadRibbonBackstageItem?

4 posts, 1 answers
  1. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 18 Jul 2014 Link to this post

    I am trying to format the header string that is bound to an item from the view model.

    eg

    Header="{Binding EstimateTakeoffService.SelectedEstimate.Title, StringFormat='Estimate Information: {0}'}"

    This doesn't show the "Estimate Information:"

    Why does this not work?

    Many thanks

    Ed
  2. Answer
    Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 22 Jul 2014 Link to this post

    Hello Ed,

    The RadBackstageItem is a HeaderedContentControl and it does not have a StringFormat property, that is why when you set the Header like you showed in the your post the "Estimate Information:" is not displayed. If you want to display a StringFormat you need to bind your Header without setting StringFormat in the binding and also set the HeaderStringFormat property of the RadRibbonBackstageItem. You can observe that same behavior with the MS TabControl and its Tabitems.

    Currently the HeaderStringFormat property of the RadRibbonBackstageItem is not working and even setting the HeaderStringFormat will not work. That is why I have logged that bug in our system and you could use our feedback portal to track its progress. I have also update your Telerik points as a small appreciation for your cooperation.

    Please excuse us for any inconvenience caused.

    Kind regards,
    Kiril Vandov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 22 Jul 2014 in reply to Kiril Vandov Link to this post

    Thanks for your reply. 

    The HeaderStringFormat also doesn't display the string that I require.

    eg <telerik:RadRibbonBackstageItem Width="250" Height="Auto" Padding="5" IsSelectable="True" Header="{Binding EstimateTakeoffService.SelectedEstimate.Title}" HeaderStringFormat="Estimate Information: {0}">

    Have I missed something?






  5. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 22 Jul 2014 in reply to Edmund Covington Link to this post

    My apologies. It seems I didn't read your reply in full! 

    Thanks for your help.
Back to Top