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

NumberBox Description does not wrap #8998

Open
agneszitte opened this issue Oct 18, 2023 · 1 comment
Open

NumberBox Description does not wrap #8998

agneszitte opened this issue Oct 18, 2023 · 1 comment
Labels
area-NumberBox NumberBox Control bug Something isn't working team-Controls Issue for the Controls team

Comments

@agneszitte
Copy link
Contributor

agneszitte commented Oct 18, 2023

Describe the bug

NumberBox Description text does not wrap

Steps to reproduce the bug

Test to resize a sample app that is using this snippet of code:

    <muxc:NumberBox Header="Enter a number:"
					Minimum="10"
					Maximum="100"
					PlaceholderText="10"
					Description="This is a description which is shown below the NumberBox" />

Expected behavior

NumberBox Description should wrap (when resizing the app or when placed somewhere in the UI when it should wrap)

Screenshots

  • Fine when there is enough place
    image

  • But not wrapping when there is not enough place
    image

NuGet package version

WinUI 2 - Microsoft.UI.Xaml 2.8.2

Windows version

Windows 11 (22H2): Build 22621

Additional context

Related code:

<ContentPresenter x:Name="DescriptionPresenter"
Grid.Row="2"
Grid.ColumnSpan="3"
Content="{TemplateBinding Description}"
Foreground="{ThemeResource SystemControlDescriptionTextForegroundBrush}"
AutomationProperties.AccessibilityView="Raw"/>

@ranjeshj
Copy link
Contributor

ranjeshj commented Oct 24, 2023

ContentPresenter should text wrap. We can fix this in WinUI3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NumberBox NumberBox Control bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants