diff --git a/CommunityToolkit.Labs.Shared/Pages/Shell.xaml b/CommunityToolkit.Labs.Shared/Pages/Shell.xaml index f530cdd91..68e4d9b62 100644 --- a/CommunityToolkit.Labs.Shared/Pages/Shell.xaml +++ b/CommunityToolkit.Labs.Shared/Pages/Shell.xaml @@ -1,4 +1,4 @@ - + + - + - - @@ -38,12 +36,12 @@ - + - + @@ -51,9 +49,20 @@ - + + - + + + + + + + + + + + @@ -68,6 +77,7 @@ + @@ -77,119 +87,156 @@ - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - + - - - + + + - + - + + + + - - - - 0 - 0 - - - - 14 - + + + 0 + 0,0,0,0 + + + + + + 14 + - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/CommunityToolkit.Labs.Shared/Renderers/ToolkitSampleRenderer.xaml.cs b/CommunityToolkit.Labs.Shared/Renderers/ToolkitSampleRenderer.xaml.cs index af0c3e48f..e525740ef 100644 --- a/CommunityToolkit.Labs.Shared/Renderers/ToolkitSampleRenderer.xaml.cs +++ b/CommunityToolkit.Labs.Shared/Renderers/ToolkitSampleRenderer.xaml.cs @@ -156,13 +156,12 @@ private async Task LoadData() CSharpCode = await GetMetadataFileContents(Metadata, "xaml.cs"); var sampleControlInstance = (UIElement)Metadata.SampleControlFactory(); - + // Custom control-based sample options. if (Metadata.SampleOptionsPaneType is not null && Metadata.SampleOptionsPaneFactory is not null) { SampleOptionsPaneInstance = (UIElement)Metadata.SampleOptionsPaneFactory(sampleControlInstance); } - // Source generater-based sample options else if (sampleControlInstance is IToolkitSampleGeneratedOptionPropertyContainer propertyContainer) { @@ -175,6 +174,10 @@ private async Task LoadData() SampleOptions = propertyContainer.GeneratedPropertyMetadata }; } + else + { + OptionsScrollViewer.Visibility = Visibility.Collapsed; + } // Generated options must be assigned before attempting to render the control, // else some platforms will nullref from XAML but not properly ignore the exception when binding to generated properties. diff --git a/CommunityToolkit.Labs.Shared/Styles/Buttons.xaml b/CommunityToolkit.Labs.Shared/Styles/Buttons.xaml index 59618bd37..67bc77932 100644 --- a/CommunityToolkit.Labs.Shared/Styles/Buttons.xaml +++ b/CommunityToolkit.Labs.Shared/Styles/Buttons.xaml @@ -348,9 +348,5 @@ - +