Binding ApplicationBarButton.Text

4 posts, 0 answers
  1. Martin
    Martin avatar
    26 posts
    Member since:
    Jul 2012

    Posted 12 Oct 2012 Link to this post

    I am creating my PickerBox with custom buttons and I have just discovered that ApplicationBarButton.Text is not a dependency property, so I cannot databind name of these buttons to my resources.

    Is this a known bug, do you plan to fix it?

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 15 Oct 2012 Link to this post

    Hi Martin,

    Thanks for writing.
    Several users already reported this and the application bar components have modified to be dependency objects and to have dependency properties. The changes will be included in the official release which will be available for download later this week.

    Please write again if you have other questions.

    Regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Martin
    Martin avatar
    26 posts
    Member since:
    Jul 2012

    Posted 15 Oct 2012 Link to this post

    Another issue I discovered is when I create ApplicationBarButton items in XAML with x:Name properties

    <telerikPrimitives:RadPickerBox.ApplicationBarInfo>
    <telerikPrimitives:ApplicationBarInfo x:Name="AppBar" ButtonClick="ApplicationBarInfoButtonClick">
    <telerikPrimitives:ApplicationBarButton x:Name="OkDeadline" IconUri="/Images/DateTimePickerOK.png"/>
    <telerikPrimitives:ApplicationBarButton x:Name="CancelDeadline" IconUri="/Images/DateTimePickerCancel.png"/>

    </telerikPrimitives:ApplicationBarInfo>
    </telerikPrimitives:RadPickerBox.ApplicationBarInfo>

    then when I use these names in code behind, they are always null. I have to use this far from convenient method for localizing buttons:

    AppBar.Buttons[0].Text = AppResources.OkButtonText;
    AppBar.Buttons[1].Text = AppResources.CancelButtonText;

  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 15 Oct 2012 Link to this post

    Hello Martin,

    Thank you for writing. I am afraid that this is known bug in Silverlight and cannot be worked around. Please see this help topic. The app bar issue has the exact same cause.

    Thank you for understanding.

    Regards,
    Victor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top