wpf - How to wrap Text in a ListViewItem? -
WPF ListBoxItem How to wrap this text? My item's container style looks like this:
style x: key = "GroupListBoxItemStyle" TargetType = "ListBoxItem" & gt; & Lt; Setter Property = "Override Default Style" value = "true" /> & Lt; Setter Property = "FocusVijual Style" Value = "{x: Faucet}" /> & Lt; Setter property = "font size" value = "11" /> & Lt; Setter property = "fontwhite" value = "bold" /> & Lt; Setter property = "width" value = "95" /> & Lt; Setter property = "horizontal alignment" value = "center" /> & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "ListBoxItem" & gt; & Lt; Sliding Bar: Sliding Bar RadioButton GroupName = "Permissions Radio Button Group" named = "{Binding Path = Hasset Selected, RelativeSource = {ResolveSource TemplatePaint}, BindsDrivatoosource = True, Mode = Doubles}" Text = "{Binding Converter = {Static Resources ResourcesStringTorosTransaction}} "Image source =" {binding converter = {static resume permit typoomage converter}} "margin =" 1 "/> & Lt; / ControlTemplate & gt; & Lt; /Setter.Value> & Lt; / Setter & gt; & Lt; / Style & gt;
Ensure that you set the following properties in ListBox / ListView:
Horizontal Content Alignment = "Stretch"
ScrollViewer.HorizontalScrollBarVisibility = "Disabled"
Comments
Post a Comment