CommunityToolkit/WindowsCommunityToolkit

TextBox Extensions for SurfaceDial not working for CommunityToolkit WinUI 3 for desktop

Open

#4.573 geöffnet am 6. Juni 2022

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.403 Forks)batch import
WinUI :diamond_shape_with_a_dot_inside:bug :bug:good first issuehelp wanted

Repository-Metriken

Stars
 (5.708 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Discussed in https://github.com/CommunityToolkit/WindowsCommunityToolkit/discussions/4571

Originally posted by victorchinn June 4, 2022 I am getting a XAML parsing error Microsoft.UI.Xaml.Markup.XamlParseException: 'XAML parsing failed.' when using this code example in the XAML for TextBox: ui:TextBoxExtensions.SurfaceDialOptions <ui:SurfaceDialOptions StepValue="1" RotationResolutionInDegrees="12" EnableHapticFeedback="True" EnableMinMaxValue="True" MinValue="0" MaxValue="100" Icon="Ruler" EnableTapToNextControl="True" /> </ui:TextBoxExtensions.SurfaceDialOptions>

Is this not available for Win UI3 for .NET 6 desktop as the target or am I missing something ?

@azchohfi mentioned here:

OK, I've found this: https://github.com/microsoft/Windows-classic-samples/blob/27ffb0811ca761741502feaefdb591aebf592193/Samples/RadialController/cs/winforms/Form1.cs#L48-L51 @michael-hawker this means this is fixable.

So this should be a straight-forward fix for our WinUI branch.

Contributor Guide