Skip to content

Commit cfc2c57

Browse files
Remove backing page from ContentSizer samples
Bonus also fixes issue with sample loading the first time...
1 parent 76c947d commit cfc2c57

File tree

5 files changed

+2
-38
lines changed

5 files changed

+2
-38
lines changed

Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,6 @@
497497
<Content Include="SamplePages\DataGrid\DataGridCode.bind" />
498498
<Content Include="SamplePages\ViewportBehavior\ViewportBehaviorCode.bind" />
499499
<Compile Include="Common\TextBlockHyperlinkBehavior.cs" />
500-
<Compile Include="SamplePages\ContentSizer\ContentSizerPage.xaml.cs">
501-
<DependentUpon>ContentSizerPage.xaml</DependentUpon>
502-
</Compile>
503500
<Compile Include="Common\Vector3Converter.cs" />
504501
<Compile Include="SamplePages\AutoFocusBehavior\AutoFocusBehaviorPage.xaml.cs">
505502
<DependentUpon>AutoFocusBehaviorPage.xaml</DependentUpon>
@@ -978,10 +975,6 @@
978975
<SubType>Designer</SubType>
979976
<Generator>MSBuild:Compile</Generator>
980977
</Page>
981-
<Page Include="SamplePages\ContentSizer\ContentSizerPage.xaml">
982-
<Generator>MSBuild:Compile</Generator>
983-
<SubType>Designer</SubType>
984-
</Page>
985978
<Page Include="SamplePages\AutoFocusBehavior\AutoFocusBehaviorPage.xaml">
986979
<SubType>Designer</SubType>
987980
<Generator>MSBuild:Compile</Generator>

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ContentSizer/ContentSizerPage.xaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/ContentSizer/ContentSizerPage.xaml.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/XamlOnlyPage.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<controls:Case IsDefault="True" />
5151
</controls:CaseCollection>
5252
</controls:SwitchPresenter>
53+
<controls:ContentSizer x:Key="ContentSizerControl" />
5354
<controls:ConstrainedBox x:Key="ConstrainedBoxControl" />
5455
<media:AttachedCardShadow x:Key="AttachedShadow" />
5556
<ui:AttachedDropShadow x:Key="AttachedDropShadow" />

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/samples.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,10 @@
177177
},
178178
{
179179
"Name": "ContentSizer",
180-
"Type": "ContentSizerPage",
181180
"Subcategory": "Layout",
182181
"About": "ContentSizer is a general sizing control which can manipulate the size of its parent or other elements. Used as a building block for more complex UI systems.",
183182
"CodeUrl": "https://github.com/windows-toolkit/WindowsCommunityToolkit/tree/main/Microsoft.Toolkit.Uwp.UI.Controls.Layout/ContentSizer",
184-
"XamlCodeFile": "ContentSizer.bind",
183+
"XamlCodeFile": "/SamplePages/ContentSizer/ContentSizer.bind",
185184
"Icon": "/SamplePages/ContentSizer/ContentSizer.png",
186185
"DocumentationUrl": "https://raw.githubusercontent.com/MicrosoftDocs/WindowsCommunityToolkitDocs/master/docs/controls/ContentSizer.md"
187186
},

0 commit comments

Comments
 (0)