or
<telerik:RadGridView x:Name="gridViewChars" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" CanUserSelect="True" CanUserSortColumns="False" DragElementAction="None" IsFilteringAllowed="False" IsReadOnly="False" Margin="0,10,0,0" RowIndicatorVisibility="Collapsed" ShowGroupPanel="False" ColumnWidth="*" ItemsSource="{Binding CurrentChapter.CurrentChapterOperation.CharacteristicList, Mode=OneWay}" EditTriggers="None" ValidatesOnDataErrors="None"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn IsReadOnly="True" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_DESCRIPTION, Dict=Resources, Assembly=MQM_Win32Resources}" CellTemplate="{StaticResource DescriptionTemplate}" MaxWidth="400" /> <telerik:GridViewDataColumn Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_VALUE, Dict=Resources, Assembly=MQM_Win32Resources}" CellTemplateSelector="{StaticResource CharTemplateSelector}" MaxWidth="400" /> <telerik:GridViewDataColumn IsReadOnly="True" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_UNIT, Dict=Resources, Assembly=MQM_Win32Resources}" DataMemberBinding="{Binding Unit, Mode=OneWay}" MaxWidth="80" /> <telerik:GridViewDataColumn IsReadOnly="True" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_REFVAL, Dict=Resources, Assembly=MQM_Win32Resources}" IsVisible="{Binding Path=ShowReferenceData}" CellTemplate="{StaticResource RefValTemplate}" MaxWidth="40" /> <telerik:GridViewDataColumn CellTemplate="{StaticResource TypeAsLabelTemplate}" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_TYPE, Dict=Resources, Assembly=MQM_Win32Resources}" MinWidth="100" MaxWidth="120"/> <!--<telerik:GridViewDataColumn IsReadOnly="True" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_HISTORY, Dict=Resources, Assembly=MQM_Win32Resources}" CellTemplate="{StaticResource HistoryTemplate}"/>--> <telerik:GridViewDataColumn CellTemplate="{StaticResource CannotAnswerButtonTemplate}" IsVisible="{Binding Path=ShowNAButton}" MaxWidth="60" /> <telerik:GridViewDataColumn CellTemplate="{StaticResource AddPhotoButtonTemplate}" MaxWidth="60"/> <telerik:GridViewDataColumn CellTemplate="{StaticResource ShowDocumentationButtonTemplate}" MaxWidth="60"/> </telerik:RadGridView.Columns> </telerik:RadGridView><DataTemplate> <AdornerDecorator> <telerik:RadComboBox DisplayMemberPath="Name" IsEditable="False" IsEnabled="{Binding Path=IsEnabled, Mode=OneWay}" ItemsSource="{Binding SelectionList}" Margin="0,0,40,0" OpenDropDownOnFocus="True" SourceUpdated="OnSourceUpdated" ToolTip="{StaticResource TooltipValue}" ToolTipService.HorizontalOffset="15" ToolTipService.VerticalOffset="15" ToolTipService.Placement="Right"> <telerik:RadComboBox.SelectedItem> <Binding Path="Selection" Mode="TwoWay" NotifyOnSourceUpdated="True" UpdateSourceTrigger="PropertyChanged" ValidatesOnDataErrors="True" /> </telerik:RadComboBox.SelectedItem> </telerik:RadComboBox> </AdornerDecorator> </DataTemplate><Style TargetType="{x:Type telerik:RadGridView}"> <Setter Property="telerik:StyleManager.Theme" Value="Windows8Touch" /> <Setter Property="IsLocalizationLanguageRespected" Value="False" /> <Setter Property="telerik:TouchManager.IsTouchHitTestVisible" Value="False" /></Style>
<UserControl.Resources> <conv:ByteArrayToImageBrush x:Key="byteArrayToImageBrushConverter" /> <conv:BooleanToString x:Key="booleanToStringConverter" /> <conv:StringToVisibility x:Key="stringToVisibilityConverter" /> <Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem"> <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="True" /> </Style> <Path x:Key="horizontCarouselPath" Stretch="Fill" Opacity="1" Data="M 9,200 C9,200 450,200 450,200 " Stroke="{StaticResource PrimaryLayoutBorderBrush}" StrokeThickness="1" /> </UserControl.Resources><Grid Grid.Row="2" Grid.ColumnSpan="2" Grid.Column="0" Margin="0,10,0,0"> <!--Small Icon View --> <telerik:RadListBox x:Name="DocumentPageRadListBoxSmall" ItemsSource="{Binding SelectedPackDocumentPages}" ItemContainerStyle="{StaticResource DraggableListBoxItem}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" SelectionMode="Extended" Visibility="{Binding PageLayoutView, Converter={StaticResource stringToVisibilityConverter}, ConverterParameter=SmallIconView}" BorderThickness="1" BorderBrush="{StaticResource PrimaryLayoutBorderBrush}"> <telerik:RadListBox.ItemTemplate> <DataTemplate> <Border Background="{StaticResource DropzoneBackgroundBrush}" Margin="0,4,0,0" BorderBrush="{StaticResource PrimaryLayoutBorderBrush}" BorderThickness="1" Height="155" Width="85"> <StackPanel Orientation="Vertical"> <Image Source="{Binding Converter={StaticResource byteArrayToImageBrushConverter}, Path=PageBytes}" Height="130" Width="80" HorizontalAlignment="Center" VerticalAlignment="Center" /> <Label Content="{Binding PageLabel}" Style="{StaticResource Label}" HorizontalAlignment="Center" Margin="0,0,0,0" /> </StackPanel> </Border> </DataTemplate> </telerik:RadListBox.ItemTemplate> <telerik:RadListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </telerik:RadListBox.ItemsPanel> <telerik:RadListBox.DragDropBehavior> <behaviors:DragDropCopyBehavior /> </telerik:RadListBox.DragDropBehavior> </telerik:RadListBox> <!--Large Icon View --> <telerik:RadListBox x:Name="DocumentPageRadListBoxLarge" ItemsSource="{Binding SelectedPackDocumentPages}" ItemContainerStyle="{StaticResource DraggableListBoxItem}" ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionMode="Extended" Visibility="{Binding PageLayoutView, Converter={StaticResource stringToVisibilityConverter}, ConverterParameter=LargeIconView}" BorderThickness="1" BorderBrush="{StaticResource PrimaryLayoutBorderBrush}"> <telerik:RadListBox.ItemTemplate> <DataTemplate> <Border Background="{StaticResource DropzoneBackgroundBrush}" Margin="0,4,0,0" BorderBrush="{StaticResource PrimaryLayoutBorderBrush}" BorderThickness="1" Height="Auto" Width="Auto"> <StackPanel Orientation="Vertical"> <Image Source="{Binding Converter={StaticResource byteArrayToImageBrushConverter}, Path=PageBytes}" Height="300" Width="170" HorizontalAlignment="Center" VerticalAlignment="Center" /> <Label Content="{Binding PageLabel}" Style="{StaticResource Label}" HorizontalAlignment="Center" Margin="0,0,0,0" /> </StackPanel> </Border> </DataTemplate> </telerik:RadListBox.ItemTemplate> <telerik:RadListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </telerik:RadListBox.ItemsPanel> <telerik:RadListBox.DragDropBehavior> <behaviors:DragDropCopyBehavior /> </telerik:RadListBox.DragDropBehavior> </telerik:RadListBox> <!--Carousel View --> <telerik:RadCarousel x:Name="DocumentPageRadCarousel" HorizontalContentAlignment="Center" VerticalContentAlignment="Top" ItemsSource="{Binding SelectedPackDocumentPages}" AutoGenerateDataPresenters="False" Background="Transparent" Visibility="{Binding PageLayoutView, Converter={StaticResource stringToVisibilityConverter}, ConverterParameter=CarouselView}" Panel.ZIndex="4" FlowDirection="LeftToRight" HorizontalScrollBarVisibility="Auto" BorderThickness="1" BorderBrush="{StaticResource PrimaryLayoutBorderBrush}"> <telerik:RadCarousel.Resources> <DataTemplate DataType="{x:Type workflow:DocumentPackPage}"> <Image Source="{Binding Converter={StaticResource byteArrayToImageBrushConverter}, Path=PageBytes}" HorizontalAlignment="Center" VerticalAlignment="Center" Height="400" Width="300" /> </DataTemplate> </telerik:RadCarousel.Resources> <telerik:RadCarousel.ItemsPanel> <ItemsPanelTemplate> <telerik:RadCarouselPanel Path="{StaticResource horizontCarouselPath}" /> </ItemsPanelTemplate> </telerik:RadCarousel.ItemsPanel> </telerik:RadCarousel> </Grid>