Click here to Skip to main content
15,886,963 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF performance problems in planning application Pin
h_c_d10-May-09 23:39
h_c_d10-May-09 23:39 
QuestionSize of a custom shape (DesiredSize) Pin
Pauwels Bart10-May-09 18:15
Pauwels Bart10-May-09 18:15 
AnswerRe: Size of a custom shape (DesiredSize) Pin
Pauwels Bart13-May-09 1:21
Pauwels Bart13-May-09 1:21 
QuestionQuick TextBox Question Pin
BlitzPackage10-May-09 11:46
BlitzPackage10-May-09 11:46 
AnswerRe: Quick TextBox Question Pin
Pete O'Hanlon10-May-09 21:38
mvePete O'Hanlon10-May-09 21:38 
GeneralRe: Quick TextBox Question Pin
BlitzPackage10-May-09 23:26
BlitzPackage10-May-09 23:26 
QuestionHow can I change a StaticResource by code behind Pin
existenc9-May-09 21:44
existenc9-May-09 21:44 
AnswerRe: How can I change a StaticResource by code behind Pin
Philipp Sumi9-May-09 23:19
Philipp Sumi9-May-09 23:19 
Keep in mind that the "Style" property is still a property that takes a Style instance. The StaticResource markup extension is just a helper class that looks up a named resource (of type STYLE) and assigns it to that property.
Accordingly, in code, you need to look up the style resource yourself and assign it - StaticResource is nothing you are using at this time. What you are looking for is the FindResource method.

However, changing a style in code behind to switch the look when a textbox is selected is not the WPF way of doing things. Usually, you just write one style and use triggers to exchange the look as soon as the textbox is selected. Do a short Google search - there are tons of samples around.

hth, Philipp

NetDrives - Open Source Network Share Management Awesomeness

GeneralRe: How can I change a StaticResource by code behind Pin
ravikiran_ch23-Sep-11 8:56
ravikiran_ch23-Sep-11 8:56 
AnswerRe: How can I change a StaticResource by code behind Pin
Pete O'Hanlon10-May-09 8:50
mvePete O'Hanlon10-May-09 8:50 
AnswerRe: How can I change a StaticResource by code behind Pin
Niladri_Biswas13-Jun-09 4:24
Niladri_Biswas13-Jun-09 4:24 
AnswerRe: How can I change a StaticResource by code behind Pin
BernalF18-Aug-10 4:42
BernalF18-Aug-10 4:42 
QuestionWPF newbie in it with some problems arround formatting a ListView Pin
existenc9-May-09 8:56
existenc9-May-09 8:56 
AnswerRe: WPF newbie in it with some problems arround formatting a ListView [modified] Pin
Mark Salsbery9-May-09 11:11
Mark Salsbery9-May-09 11:11 
GeneralRe: WPF newbie in it with some problems arround formatting a ListView Pin
existenc9-May-09 21:36
existenc9-May-09 21:36 
QuestionIs there a way to run wpfbrowser application in linux? Pin
Krishnraj9-May-09 0:28
Krishnraj9-May-09 0:28 
AnswerRe: Is there a way to run wpfbrowser application in linux? Pin
Philipp Sumi9-May-09 0:47
Philipp Sumi9-May-09 0:47 
QuestionEvent Handling Pin
#realJSOP8-May-09 5:35
mve#realJSOP8-May-09 5:35 
AnswerRe: Event Handling Pin
Nish Nishant8-May-09 6:25
sitebuilderNish Nishant8-May-09 6:25 
GeneralRe: Event Handling Pin
#realJSOP8-May-09 6:30
mve#realJSOP8-May-09 6:30 
GeneralRe: Event Handling Pin
Nish Nishant8-May-09 6:53
sitebuilderNish Nishant8-May-09 6:53 
GeneralRe: Event Handling Pin
Mark Salsbery8-May-09 7:36
Mark Salsbery8-May-09 7:36 
GeneralRe: Event Handling Pin
#realJSOP8-May-09 10:54
mve#realJSOP8-May-09 10:54 
AnswerRe: Event Handling Pin
Philipp Sumi8-May-09 6:41
Philipp Sumi8-May-09 6:41 
GeneralRe: Event Handling Pin
Nish Nishant8-May-09 6:57
sitebuilderNish Nishant8-May-09 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.