How do I show Column and Row Borders of a UniformGrid (XAML / Expression Blend 3)?

Hi,
How do I show all cell borders of a UniformGrid element with a number of columns and rows.  

I'm using:
Expression Blend 3
XAML
C#
avtelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
avtelAuthor Commented:
That's using regular Grid, not Uniform Grid.  I can't find an equivalent for ShowGridLines in the Uniform Grid control.
Is there any way to use SolidColorBrush to paint in the columns/rows of a UniformGrid?
0
CuteBugCommented:
All you need to do is to have a Border as the first child in each of the cell of the grid.

Then you can place your elements within the border.

The sample code shows a uniform grid with a border for each cell
<UniformGrid Rows="2" Columns="2">
    <Border BorderBrush="Black" BorderThickness="1" Margin="0">
        <!--Place you element for 1st cell here-->
    </Border>
    <Border BorderBrush="Black" BorderThickness="1" Margin="0">
        <!--Place you element for 2nd cell here-->
    </Border>
    <Border BorderBrush="Black" BorderThickness="1" Margin="0">
        <!--Place you element for 3rd cell here-->
    </Border>
    <Border BorderBrush="Black" BorderThickness="1" Margin="0">
        <!--Place you element for 4th cell here-->
    </Border>
</UniformGrid>

Open in new window

0
avtelAuthor Commented:
Cheers - I reverted to a regular Grid, but I'm pretty sure your solution is on-point.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.