Skip to content

Commit 063405b

Browse files
authored
Merge branch 'main' into wasdk/1.6
2 parents 371a247 + e661644 commit 063405b

File tree

8 files changed

+18
-10
lines changed

8 files changed

+18
-10
lines changed

CommunityToolkit.App.Shared/Helpers/NavigationViewHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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"
@@ -72,7 +72,7 @@
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" />

CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@
33
// See the LICENSE file in the project root for more information.
44

55
using CommunityToolkit.Tooling.SampleGen.Metadata;
6+
using Windows.ApplicationModel;
67

78
namespace CommunityToolkit.App.Shared.Pages;
89

910
public 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();

CommunityToolkit.App.Shared/Pages/SettingsPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
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>
@@ -82,7 +82,7 @@
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">

CommunityToolkit.App.Shared/Pages/SettingsPage.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
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+
57
namespace 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();

CommunityToolkit.App.Shared/Renderers/ToolkitDocumentationRenderer.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

ProjectHeads/AllComponents/WinAppSdk/Package.appxmanifest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
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"
@@ -50,5 +50,6 @@
5050
<Capabilities>
5151
<rescap:Capability Name="runFullTrust" />
5252
<Capability Name="internetClient" />
53+
<DeviceCapability Name="webcam"/>
5354
</Capabilities>
5455
</Package>

ProjectHeads/Head.Uwp.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
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>

0 commit comments

Comments
 (0)