Skip to content

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

Open
@michael-hawker

Description

@michael-hawker

Discussed in #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.bug 🐛An unexpected issue that highlights incorrect behaviorgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions