This is a migrated thread and some comments may be shown as answers.

Binding ApplicationBarButton.Text

3 Answers 46 Views
PickerBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 12 Oct 2012, 01:26 PM

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?

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 15 Oct 2012, 08:05 AM
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.

0
Martin
Top achievements
Rank 1
answered on 15 Oct 2012, 08:19 AM

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;

0
Victor
Telerik team
answered on 15 Oct 2012, 10:35 AM
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.

Tags
PickerBox
Asked by
Martin
Top achievements
Rank 1
Answers by
Victor
Telerik team
Martin
Top achievements
Rank 1
Share this question
or