Grid Background in WPF
Yes i did a mistake in calling the Code. what i did is i had called the code b4 intialisecomponent() thats the problem occurs. now its fine .thank 4 the Repy.Sorry 4 the mistake i had done.Happy .NET...
View ArticleGrid Background in WPF
Well, your code works fine on my machine. Are you sure that LeftColumnGrid is instantiated at the time you try to set the Background?
View ArticleGrid Background in WPF
Hi ,The Code is Getting the Exception as Objects Reference not set to an instance of.actually two Color Class is available in .net 1) System.Drawing.Color2) System.Windows.Media.Color WPF is not...
View ArticleGrid Background in WPF
Hi,It's myGrid.Background = new SolidColorBrush(Color.FromArgb(50, 100, 150,100));Best regards,Benny
View ArticleGrid Background in WPF
It Doesnt worked out ..Getting the Error as Cannot Implictly Convert the SolidBrush to MediaBrush
View ArticleGrid Background in WPF
Hi, try the following Code Snippet myGrid.Background = new SolidBrush(Color.FromArgb(50, 100, 150)); Keep in mind that Background is a Brush, so you can use other brushes such as gradients, textures...
View ArticleGrid Background in WPF
Thanks For ur Reply, But i want to apply the RGB Color in C# Code Behind,Not in the XAML.
View ArticleGrid Background in WPF
For the Background in WPF you can also use a hexadecimal value: .cf {font-family:Courier New;font-size:10pt;color:black;background:white;} .cl {margin:0px;} .cb1 {color:blue;} .cb2 {color:#a31515;}...
View ArticleGrid Background in WPF
Hi All, I want to change the Background color for the Grid since the Background Property Expects the Brushes..i want to customise the grid so that i can set the color using RGB instead of using the...
View Article
More Pages to Explore .....