Click here to Skip to main content
15,892,674 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 18:14
Michael Sync10-Aug-08 18:14 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Jammer10-Aug-08 22:44
Jammer10-Aug-08 22:44 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 22:46
Michael Sync10-Aug-08 22:46 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 22:47
Michael Sync10-Aug-08 22:47 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Jammer10-Aug-08 22:55
Jammer10-Aug-08 22:55 
GeneralRe: Any recommendation for WPF Datagrid?? Pin
Michael Sync10-Aug-08 23:31
Michael Sync10-Aug-08 23:31 
AnswerRe: Any recommendation for WPF Datagrid?? Pin
Jacquers11-Aug-08 21:19
Jacquers11-Aug-08 21:19 
QuestionWindow Background Brush Change Pin
BlitzPackage8-Aug-08 10:07
BlitzPackage8-Aug-08 10:07 
Good people,

I have assigned several items (including the background of my MainWindow) to a particular brush. My strategy is that instead of changing several different components (e.g. border background colors, border colors, control background colors, etc...), I can just change the color of the brush they all use via procedural code. The colors will change based on user preferences.

Unfortunately, when I try to do that, it doesn't work. The code is as follows:

public void SetClassicThemeBrushes()
{
// WindowMainBackground

Brush WindowMainBackgroundBrush = (Brush)TryFindResource("BrushWindowMainBackground");
WindowMainBackgroundBrush = (Brush)TryFindResource("MyCoolBreezeGradientBrush");
}

In the first line of code, attempt to get a reference to the existing brush that the components are assigned to. In the second line of code, I try to assign another color brush to the WindowMainBackground brush hoping it changes its color. Now I am wondering if all I have done is change a reference and not the color. Any idea on how I change the colors?

Any thoughts?

Thanks,
BP
AnswerRe: Window Background Brush Change Pin
Insincere Dave8-Aug-08 13:58
Insincere Dave8-Aug-08 13:58 
GeneralRe: Window Background Brush Change Pin
BlitzPackage8-Aug-08 15:41
BlitzPackage8-Aug-08 15:41 
GeneralRe: Window Background Brush Change Pin
BlitzPackage8-Aug-08 15:51
BlitzPackage8-Aug-08 15:51 
AnswerRe: Window Background Brush Change Pin
Jammer8-Aug-08 22:38
Jammer8-Aug-08 22:38 
QuestionWPF Control Advice Pin
Harvey Saayman7-Aug-08 20:59
Harvey Saayman7-Aug-08 20:59 
AnswerRe: WPF Control Advice Pin
Jammer7-Aug-08 23:09
Jammer7-Aug-08 23:09 
AnswerRe: WPF Control Advice Pin
Gideon Engelberth8-Aug-08 3:19
Gideon Engelberth8-Aug-08 3:19 
QuestionGetting A DependencyProperty 'Original Value' Pin
Jammer7-Aug-08 12:53
Jammer7-Aug-08 12:53 
AnswerRe: Getting A DependencyProperty 'Original Value' Pin
Insincere Dave7-Aug-08 13:58
Insincere Dave7-Aug-08 13:58 
GeneralRe: Getting A DependencyProperty 'Original Value' Pin
Insincere Dave7-Aug-08 14:18
Insincere Dave7-Aug-08 14:18 
GeneralRe: Getting A DependencyProperty 'Original Value' Pin
Jammer7-Aug-08 20:56
Jammer7-Aug-08 20:56 
GeneralRe: Getting A DependencyProperty 'Original Value' Pin
Jammer7-Aug-08 20:54
Jammer7-Aug-08 20:54 
GeneralRe: Getting A DependencyProperty 'Original Value' Pin
Jammer7-Aug-08 22:54
Jammer7-Aug-08 22:54 
Questioncustom, main window look with wpf Pin
valajbeg7-Aug-08 0:57
valajbeg7-Aug-08 0:57 
AnswerRe: custom, main window look with wpf Pin
Thomas Stockwell7-Aug-08 1:47
professionalThomas Stockwell7-Aug-08 1:47 
GeneralRe: custom, main window look with wpf Pin
valajbeg7-Aug-08 1:53
valajbeg7-Aug-08 1:53 
GeneralRe: custom, main window look with wpf Pin
Pete O'Hanlon7-Aug-08 2:10
mvePete O'Hanlon7-Aug-08 2:10 

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.