troubleshooting Question

How to Set the Background Color of a Button without a Gradient Effect in Silverlight 4

Avatar of FaheemAhmadGul
FaheemAhmadGulFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft Development
4 Comments1 Solution1187 ViewsLast Modified:

I would like to set the background color of a Button as a solid color without any gradient effect, but am unable to do so.
The xaml that I have included is giving me an appearance like in diagram 1, even though I am chosing a solid color brush.
I would like it to appear as in diagram 2.
I would appreciate advice on how to achieve this.


my Current xaml

<Grid x:Name="LayoutRoot" Background="White">
        <Grid>

            <Grid.RowDefinitions >
                <RowDefinition Height ="50" />
                <RowDefinition Height="50" />
                <RowDefinition Height="50" />
             
            </Grid.RowDefinitions>
           
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50" />
                <ColumnDefinition Width="80" />
                <ColumnDefinition Width="20" />
               
            </Grid.ColumnDefinitions>
            <Button Grid.Row="1" Grid.Column="1" Content="Hello" Background="Green"></Button>
            </Grid>

    </Grid>

ButtonBackground.png
ASKER CERTIFIED SOLUTION
saragani

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros