Skip to main content

All Questions

Tagged with
0 votes
1 answer
1k views

WPF binding to Visibility of an Itemtemplate of a Listview not working [duplicate]

I am using WPF Prism.Mvvm. I have a navigation bar on the side containing a Listview bound to an Itemssource. Those Items contain an image and the content. Now my goal is to collapse the content of ...
Anna Z.'s user avatar
  • 55
1 vote
1 answer
2k views

ListView item visibility based on boolean

I am trying to filter ListView Items based on input text, and because the selection is removed, I am trying to set visibilty to invisible based on a boolean(I hope this wont remove the selection of ...
someone1's user avatar
1 vote
2 answers
2k views

Is there a way to hide a ListView in xaml?

I have following problem. My ListView has a gray background and when the ListView is empty, you can see a small gray line on the window. This looks ugly and so I want to hide the whole ListView when ...
Florin M's user avatar
  • 445
0 votes
2 answers
441 views

ListView inside ListView + control.Visibility

I'm creating a questionnaire app. My way of doing this is to create a ListView which contains question text and another ListView which contains list af answers(as RadioButtons). The problem came when ...
MajkeloDev's user avatar
  • 1,661
0 votes
1 answer
590 views

WPF ListView item's Visible/Collaped not changing according to its Visibility

Thanks for your time reading my thread. I am using VS2012, WFP, and .net4.5 on Windows 7 64bit I have a ListView control with xaml in following: <ListView Name="lvViewerControl" ...
Ono's user avatar
  • 1,357
0 votes
1 answer
2k views

WPF - collapse item in ListView

Thanks for your time reading my thread. I am using VS2012, WFP, and .net4.5 on Windows 7 64bit I have a ListView control with xaml in following: <ListView Name="lvViewerControl" ...
Ono's user avatar
  • 1,357
2 votes
1 answer
409 views

Hiding elements in a GridView (used as a ListView's view) completely?

I have a ListView and a button. Now, when I press the button I want to display only the elements that meet the required criteria. I'm using a converter on the visibility of the items, but if I return ...
NLuburić's user avatar
  • 922
0 votes
3 answers
99 views

ListView Visible if multiple rows

How do I bind the ListViews visibility to a calculation? I want the Listviews to be visible ONLY if there are more than one record in the DataContexts Collection (IEnumerable)
Martin's user avatar
  • 1,571
1 vote
4 answers
1k views

WPF ListView control is populated but invisible

I have a ListView, populated with ItemsSource pointing to a list of login histories, so that I can choose from previous successful logins instead of having to type user, host, etc. over. This seemed ...
Ken's user avatar
  • 11
2 votes
1 answer
991 views

ListView, ListViewItems and Virtualization

I have a problem with the UI virtualization of an ListView with hundreds of elements which items can expose an Visibility property. Unfortunately the virtualization not recognizes the visibility ...
Patrick's user avatar
  • 33
4 votes
4 answers
5k views

WPF - Do not show Context menu when ListView is empty

I have a ContextMenu bind to ListView, but I don't want to be the menu shown when the ListView is empty. I tried direct binding to element, tried binding using FindAncestor, but none of these works ...
George Hx's user avatar
19 votes
7 answers
40k views

C#/WPF: Make a GridViewColumn Visible=false?

Is there an option to hide a GridViewColumn somehow like this: <ListView.View> <GridView> <GridViewColumn Header="Test" IsVisible="{Binding Path=...
Joseph jun. Melettukunnel's user avatar