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

I need default style of RadPasswordBox

3 Answers 131 Views
PasswordBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terry
Top achievements
Rank 1
Terry asked on 12 Nov 2013, 03:26 PM

Hi,

    I have many Radtextbox & 1 RadPasswordBox in my page. I am having problems with light - dark theme issues. I got RadTextBox 's default style from an example provided in one of your forums app "TextBoxStyleWP7", I made required changes in VisualState and am done with it.

    At this moment, I am not able to get and also don't know how to get default style from Expression Blend and/or VisualStudio 2012. Can any one pass me default style of RadPasswordBox, I will make reqd changes and make it workable like RadTextBox 's. OR can you tell, how do I set/change VisualState in code ? I will retrieve the style using :
Style textBoxStyle = new Style(typeof(RadPasswordBox));

make modifications in VisualStateGroup of FocusStates and update it.

  I am new in WP8 development, can anyone also help me guide - how do I access the Style created for RadTextBox for all pages textboxes. Where should I put the Style so can access it in all pages ?

Any help is highly appreciated.

Thanks

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 15 Nov 2013, 09:33 AM
Hello Terry,

Thank you for writing.

You can use the Visual Studio designer to extract the default style of a control. Simple Right-click it, then choose Edit Template -> Edit a Copy

Write an appropriate key and select Application. This way the resource will be defined in the scope of the whole application and you will be able to access it on multiple pages as a static resource.

On a side note, I'd like to inform you that curretly you don't have an active support plan. You can have a look at our offers and see how you can get a 24-hour response support and have full access to our source code.

I hope this information helps.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
beavisCZ
Top achievements
Rank 1
answered on 05 Feb 2015, 12:29 PM
Hello,
I tried sugested solution and I get only epty style:
<ControlTemplate x:Key="RadPasswordBoxControlTemplate1" TargetType="telerikPrimitives:RadPasswordBox"/>

What I'm doing wrong? I cant find full style for this control anywhere.
0
Dimitrina
Telerik team
answered on 10 Feb 2015, 11:44 AM
Hello Martin,

Please find attached a project  with the custom style of the RadPasswordBox control.

I hope this helps. Let us know if you have further questions.

Regards,
Dimitrina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
PasswordBox
Asked by
Terry
Top achievements
Rank 1
Answers by
Todor
Telerik team
beavisCZ
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or