diff --git a/components/Primitives/samples/StaggeredLayoutSample.xaml.cs b/components/Primitives/samples/StaggeredLayoutSample.xaml.cs index f0152c0f..c9580548 100644 --- a/components/Primitives/samples/StaggeredLayoutSample.xaml.cs +++ b/components/Primitives/samples/StaggeredLayoutSample.xaml.cs @@ -42,6 +42,8 @@ public class ColorItem { public int Index { get; internal set; } + public int Width { get; internal set; } + public int Height { get; internal set; } public Color Color { get; internal set; } diff --git a/components/Primitives/samples/StaggeredPanelSample.xaml b/components/Primitives/samples/StaggeredPanelSample.xaml index 40eba9cd..66add5b1 100644 --- a/components/Primitives/samples/StaggeredPanelSample.xaml +++ b/components/Primitives/samples/StaggeredPanelSample.xaml @@ -10,24 +10,23 @@ x:Name="ThisSamplePage"> - + - - + + Text="{x:Bind Index}" /> - diff --git a/components/Primitives/samples/StaggeredPanelSample.xaml.cs b/components/Primitives/samples/StaggeredPanelSample.xaml.cs index fdbcdd47..dab37fb0 100644 --- a/components/Primitives/samples/StaggeredPanelSample.xaml.cs +++ b/components/Primitives/samples/StaggeredPanelSample.xaml.cs @@ -11,7 +11,7 @@ namespace PrimitivesExperiment.Samples; [ToolkitSampleNumericOption("ColumnSpacing", initial: 5, min: 0, max: 50, step: 1, Title = "ColumnSpacing")] [ToolkitSampleNumericOption("RowSpacing", initial: 5, min: 0, max: 50, step: 1, Title = "RowSpacing")] -[ToolkitSample(id: nameof(StaggeredPanelSample), "WrapPanel", description: $"A sample for showing how to create and use a {nameof(StaggeredPanel)}.")] +[ToolkitSample(id: nameof(StaggeredPanelSample), "StaggeredPanel", description: $"A sample for showing how to create and use a {nameof(StaggeredPanel)}.")] public sealed partial class StaggeredPanelSample : Page { public ObservableCollection ColorsCollection = new();