You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.9 KiB
46 lines
1.9 KiB
1 year ago
|
<Styles xmlns="https://github.com/avaloniaui"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:controls="using:StabilityMatrix.Avalonia.Controls"
|
||
|
xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData"
|
||
|
xmlns:system="clr-namespace:System;assembly=System.Runtime"
|
||
|
xmlns:ui="using:FluentAvalonia.UI.Controls"
|
||
|
xmlns:vmInference="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Inference"
|
||
|
xmlns:models="clr-namespace:StabilityMatrix.Avalonia.Models"
|
||
|
xmlns:local="clr-namespace:StabilityMatrix.Avalonia"
|
||
1 year ago
|
x:DataType="vmInference:StackCardViewModel">
|
||
1 year ago
|
|
||
|
<Design.PreviewWith>
|
||
|
<Grid Width="600" Height="800">
|
||
1 year ago
|
<controls:StackCard
|
||
|
DataContext="{x:Static mocks:DesignData.StackCardViewModel}"/>
|
||
1 year ago
|
</Grid>
|
||
|
</Design.PreviewWith>
|
||
|
|
||
1 year ago
|
<Style Selector="controls|StackCard">
|
||
1 year ago
|
<!-- Set Defaults -->
|
||
|
<Setter Property="Template">
|
||
|
<ControlTemplate>
|
||
12 months ago
|
<ScrollViewer Padding="4,0,4,0">
|
||
1 year ago
|
<ItemsControl
|
||
|
VerticalAlignment="Top"
|
||
|
ItemsSource="{Binding Cards}">
|
||
1 year ago
|
|
||
1 year ago
|
<ItemsControl.DataTemplates>
|
||
|
<local:ViewLocator/>
|
||
|
</ItemsControl.DataTemplates>
|
||
1 year ago
|
|
||
1 year ago
|
<ItemsControl.ItemsPanel>
|
||
|
<ItemsPanelTemplate>
|
||
|
<StackPanel
|
||
|
VerticalAlignment="Top"
|
||
|
Spacing="{TemplateBinding Spacing}"/>
|
||
|
</ItemsPanelTemplate>
|
||
|
</ItemsControl.ItemsPanel>
|
||
1 year ago
|
|
||
1 year ago
|
</ItemsControl>
|
||
|
</ScrollViewer>
|
||
1 year ago
|
</ControlTemplate>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</Styles>
|