Skip to content

Commit d570dba

Browse files
authored
Sample improvements (#356)
* CanvasLayout * CanvasView * RivePlayer * SettingsControls * SizerBase * Template * Update ToolkitSampleRenderer.xaml * Fix CI * Tweaks * CI * Updating markdown files * XAML styler * CanvasLayout * CanvasView * Template * Tweaks * CI * Updating markdown files * Remove MinWidth
1 parent f695012 commit d570dba

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

CommunityToolkit.App.Shared/Pages/Shell.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
Grid.Row="1"
2323
Margin="0,16,0,0"
2424
IsBackButtonVisible="Collapsed"
25+
IsSettingsVisible="False"
2526
ItemInvoked="NavView_ItemInvoked">
2627
<Frame x:Name="NavigationFrame"
2728
Navigated="NavigationFrameOnNavigated" />

CommunityToolkit.App.Shared/Renderers/ToolkitSampleRenderer.xaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<VisualStateGroup x:Name="CommonStates">
2222
<VisualState x:Name="Normal">
2323
<VisualState.Setters>
24-
<Setter Target="PageControl.MaxHeight" Value="600" />
24+
<Setter Target="ContentScroller.MaxHeight" Value="600" />
2525
</VisualState.Setters>
2626
</VisualState>
2727
<VisualState x:Name="Tabbed">
@@ -178,16 +178,13 @@
178178
Background="{ThemeResource SolidBackgroundFillColorBaseBrush}"
179179
CornerRadius="8,0,0,8"
180180
Visibility="Collapsed" />
181-
<ScrollViewer HorizontalAlignment="Stretch"
182-
VerticalAlignment="Stretch"
183-
HorizontalContentAlignment="Stretch">
184-
181+
<ScrollViewer x:Name="ContentScroller"
182+
HorizontalAlignment="Stretch"
183+
VerticalAlignment="Stretch">
185184
<ContentControl x:Name="PageControl"
186185
Margin="16"
187-
HorizontalAlignment="Stretch"
188-
VerticalAlignment="Stretch"
189186
HorizontalContentAlignment="Stretch"
190-
Background="Yellow"
187+
VerticalContentAlignment="Stretch"
191188
Content="{x:Bind SampleControlInstance, Mode=OneWay}" />
192189
</ScrollViewer>
193190
</Grid>

0 commit comments

Comments
 (0)