But I want to use them everywhere or build my own ApplicationBar.
They should be theme aware and it should be possible to switch text and Icon on and off.
Kind regards
Fabian
4 Answers, 1 is accepted
Thank you for writing.
You most likely need an instance of the ApplicationBarIconButton class that can serve as a protoype for the other buttons in your application. Since the ApplicationBarIconButton is not a dependency object and therefore not a Control child, you will not be able to provide templates or styles.
By default the Text and IconUri properties are configurable, that is, have public setters so you should be able to dynamically change them.
In order for the buttons to be theme aware, you will need to stick to a certain set of best practices when creating custom icons.
The text color is not configurable, unfortunately, and automatically changes with the theme.
In order to circumvent the limitations described above you will have to implement the application bar from scratch which could theoretically be done with RadWindow (which provides hardware acceleration) or with the default Popup control.
Victor
the Telerik team
thanks for your explanations.
What I found:
http://www.windowsphonegeek.com/articles/Creating-theme-friendly-UI--in-WP7-using-OpacityMask
Would be nice if telerik would offer a control like this, but till than I have to do the work ;-)
Thanks for the link, we will consider implementing such a button in the near future. It is a very simple control that however seems to be pretty useful for our users.
Regards,
Georgi
the Telerik team
thanks a lot. Great news for me.
Kind regards
Fabian