or
<
DataTemplate
x:Key
=
"dtOutlookBarItem"
DataType
=
"LocalViewModel:LHSBrowseItem"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
<
TextBox
Name
=
"tboxTelerik"
Visibility
=
"{Binding Path=AllowSearch, Converter={StaticResource converterBoolVisibility}}"
>
</
TextBox
>
<
LocalControls:ucSpinnerSwirl
x:Name
=
"lhsProgressBar"
Grid.Row
=
"1"
HorizontalAlignment
=
"Center"
Margin
=
"5"
Visibility
=
"{Binding Path=CollectionLoaded, Converter={StaticResource converterBoolVisibilityRvs}}"
/>
<
ListView
Name
=
"lstViewTelerik"
Grid.Row
=
"1"
ItemsSource
=
"{Binding Path=Items}"
IsSynchronizedWithCurrentItem
=
"True"
Visibility
=
"{Binding Path=CollectionLoaded, Converter={StaticResource converterBoolVisibility}}"
SelectionChanged
=
"ListView_SelectionChanged"
>
<
ListView.ItemsPanel
>
<
ItemsPanelTemplate
>
<
VirtualizingStackPanel
></
VirtualizingStackPanel
>
</
ItemsPanelTemplate
>
</
ListView.ItemsPanel
>
<
ListView.ItemTemplate
>
<
DataTemplate
DataType
=
"LocalViewModel:LHSItem"
>
<
TextBlock
Text
=
"{Binding Path=Label}"
/>
</
DataTemplate
>
</
ListView.ItemTemplate
>
</
ListView
>
</
Grid
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"dtOutlookBarDropdown"
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"30"
/>
<
ColumnDefinition
Width
=
"auto"
/>
</
Grid.ColumnDefinitions
>
<
Image
Grid.Column
=
"0"
Width
=
"20"
HorizontalAlignment
=
"left"
Source
=
"{Binding SmallIcon}"
/>
<
Label
Grid.Column
=
"1"
HorizontalAlignment
=
"Center"
Content
=
"{Binding Header}"
/>
</
Grid
>
</
DataTemplate
>
<
Style
TargetType
=
"{x:Type TelerikNavigation:RadOutlookBar}"
>
<
Setter
Property
=
"Width"
Value
=
"220"
/>
<
Setter
Property
=
"IsVerticalResizerVisible"
Value
=
"False"
/>
<
Setter
Property
=
"ItemDropDownContentTemplate"
Value
=
"{StaticResource dtOutlookBarDropdown}"
/>
</
Style
>
<
Style
TargetType
=
"{x:Type TelerikNavigation:RadOutlookBarItem}"
>
<
Setter
Property
=
"Title"
Value
=
"{Binding Header}"
/>
<
Setter
Property
=
"Header"
Value
=
"{Binding Header}"
/>
<
Setter
Property
=
"FontWeight"
Value
=
"Bold"
/>
<
Setter
Property
=
"Icon"
Value
=
"{Binding LargeIcon}"
/>
<
Setter
Property
=
"SmallIcon"
Value
=
"{Binding SmallIcon}"
/>
<
Setter
Property
=
"ToolTip"
Value
=
"{Binding Header}"
/>
<
Setter
Property
=
"ContentTemplate"
Value
=
"{StaticResource dtOutlookBarItem}"
/>
</
Style
>
var itemsSource = UebersichtDataGrd.ItemsSource as IEnumerable;
foreach (Paketdata item in itemsSource)
{
if (!string.IsNullOrEmpty(item.Modul))
{
// SET Backgroundcolor of GridView row
}
}