This question is locked. New answers and comments are not allowed.
Hello,
I would like to display the elements in a WrapPanel using particular styles. I am using an ObservableCollection<string> and binding to an ItemsControl via the ItemsSource attribute.
The columns in the WrapPanel come out touching each other. I would like to have a margin around each item (string) in the WrapPanel. I would also like to know whether it's possible to have some of the strings colored differently than others based on an attribute of the string, e.g. if it starts with A.
Thanks in advance!
I would like to display the elements in a WrapPanel using particular styles. I am using an ObservableCollection<string> and binding to an ItemsControl via the ItemsSource attribute.
<
ScrollViewer
HorizontalScrollBarVisibility
=
"Auto"
VerticalScrollBarVisibility
=
"Disabled"
>
<
ItemsControl
Height
=
"Auto"
Width
=
"Auto"
Name
=
"itemsControl1"
ItemsSource
=
"{Binding}"
>
<
ItemsControl.ItemsPanel
>
<
ItemsPanelTemplate
>
<
telerikPrimitives:RadWrapPanel
Orientation
=
"Vertical"
/>
</
ItemsPanelTemplate
>
</
ItemsControl.ItemsPanel
>
</
ItemsControl
>
</
ScrollViewer
>
Thanks in advance!