groupstyle

WPF: Groupstyle not working correctly because of Style and/or modified ListBox

淺唱寂寞╮ 提交于 2020-01-02 07:58:10
问题 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 bogus so I created a UserControl fro this effect. The problem persists. The purpose of the UserControl is to have a expending effect on the selected item where normally it could show some info and then more info when expanded. UserControl:

Setting the GroupStyle.Panel of a ListView on Windows Phone

[亡魂溺海] 提交于 2019-12-19 07:50:12
问题 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 how my XAML looks: <ListView x:Name="itemListView" Padding="10" SelectionMode="None" IsSwipeEnabled="False" IsItemClickEnabled="True" ItemTemplate="{StaticResource listItemTemplate}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.Panel>

Setting the GroupStyle.Panel of a ListView on Windows Phone

元气小坏坏 提交于 2019-12-19 07:49:36
问题 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 how my XAML looks: <ListView x:Name="itemListView" Padding="10" SelectionMode="None" IsSwipeEnabled="False" IsItemClickEnabled="True" ItemTemplate="{StaticResource listItemTemplate}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.Panel>

Group panel of WPF ListBox

浪尽此生 提交于 2019-12-10 16:26:10
问题 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 to the bottom of the list to see the control. If I were using a listbox without the groups, this task would be easy by modifying the ListBox template. However, with the items grouped, the ListBox template seems to only apply on a per group basis. I

Creating custom GroupDescription based on DateTime

孤人 提交于 2019-12-10 11:29:58
问题 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 GroupDescription. Problem is I have no idea how the class actually works and how I would design such a class. I'm hoping to be able to inherit PropertyGroupDescription (instead of the basic abstract class) because this will also be based on a property but

Creating custom GroupDescription based on DateTime

强颜欢笑 提交于 2019-12-06 11:17:28
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 GroupDescription. Problem is I have no idea how the class actually works and how I would design such a class. I'm hoping to be able to inherit PropertyGroupDescription (instead of the basic abstract class) because this will also be based on a property but here I'm grouping based on a range of values instead of a single value == 1 group. Any guide or even a

WPF: Groupstyle not working correctly because of Style and/or modified ListBox

时间秒杀一切 提交于 2019-12-06 03:43:02
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 bogus so I created a UserControl fro this effect. The problem persists. The purpose of the UserControl is to have a expending effect on the selected item where normally it could show some info and then more info when expanded. UserControl: <UserControl x:Class="MyProject.CustomUC.ExpandingList" xmlns="http://schemas.microsoft.com/winfx/2006/xaml

Setting the GroupStyle.Panel of a ListView on Windows Phone

心不动则不痛 提交于 2019-12-01 04:58:10
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 how my XAML looks: <ListView x:Name="itemListView" Padding="10" SelectionMode="None" IsSwipeEnabled="False" IsItemClickEnabled="True" ItemTemplate="{StaticResource listItemTemplate}"> <ListView.GroupStyle> <GroupStyle> <GroupStyle.Panel> <ItemsPanelTemplate> <ItemsWrapGrid ItemWidth="144" Orientation="Horizontal" /> </ItemsPanelTemplate> <

Sort and Group ListItems in a WPF ListBox- GroupItem collapse and expand

喜夏-厌秋 提交于 2019-11-28 06:57:41
问题 I sort and group listbox items, I use CollectioView on this purpose. From view model class I bind collection on ListBox ItemSource property, here is it. public BindableCollection<UserInfo> Friends { get { return _friends; } set { _friends = value; NotifyOfPropertyChange(() => Friends); } } ListBox items is type of UserInfo. When I initialize ListBox I sort and group items with this method. private ICollectionView _currentView; //... private void SortContactList() { _currentView =