worked on styling of MultiFormatDataView

master
Jonas Arnold 3 years ago
parent 6316e66ea5
commit 268b23bef4
  1. 17
      MultiTerm.Wpf.CustomControl/MultiFormatDataView/MultiFormatDataView.xaml

@ -52,7 +52,7 @@
</StackPanel.Triggers>
<!-- Character -->
<Border BorderThickness="0">
<Label Content="{Binding DisplayStringUtf16}" MinWidth="1" Padding="0" Margin="2 0" VerticalAlignment="Center">
<Label Content="{Binding DisplayStringUtf16}" Padding="0" Margin="2 0" VerticalAlignment="Center">
<Label.Style>
<Style TargetType="Label">
<Setter Property="HorizontalAlignment" Value="Left"/>
@ -167,16 +167,29 @@
ItemTemplate="{StaticResource dataContainerTemplate}"
SelectionMode="Extended">
<!-- TEMP possible starting point for multiple boxes per item -->
<!--<ListView.ItemTemplate>
<DataTemplate>
<UniformGrid Rows="1" IsItemsHost="True">
<UniformGrid.Style>
<StaticResource ResourceKey="dataContainerTemplate"/>
</UniformGrid.Style>
</UniformGrid>
</DataTemplate>
</ListView.ItemTemplate>-->
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
</ListView.ItemContainerStyle>
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<wpftk:VirtualizingWrapPanel Orientation="Vertical" SpacingMode="Uniform" StretchItems="False"/>
<wpftk:VirtualizingWrapPanel Orientation="Vertical" SpacingMode="Uniform" StretchItems="True"/>
</ItemsPanelTemplate>
</ListView.ItemsPanel>

Loading…
Cancel
Save