This commit is contained in:
Darshak Bhatti 2024-04-16 12:27:25 -07:00
parent ca4ee2bced
commit dca8ebbe48
16 changed files with 15 additions and 17 deletions

View File

@ -16,12 +16,15 @@
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<IsPackable>true</IsPackable>
<Version>4.0.1</Version>
</PropertyGroup>
<ItemGroup>
<None Include="$(OutDir)\PowerToys.Hosts.pri" Pack="True" PackageCopyToOutput="true" />
<None Include="$(OutDir)\PowerToys.Hosts.pri" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
<None Include="$(OutDir)\PowerToys.Hosts.pri" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)" />
<XBFFile Include="$(OutDir)**\*.xbf" />
<None Include="@(XBFFile)" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)" />
<None Include="$(OutDir)\PowerToys.Hosts.pdb" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
<None Include="PowerToys.Hosts.Assets\*" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)\PowerToys.Hosts.Assets"/>
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
@ -47,6 +50,7 @@
<PackageReference Include="CommunityToolkit.WinUI.Converters" />
<PackageReference Include="CommunityToolkit.WinUI.Collections" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
<PackageReference Include="Microsoft.WindowsAppSDK" />
<PackageReference Include="Microsoft.Xaml.Behaviors.WinUI.Managed" />
<PackageReference Include="System.IO.Abstractions" />
<Manifest Include="$(ApplicationManifest)" />

View File

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 567 B

View File

Before

Width:  |  Height:  |  Size: 768 B

After

Width:  |  Height:  |  Size: 768 B

View File

Before

Width:  |  Height:  |  Size: 1001 B

After

Width:  |  Height:  |  Size: 1001 B

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View File

@ -15,12 +15,15 @@
<GenerateLibraryLayout>true</GenerateLibraryLayout>
<IsPackable>true</IsPackable>
<Version>2.0.1</Version>
</PropertyGroup>
<ItemGroup>
<None Include="$(OutDir)\PowerToys.RegistryPreviewUILib.pri" Pack="True" PackageCopyToOutput="true" />
<None Include="$(OutDir)\PowerToys.RegistryPreviewUILib.pri" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
<None Include="$(OutDir)\PowerToys.RegistryPreviewUILib.pri" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)" />
<XBFFile Include="$(OutDir)**\*.xbf" />
<None Include="@(XBFFile)" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)" />
<None Include="$(OutDir)\PowerToys.RegistryPreviewUILib.pdb" Pack="True" PackageCopyToOutput="true" PackagePath="lib/$(TargetFramework)" />
<None Include="RegistryPreviewUI.Assets\*" Pack="True" PackageCopyToOutput="True" PackagePath="contentFiles\any\$(TargetFramework)\RegistryPreviewUI.Assets" />
</ItemGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
@ -50,14 +53,5 @@
<PackageReference Include="WinUIEx" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
<ItemGroup>
<Content Update="Assets\RegistryPreviewUILib\data32.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
<Content Update="Assets\RegistryPreviewUILib\string32.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
<!--TargetFramework>net6.0-windows10.0.19041.0</TargetFramework-->

View File

@ -12,10 +12,10 @@ namespace RegistryPreviewUILib
public class RegistryValue
{
// Static members
private static Uri uriStringValue = new Uri("ms-appx:///Assets/RegistryPreviewUILib/string32.png");
private static Uri uriBinaryValue = new Uri("ms-appx:///Assets/RegistryPreviewUILib/data32.png");
private static Uri uriDeleteValue = new Uri("ms-appx:///Assets/RegistryPreviewUILib/deleted-value32.png");
private static Uri uriErrorValue = new Uri("ms-appx:///Assets/RegistryPreviewUILib/error32.png");
private static Uri uriStringValue = new Uri("ms-appx:///RegistryPreviewUI.Assets/string32.png");
private static Uri uriBinaryValue = new Uri("ms-appx:///RegistryPreviewUI.Assets/data32.png");
private static Uri uriDeleteValue = new Uri("ms-appx:///RegistryPreviewUI.Assets/deleted-value32.png");
private static Uri uriErrorValue = new Uri("ms-appx:///RegistryPreviewUI.Assets/error32.png");
public string Name { get; set; }