Maui android app scroll text scroll new enterd text only

Haviv Elbsz 2,071 Reputation points
2022-11-10T07:28:42.397+00:00

Hi all

this is my maui editor page :

<ScrollView WidthRequest="200" BackgroundColor="Red" HeightRequest="50" VerticalScrollBarVisibility="Always">
<Editor Text="this is a test text for long this is a test text for long this is a test text for long" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" ></Editor>
</ScrollView>

its working but always its scrolling a fix
amount of text when I enter new text
it scroll the new amount of text and
ignoring the same old amount of text
manly its scrolling the same amount of
text always.

The amount of text scrolled always
equals to the xaml UI text amount.
so if I want to enlarge the scrolled
amount I need to add text to UI xaml
that not make me possible to programmatically do it.

how I can fix that.

Note:

I want to achieve something like
this post box that you read from now.

Thank you very much.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,217 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,637 questions
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 39,066 Reputation points Microsoft Vendor
    2022-11-11T06:55:07.477+00:00

    Hello,

    There is no such an API to modify the scroll text type on MAUI.

    Please refer to Editor to get more details about it.

    If you want MAUI to add this feature, please create an issue at GitHub: Issues to make our product group aware of it.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful