feat: update timelineitem layout.
This commit is contained in:
@@ -15,57 +15,20 @@
|
||||
<u:TimelineFormatConverter x:Key="FormatConverter" />
|
||||
</UserControl.Resources>
|
||||
<StackPanel>
|
||||
<Grid Width="600">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="1*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Border
|
||||
Grid.Column="0"
|
||||
Width="300"
|
||||
Height="100"
|
||||
Background="Red" />
|
||||
<Ellipse
|
||||
Grid.Column="1"
|
||||
Width="8"
|
||||
Height="8"
|
||||
Fill="Red" />
|
||||
<Border
|
||||
Grid.Column="2"
|
||||
Width="500"
|
||||
Height="100"
|
||||
Background="Green" />
|
||||
</Grid>
|
||||
<ItemsControl Grid.IsSharedSizeScope="True" ItemsSource="{Binding Items}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" SharedSizeGroup="Left" />
|
||||
<ColumnDefinition Width="Auto" SharedSizeGroup="Line" />
|
||||
<ColumnDefinition Width="1*" SharedSizeGroup="Left" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ContentPresenter
|
||||
Grid.Column="0"
|
||||
HorizontalAlignment="Stretch"
|
||||
Background="Aqua"
|
||||
Content="121231233" />
|
||||
<Ellipse
|
||||
Grid.Column="1"
|
||||
Width="8"
|
||||
Height="8"
|
||||
Fill="Red" />
|
||||
<ContentPresenter
|
||||
Name="content"
|
||||
Grid.Column="2"
|
||||
HorizontalAlignment="Stretch"
|
||||
Background="Yellow"
|
||||
Content="{Binding}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
<u:Timeline>
|
||||
<u:TimelineItem
|
||||
Content="Start"
|
||||
Description="Get Started!"
|
||||
Time="2022-01-01" />
|
||||
<u:TimelineItem
|
||||
Content="In between"
|
||||
Description="In Process!"
|
||||
Time="2022-01-02" />
|
||||
<u:TimelineItem
|
||||
Content="Finished"
|
||||
Description="Done!"
|
||||
Time="2022-01-03" />
|
||||
</u:Timeline>
|
||||
<u:Timeline HorizontalAlignment="Left" ItemsSource="{Binding Items}">
|
||||
<u:Timeline.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModels:TimelineItemViewModel">
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<AvaloniaUseCompiledBindingsByDefault>false</AvaloniaUseCompiledBindingsByDefault>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user