-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
bug 🐛Something isn't workingSomething isn't working
Description
Describe the bug
The sample hosting framework applies a hardcoded MaxHeight constraint of 600 pixels to sample content in the "Normal" visual state. This causes sample content to be artificially cut off when the options pane is taller than the sample content area.
Steps to reproduce
- Open the Sample Gallery application
- Navigate to a sample that uses [ToolkitSampleOptionsPane] with a tall options pane (e.g., MarkdownTextBlock Custom Theme Sample)
- Observe that the sample content area is constrained to 600px height even when the options pane is significantly taller
- The sample content appears cut off at the bottom
Problematic code: ToolkitSampleRenderer.xaml#L26
Expected behavior
MaxHeight should be applied to both the sample content and the sample options pane.
Worth also trying a MinHeight instead to allow it to expand without taking all available height.
Code Platform
- UWP
- WinAppSDK / WinUI 3
Device form factor
- Desktop
Additional context
Found during review of CommunityToolkit/Labs-Windows#761 (review)

Metadata
Metadata
Assignees
Labels
bug 🐛Something isn't workingSomething isn't working