Skip to content

Commit

Permalink
Store Update (microsoft#952)
Browse files Browse the repository at this point in the history
* Store update

- also fixed bug with infobadge

* Update protocol launcher to work with doc pages
  • Loading branch information
gregwoo-microsoft committed May 19, 2022
1 parent d906af8 commit f9d4415
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions WinUIGallery/Debug.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6" IgnorableNamespaces="uap mp uap3 uap6">
<Identity Name="Microsoft.WinUI2Gallery.Debug" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.2.22.0" />
<Identity Name="Microsoft.XAMLControlsGallery.Debug" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.2.24.0" />
<mp:PhoneIdentity PhoneProductId="1DE51B2F-78B7-4c23-9045-66DD91CDFE62" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>WinUI 2 Gallery (Debug)</DisplayName>
Expand All @@ -27,7 +27,7 @@
</uap:VisualElements>
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="winuigallery">
<uap:Protocol Name="winui2gallery">
<uap:DisplayName>WinUI 2 Gallery (Debug)</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
Expand Down
4 changes: 2 additions & 2 deletions WinUIGallery/Helper/ProtocolActivationClipboardHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public static bool ShowCopyLinkTeachingTip

public static void Copy(ControlInfoDataItem item)
{
var uri = new Uri($"winuigallery://item/{item.UniqueId}", UriKind.Absolute);
var uri = new Uri($"winui2gallery://item/{item.UniqueId}", UriKind.Absolute);
ProtocolActivationClipboardHelper.Copy(uri, $"{Package.Current.DisplayName} - {item.Title} Sample");
}

public static void Copy(ControlInfoDataGroup group)
{
var uri = new Uri($"winuigallery://category/{group.UniqueId}", UriKind.Absolute);
var uri = new Uri($"winui2gallery://category/{group.UniqueId}", UriKind.Absolute);
ProtocolActivationClipboardHelper.Copy(uri, $"{Package.Current.DisplayName} - {group.Title} Samples");
}

Expand Down
2 changes: 0 additions & 2 deletions WinUIGallery/ItemTemplates.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@
CornerRadius="{StaticResource ControlCornerRadius}"
Visibility="{x:Bind BadgeString, Converter={StaticResource nullToVisibilityConverter}}" >
<muxc:InfoBadge Style="{StaticResource AttentionIconInfoBadgeStyle}" HorizontalAlignment="Right"/>

<Ellipse Fill="{ThemeResource SystemAccentColorDark1}" Width="12" Height="12"/>
</Grid>
</Grid>
</UserControl>
Expand Down
4 changes: 2 additions & 2 deletions WinUIGallery/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:uap6="http://schemas.microsoft.com/appx/manifest/uap/windows10/6" IgnorableNamespaces="uap mp uap3 uap6">
<Identity Name="Microsoft.WinUI2Gallery" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.2.22.0" />
<Identity Name="Microsoft.XAMLControlsGallery" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" Version="1.2.24.0" />
<mp:PhoneIdentity PhoneProductId="5103861a-e76c-42b7-aea1-03093f3cf4bb" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>WinUI 2 Gallery</DisplayName>
Expand All @@ -27,7 +27,7 @@
</uap:VisualElements>
<Extensions>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="winuigallery">
<uap:Protocol Name="winui2gallery">
<uap:DisplayName>WinUI 2 Gallery</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
Expand Down
2 changes: 1 addition & 1 deletion WinUIGallery/WinUIGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundle>Always</AppxBundle>
<AppxBundlePlatforms>x86|x64</AppxBundlePlatforms>
<AppxBundlePlatforms>x86|x64|arm</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<PackageCertificateThumbprint>
</PackageCertificateThumbprint>
Expand Down

0 comments on commit f9d4415

Please sign in to comment.