optimized UI
This commit is contained in:
@@ -61,12 +61,21 @@
|
|||||||
<Setter Property="FontWeight" Value="Regular" />
|
<Setter Property="FontWeight" Value="Regular" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="lvItemSelected" TargetType="{x:Type ListViewItem}">
|
<Style x:Key="lvItemSelected" TargetType="{x:Type ListViewItem}">
|
||||||
<Setter Property="Margin" Value="1" />
|
<Setter Property="Margin" Value="2" />
|
||||||
<Style.Triggers>
|
<Setter Property="Template">
|
||||||
<Trigger Property="IsSelected" Value="true">
|
<Setter.Value>
|
||||||
<Setter Property="Foreground" Value="{DynamicResource PrimaryHueLightBrush}" />
|
<ControlTemplate TargetType="ListViewItem">
|
||||||
</Trigger>
|
<materialDesign:Card Name="_Card" SnapsToDevicePixels="true">
|
||||||
</Style.Triggers>
|
<ContentPresenter />
|
||||||
|
</materialDesign:Card>
|
||||||
|
<ControlTemplate.Triggers>
|
||||||
|
<Trigger Property="IsSelected" Value="true">
|
||||||
|
<Setter TargetName="_Card" Property="Background" Value="{DynamicResource PrimaryHueLightBrush}" />
|
||||||
|
</Trigger>
|
||||||
|
</ControlTemplate.Triggers>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
<Style
|
<Style
|
||||||
x:Key="ListItemCheckBox"
|
x:Key="ListItemCheckBox"
|
||||||
|
|||||||
@@ -137,7 +137,6 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
<Separator />
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
|
|||||||
@@ -97,10 +97,7 @@
|
|||||||
</ListView.ItemsPanel>
|
</ListView.ItemsPanel>
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<materialDesign:Card
|
<Border Width="280" Padding="0">
|
||||||
Width="280"
|
|
||||||
Padding="0"
|
|
||||||
materialDesign:UniformCornerRadius="8">
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border
|
<Border
|
||||||
Width="5"
|
Width="5"
|
||||||
@@ -127,7 +124,7 @@
|
|||||||
|
|
||||||
<StackPanel
|
<StackPanel
|
||||||
Grid.Row="2"
|
Grid.Row="2"
|
||||||
Margin="8,0,8,0"
|
Margin="4,0"
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<CheckBox
|
<CheckBox
|
||||||
@@ -188,7 +185,7 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</materialDesign:Card>
|
</Border>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
</ListView>
|
</ListView>
|
||||||
|
|||||||
@@ -106,10 +106,7 @@
|
|||||||
</ListView.ItemsPanel>
|
</ListView.ItemsPanel>
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<materialDesign:Card
|
<Border Width="160" Padding="0">
|
||||||
Width="160"
|
|
||||||
Padding="0"
|
|
||||||
materialDesign:UniformCornerRadius="8">
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Grid Grid.Column="0" Margin="4">
|
<Grid Grid.Column="0" Margin="4">
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
@@ -129,7 +126,7 @@
|
|||||||
Text="{Binding now}" />
|
Text="{Binding now}" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</materialDesign:Card>
|
</Border>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
</ListView>
|
</ListView>
|
||||||
@@ -153,10 +150,7 @@
|
|||||||
</ListView.ItemsPanel>
|
</ListView.ItemsPanel>
|
||||||
<ListView.ItemTemplate>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<materialDesign:Card
|
<Border Width="160" Padding="0">
|
||||||
Width="160"
|
|
||||||
Padding="0"
|
|
||||||
materialDesign:UniformCornerRadius="8">
|
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Border
|
<Border
|
||||||
Width="5"
|
Width="5"
|
||||||
@@ -184,7 +178,7 @@
|
|||||||
</DockPanel>
|
</DockPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</materialDesign:Card>
|
</Border>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
</ListView>
|
</ListView>
|
||||||
|
|||||||
Reference in New Issue
Block a user