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

Button Text wrap #9102

Closed
tchtang opened this issue Aug 1, 2022 · 2 comments
Closed

Button Text wrap #9102

tchtang opened this issue Aug 1, 2022 · 2 comments
Labels

Comments

@tchtang
Copy link

tchtang commented Aug 1, 2022

Description

cannot find wrap from Button documentation
https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/button

In WPF

        <Button Width="50" Height="40">
            <TextBlock Text="Some long text" TextWrapping="Wrap" TextAlignment="Center"/>
        </Button>

In MAUI

image

Public API Changes

Intended Use-Case

prefer button has text wrapping

@Eilon Eilon added the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label Aug 1, 2022
@samhouts samhouts added the area-controls-button Button, ImageButton label Aug 31, 2022
@ooikengsiang
Copy link
Contributor

The property you are looking for is LineBreakMode="WordWrap".

@tchtang
Copy link
Author

tchtang commented Jan 10, 2023

thank you, is working

@tchtang tchtang closed this as completed Jan 10, 2023
@dotnet dotnet locked as resolved and limited conversation to collaborators Feb 9, 2023
@Eilon Eilon removed the area/controls 🎮 Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants