Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RegistryPreview] Enhanced preview for value data #37689

Draft
wants to merge 30 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8d45aba
button and dummy dialog
htcfreek Feb 28, 2025
a8a75db
fill dialog with real data from datagrid
htcfreek Feb 28, 2025
56ab216
last changes
htcfreek Feb 28, 2025
9c48b9e
implement different layouts and improve dialoge
htcfreek Feb 28, 2025
e602563
code changes
htcfreek Feb 28, 2025
c8d1d5e
fix typos
htcfreek Feb 28, 2025
a9a9585
binary preview
htcfreek Feb 28, 2025
691b9ee
changes
htcfreek Feb 28, 2025
6bd2d55
changes
htcfreek Feb 28, 2025
b7ec010
fixes and code improvements
htcfreek Mar 1, 2025
15a89c5
add HexBox control
htcfreek Mar 1, 2025
dddb4c4
finally implement hex box
htcfreek Mar 1, 2025
7bb40dc
spell check + Notice.md
htcfreek Mar 1, 2025
8d14497
spell check
htcfreek Mar 1, 2025
6c95eae
translation and cleanup usings
htcfreek Mar 1, 2025
d60b83c
refactor code
htcfreek Mar 2, 2025
08f935f
changes for different view in binary preview
htcfreek Mar 2, 2025
f0fe236
finish implementation of extendet binary preview
htcfreek Mar 2, 2025
52e4d44
fix typos
htcfreek Mar 2, 2025
7db3c89
last changes
htcfreek Mar 2, 2025
a533c9d
cleanup
htcfreek Mar 3, 2025
12e4645
Color adjustments
htcfreek Mar 5, 2025
f4918f7
code styling
htcfreek Mar 5, 2025
ea9a239
use converter
htcfreek Mar 5, 2025
c06d4bc
Bump versions of HexBox.WinUI and Microsoft.Windows.CsWinRT
htcfreek Mar 6, 2025
62ca584
code fixes
htcfreek Mar 6, 2025
1fc2a88
last changes
htcfreek Mar 6, 2025
7393a33
High contrast fixes
htcfreek Mar 6, 2025
420e1eb
code improvements
htcfreek Mar 6, 2025
a918707
update Notice.md
htcfreek Mar 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add HexBox control
  • Loading branch information
htcfreek committed Mar 1, 2025
commit 15a89c5d6b1a23f1b3b8b32cf0113a41ba9401ab
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -92,6 +92,7 @@
<PackageVersion Include="UTF.Unknown" Version="2.5.1" />
<PackageVersion Include="WinUIEx" Version="2.2.0" />
<PackageVersion Include="WPF-UI" Version="3.0.5" />
<PackageVersion Include="HexBox.WinUI" Version="0.1.9" NoWarn="NU1605"/>
</ItemGroup>
<ItemGroup Condition="'$(IsExperimentationLive)'!=''">
<!-- Additional dependencies used by experimentation -->
Original file line number Diff line number Diff line change
@@ -32,6 +32,12 @@
<Folder Include="RegistryPreviewXAML\" />
</ItemGroup>

<PropertyGroup>
<!-- Properties for nuget package. -->
<!-- The warning NU1605 (package downgrade) is thorwn by HexBox.WinUI in Version 0.1.9 for Microsoft.Windows.SDK.BuildTools -->

Check warning on line 37 in src/modules/registrypreview/RegistryPreview/RegistryPreview.csproj

GitHub Actions / Check Spelling

`thorwn` is not a recognized word. (unrecognized-spelling)
<NoWarn>NU1605</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.Sizers" />
Original file line number Diff line number Diff line change
@@ -3,8 +3,11 @@
// See the LICENSE file in the project root for more information.

using System;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using HexBox;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Windows.Foundation.Metadata;
@@ -59,6 +62,29 @@
break;
case "REG_NONE":
case "REG_BINARY":
/* // Convert data
byte[] byteArray = Encoding.UTF8.GetBytes(value);
MemoryStream memoryStream = new MemoryStream(byteArray);
BinaryReader binaryData = new BinaryReader(memoryStream);
binaryData.ReadBytes(byteArray.Length);

// Create box
var binaryBox = new HexBox.WinUI.HexBox()
{
Height = 200,
Width = 500,
ShowAddress = true,
ShowData = true,
ShowText = true,
Columns = 8,
DataFormat = HexBox.WinUI.DataFormat.Hexadecimal,
DataSignedness = HexBox.WinUI.DataSignedness.Unsigned,

Check warning on line 81 in src/modules/registrypreview/RegistryPreviewUILib/RegistryPreviewMainPage.DataPreview.cs

GitHub Actions / Check Spelling

`Signedness` is not a recognized word. (unrecognized-spelling)

Check warning on line 81 in src/modules/registrypreview/RegistryPreviewUILib/RegistryPreviewMainPage.DataPreview.cs

GitHub Actions / Check Spelling

`Signedness` is not a recognized word. (unrecognized-spelling)
DataType = HexBox.WinUI.DataType.Int_2,
DataSource = binaryData,
Visibility = Visibility.Visible,
};
panel.Children.Add(binaryBox);
break; */
case "REG_MULTI_SZ":
var multiLineBox = new TextBox()
{
Original file line number Diff line number Diff line change
@@ -23,6 +23,8 @@
<!-- Properties for nuget package. -->
<Description>Implements the UI control for the PowerToys Registry Preview Utility</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<!-- The warning NU1605 (package downgrade) is thorwn by HexBox.WinUI in Version 0.1.9 for Microsoft.Windows.SDK.BuildTools -->

Check warning on line 26 in src/modules/registrypreview/RegistryPreviewUILib/RegistryPreviewUILib.csproj

GitHub Actions / Check Spelling

`thorwn` is not a recognized word. (unrecognized-spelling)
<NoWarn>NU1605</NoWarn>
</PropertyGroup>

<ItemGroup>
@@ -49,8 +51,9 @@
<PackageReference Include="CommunityToolkit.WinUI.UI.Controls.DataGrid" />
<PackageReference Include="CommunityToolkit.WinUI.Controls.Sizers" />
<PackageReference Include="CommunityToolkit.WinUI.Extensions" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" />
<PackageReference Include="Microsoft.WindowsAppSDK" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools"/>
<PackageReference Include="HexBox.WinUI"/>
<PackageReference Include="Microsoft.WindowsAppSDK"/>
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>

Loading
Oops, something went wrong.