Questions tagged [groupstyle]
50 questions
8
votes
1 answer
What is the difference between the HeaderTemplate and ContainerStyle on the WPF DataGrid's GroupStyle?
It would appear that the ContainerStyle is used in preference to the HeaderTemplate when both are specified, as below;
…

Julius
- 735
- 1
- 9
- 25
7
votes
1 answer
Setting the GroupStyle.Panel of a ListView on Windows Phone
I'm trying to create a ListView with grouping where the elements in each group are shown horizontally (as a scrollable content). No matter what I tried with the GroupStyle.Panel of the ListView it doesn't seem to have any effect on the list.
Here is…

Marius Bancila
- 16,053
- 9
- 49
- 91
6
votes
1 answer
Group panel of WPF ListBox
I have a listbox that is grouping the items with a GroupStyle. I would like add a control at the bottom of the stackpanel that holds all of the groups. This additional control needs to be part of the scrolling content so that the user would scroll…

rulestein
- 409
- 3
- 12
5
votes
1 answer
WPF: Groupstyle not working correctly because of Style and/or modified ListBox
I am trying to use a GroupStyle but instead of showing the groupname as a header over the items in the list it only shows the header and not the items.
It works fine until I applied a special style to the list. I then decided this style was pretty…

Ingó Vals
- 4,788
- 14
- 65
- 113
4
votes
1 answer
Creating custom GroupDescription based on DateTime
I'm grouping some data and PropertyGroupDescription works fine most of the time. However if that property is a DateTime and i wan't to group several dates together as one group (like 30 days in each group or something) I would need a new…

Ingó Vals
- 4,788
- 14
- 65
- 113
4
votes
1 answer
DataGrid binding not working in GroupItem style declaration
I'm having some trouble getting a binding to work that is defined in the resouces section of my user control. The same binding seems to work later on in the xaml when I bind it to a column of the datagrid. It just won't display data when in the…

Redshirt
- 664
- 7
- 25
4
votes
2 answers
GroupStyleSelector for a ListView
I am trying to make a custom groupstyle sector for my ListView as per other questions I've seen here on stack overflow.
public class TestGroupStyleSelector : GroupStyleSelector
{
protected override GroupStyle SelectGroupStyleCore(object item,…

nextint
- 81
- 2
- 6
4
votes
1 answer
WPF multipage Listview printing when using GroupStyle
I have coded up a ListView report using xaml, mvvm and it works just fine.
The xaml code deploys ListView.GroupStyle and the resulting report has a group header, items listing and group totals and counts.
It looks like this:
I would like to print…

Allan
- 449
- 5
- 11
3
votes
1 answer
Binding in GroupStyle header not updated when collection changes
I have an ItemsControl which is bound to a CollectionViewSource bound to a property on the View Model.
The ItemsControl has a GroupStyle set which looks like this:
Where…

Sellorio
- 1,806
- 1
- 16
- 32
2
votes
1 answer
How to access listbox item's datacontext from GroupStyle.HeaderTemplate?
I have a ListBox...where the ItemSource is a CollectionViewSource
rest everything same as in this link.
What I need is to access one property from my ListBox item's (or GroupItem ?) DataContext.
How can I access it ?

Relativity
- 6,690
- 22
- 78
- 128
2
votes
2 answers
Rewrite DataGrid-GroupStyle XAML into C# code
Can someone please rewrite this XAML into C# code ?
…

Elisabeth
- 20,496
- 52
- 200
- 321
2
votes
1 answer
How to define ResourceDictionary by adding Style in Xamarin xaml {GroupStyle}
I'm trying to make something like set atribute to all labels inside a grid
I Know how to make it, just doing this: