WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

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

Open michael-hawker opened this issue 2 years ago • 0 comments

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.

michael-hawker avatar Jun 06 '22 19:06 michael-hawker