Set list items to grow to the width of the containing ListView - WPF -


I would like to develop the contents of my ListView to get the full width available Place within ListView

Currently, I have the width of the item set in this way ( ListView

  width = "{binding real-world , ElementName = List View, Mode = Wrench) " 

item ListView However, the vertical scroll bar is not kept in mind. If the scroll bar is present, then it is dragged to the top of the right edge of the item.

Is it possible to fix this?

I solved the item presentation by referencing it directly. To do this, I have to define a template for the viewbox and give the name of the item presentation.

The template looks like this:

  & lt; ListView.Template & gt; & Lt; ControlTemplate TargetType = "{x: Type list view}" & gt; & Lt; Border X: name = "BD" borderbrush = "{binder buster brush}" bordertyxize = "{without border split}" background = "{templatebading background}" padding = "1" snaptvideo pixel = "true" & gt; & Lt; ScrollViewer Focus = "False" padding = "{TemplateBinding Padding}" & gt; & Lt; Item Presenter x: name = "MLVITMSPrint" snaptvideo pixel = "{template binding snaptwoVideo pixels}" /> & Lt; / ScrollViewer & gt; & Lt; / Border & gt; & Lt; - Erosion - & gt; & Lt; / ControlTemplate & gt; & Lt; /ListView.Template>  

and the width binding looks like this:

  width = "{binding real-world, elementName = MLVITMSPrintter, mode = wilayev}"  < / Pre> 

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -