Questions tagged [uniformgrid]
79 questions
32
votes
3 answers
Understanding Uniform Grid control
I was just trying uniform grid, how it works.
Code :
20
votes
1 answer
WPF: Is it possible to do a row/column span in UniformGrid?
Is it possible to do a row/column span in UniformGrid?
Using Grid attached properties
Grid.RowSpan
and
Grid.ColumnSpan
doesn't work on UniformGrid.

matori82
- 3,669
- 9
- 42
- 64
18
votes
3 answers
how to make uniformgrid vertically
I'm using UniformGrid and it's making the items display horizontally. Is there a way to make it display vertically?
…

Calvin
- 631
- 5
- 17
- 38
8
votes
2 answers
How to change orientation of UniformGrid control?
By default, UniformGrid displays it's children as follows:
1 2 3
4 5 6
7 8 9
I want to be as follows:
1 4 7
2 5 8
3 6 9
Any ideas?

Mik Kardash
- 630
- 8
- 17
8
votes
1 answer
Listbox using UniformGrid - Items not centered
I have a listbox using UniformGrid for the ItemsPanelTemplate. It is a list of photos. I want the photos to be centered horizontally in the center of each cell of the grid, but it seems that no matter what I do, the images are aligned to the left…

JoeMjr2
- 3,804
- 4
- 34
- 62
6
votes
1 answer
WPF Scroll a Uniformgrid
I need to display all the files located in a specific path. I have created a user control which contains textblocks for the details of the file (name, size, extension, etc), this control will be the child of the uniform grid.
The problem is, if my…

BlackCath
- 816
- 13
- 23
5
votes
1 answer
WPF UniformGrid dynamic row height
I wrote a little application which display some images. For this I used a UniformGrid. My xaml-Code:

MyNewName
- 1,035
- 2
- 18
- 34
4
votes
2 answers
Create a square border, with image inside and width and height dependent to uniform grid colum
I think this is a little tricky problem.
I have a ListBox that must present some images and each image must be put inside a rectangle or a square border. This is simple, I know. The fact is that this listbox must show always 3 elements per row,…

Fr.Usai
- 384
- 2
- 17
4
votes
1 answer
UniformGrid and ItemsSource
I have a UniformGrid. Inside, I would like to put a Grid which contains 2 children - and Image and a Canvas. I already have a List member which contains a Grid with that definition.
I'm updating the source of the Image from null to an actual…

Idanis
- 1,918
- 6
- 38
- 69
4
votes
0 answers
Set a UniformGrid fixed column width
I was wondering if it's possible to set a fixed cell size (column width, row height), instead setting a fixed number of columns and/or rows, while still having all cells the same size?

matteeyah
- 855
- 11
- 24
3
votes
1 answer
How can we set the Wrap-point for the WrapPanel?
I have an ItemsControl and I want the data to be entered into two columns. When the User resizes to a width lesser than the second column, the items of the second column must wrap into the first column. Something like a UniformGrid but with…

Gordon Geek-O
- 53
- 5
3
votes
0 answers
dynamic wpf uniformgrid column count
I am trying to build a dynamic uniformgrid in wpf which will change the number of columns based on the width of the control. So essentially if the application is full screen then show 7 columns, if the application is resized to be a small width then…

5tar-Kaster
- 910
- 2
- 12
- 30
3
votes
3 answers
Adding checkBoxes to UniformGrid
I am trying to dynamically add checkboxes to an uniformgrid in wpf.
But it looks like the grid doesn't allocate them enough space and so they all kinda lay over each other.
This is how I add them in code behind:
foreach (string folder in…

Tim Kathete Stadler
- 1,067
- 4
- 26
- 52
3
votes
2 answers
Uniform Grid control with multiple Items C# WPF
I need a window like below ;
I tried to achieve this, but couldn't get 100% outcome. Where did I do wrong?

iJay
- 4,205
- 5
- 35
- 63
2
votes
1 answer
Elegant way of enabling specific Columns in a dynamic WPF UniformGrid to be resizable
like the title says: Is there an elegant way of enabling specific columns in a dynamic UniformGrid to be resizable?
The details:
I have a ItemsControl and set the ItemsPanelTemplate to be of type UniformGrid. The ItemTemplate is set to a Custom…

ovm
- 2,452
- 3
- 28
- 51