CommunityToolkit/WindowsCommunityToolkit

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

Open

#4,573 opened on 2022年6月6日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C# (5,708 stars) (1,403 forks)batch import
WinUI :diamond_shape_with_a_dot_inside:bug :bug:good first issuehelp wanted

説明

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.

コントリビューターガイド