File tree Expand file tree Collapse file tree 8 files changed +18
-10
lines changed
Expand file tree Collapse file tree 8 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ private static IEnumerable<GroupNavigationItemData> GenerateSubcategoryNavItems(
7272 {
7373 Content = subcategoryGroup . Key ,
7474 SelectsOnInvoked = false ,
75- IsExpanded = true ,
75+ IsExpanded = false ,
7676 Style = ( Style ) App . Current . Resources [ "SubcategoryNavigationViewItemStyle" ] ,
7777 } , subcategoryGroup . ToArray ( ) ) ;
7878 }
Original file line number Diff line number Diff line change 1- <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+ <!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22<Page x : Class =" CommunityToolkit.App.Shared.Pages.GettingStartedPage"
33 xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
7272 Orientation =" Vertical"
7373 Spacing =" 4" >
7474 <TextBlock FontWeight =" SemiBold"
75- Text =" Version 8.0 " />
75+ Text =" {x:Bind AppVersion} " />
7676 <TextBlock FontSize =" 36"
7777 FontWeight =" SemiBold" >
7878 <Run Text =" Windows Community Toolkit" />
Original file line number Diff line number Diff line change 33// See the LICENSE file in the project root for more information.
44
55using CommunityToolkit . Tooling . SampleGen . Metadata ;
6+ using Windows . ApplicationModel ;
67
78namespace CommunityToolkit . App . Shared . Pages ;
89
910public sealed partial class GettingStartedPage : Page
1011{
12+ public string AppVersion => $ "Version { Package . Current . Id . Version . Major } .{ Package . Current . Id . Version . Minor } ";
13+
1114 public GettingStartedPage ( )
1215 {
1316 this . InitializeComponent ( ) ;
Original file line number Diff line number Diff line change 7373 <TextBlock Style =" {StaticResource SettingsSectionHeaderTextBlockStyle}"
7474 Text =" About" />
7575
76- <controls : SettingsExpander Description =" © 2023 . All rights reserved."
76+ <controls : SettingsExpander Description =" © 2024 . All rights reserved."
7777 Header =" Windows Community Toolkit Gallery"
7878 IsExpanded =" True" >
7979 <controls : SettingsExpander .HeaderIcon>
8282 </controls : SettingsExpander .HeaderIcon>
8383 <TextBlock win : IsTextSelectionEnabled =" True"
8484 Foreground =" {ThemeResource TextFillColorSecondaryBrush}"
85- Text =" Version 8.0.0 " />
85+ Text =" {x:Bind AppVersion} " />
8686 <controls : SettingsExpander .Items>
8787 <controls : SettingsCard HorizontalContentAlignment =" Left"
8888 ContentAlignment =" Left" >
Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
5+ using Windows . ApplicationModel ;
6+
57namespace CommunityToolkit . App . Shared . Pages
68{
79 /// <summary>
810 /// An empty page that can be used on its own or navigated to within a Frame.
911 /// </summary>
1012 public sealed partial class SettingsPage : Page
1113 {
14+ public string AppVersion => $ "Version { Package . Current . Id . Version . Major } .{ Package . Current . Id . Version . Minor } .{ Package . Current . Id . Version . Build } ";
15+
1216 public SettingsPage ( )
1317 {
1418 this . InitializeComponent ( ) ;
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ private static async Task<string> GetDocumentationFileContents(ToolkitFrontMatte
154154 // TODO: https://github.com/CommunityToolkit/Labs-Windows/issues/142
155155 // MSBuild uses wildcard to find the files, and the wildcards decide where they end up
156156 // Single experiments use relative paths, the allExperiment head uses absolute paths that grab from all experiments
157- // The wildcard captures decide the paths. This discrepency is accounted for manually.
157+ // The wildcard captures decide the paths. This discrepancy is accounted for manually.
158158 // Logic here is the exact same that MSBuild uses to find and include the files we need.
159159 var assemblyName = typeof ( ToolkitSampleRenderer ) . Assembly . GetName ( ) . Name ;
160160 if ( string . IsNullOrWhiteSpace ( assemblyName ) )
@@ -178,9 +178,9 @@ private static async Task<string> GetDocumentationFileContents(ToolkitFrontMatte
178178 var textContents = await FileIO . ReadTextAsync ( file ) ;
179179
180180 // Remove YAML - need to use array overload as single string not supported on .NET Standard 2.0
181- var blocks = textContents . Split ( new [ ] { "---" } , StringSplitOptions . RemoveEmptyEntries ) ;
181+ var blocks = textContents . Split ( new [ ] { "---" } , 2 , StringSplitOptions . RemoveEmptyEntries ) ;
182182
183- return blocks . LastOrDefault ( ) ?? "Couldn't find content after YAML Front Matter removal." ;
183+ return blocks . LastOrDefault ( ) ? . Replace ( "<br>" , " " ) ?? "Couldn't find content after YAML Front Matter removal." ;
184184 }
185185 catch ( Exception e )
186186 {
Original file line number Diff line number Diff line change 3131 Executable =" $targetnametoken$.exe"
3232 EntryPoint =" $targetentrypoint$" >
3333 <uap : VisualElements
34- DisplayName =" CommunityToolkit Sample App "
34+ DisplayName =" Windows Community Toolkit Gallery "
3535 Square150x150Logo =" Assets\MedTile.png"
3636 Square44x44Logo =" Assets\AppList.png"
3737 Description =" CommunityToolkit Samples"
5050 <Capabilities >
5151 <rescap : Capability Name =" runFullTrust" />
5252 <Capability Name =" internetClient" />
53+ <DeviceCapability Name =" webcam" />
5354 </Capabilities >
5455</Package >
Original file line number Diff line number Diff line change 128128
129129 <ItemGroup >
130130 <PackageReference Include =" Microsoft.NETCore.UniversalWindowsPlatform" Version =" 6.2.14" />
131- <PackageReference Include =" PolySharp" Version =" 1.13 .1" >
131+ <PackageReference Include =" PolySharp" Version =" 1.14 .1" >
132132 <PrivateAssets >all</PrivateAssets >
133133 <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
134134 </PackageReference >
You can’t perform that action at this time.
0 commit comments