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> </StackPanel.Triggers>
<!-- Character --> <!-- Character -->
<Border BorderThickness="0"> <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> <Label.Style>
<Style TargetType="Label"> <Style TargetType="Label">
<Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property="HorizontalAlignment" Value="Left"/>
@ -167,16 +167,29 @@
ItemTemplate="{StaticResource dataContainerTemplate}" ItemTemplate="{StaticResource dataContainerTemplate}"
SelectionMode="Extended"> 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> <ListView.ItemContainerStyle>
<Style TargetType="ListViewItem"> <Style TargetType="ListViewItem">
<Setter Property="HorizontalContentAlignment" Value="Stretch" /> <Setter Property="HorizontalContentAlignment" Value="Stretch" />
<Setter Property="VerticalContentAlignment" Value="Stretch" /> <Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="Margin" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style> </Style>
</ListView.ItemContainerStyle> </ListView.ItemContainerStyle>
<ListView.ItemsPanel> <ListView.ItemsPanel>
<ItemsPanelTemplate> <ItemsPanelTemplate>
<wpftk:VirtualizingWrapPanel Orientation="Vertical" SpacingMode="Uniform" StretchItems="False"/> <wpftk:VirtualizingWrapPanel Orientation="Vertical" SpacingMode="Uniform" StretchItems="True"/>
</ItemsPanelTemplate> </ItemsPanelTemplate>
</ListView.ItemsPanel> </ListView.ItemsPanel>

Loading…
Cancel
Save