What's measn in maui "customize a control" is it means give it a native property that don't exist in Maui control
Yes, you can set a native property that don't exist in MAUI control. You can refer to this document: Customize controls with handlers
say I want to change editor control to have scrollbars this possible?
Yes, you do not need to Customize controls, you can use
ScrollView wrap the
Editor like following code. I set
HeightRequest="50" for testing.
<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>
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.
For example, you need to achieve ContentView that include the
Entryand wrapped by
Border. You can create a
.Net MAUI ContentView(XAML), then put these controls in it like following code.
Then you can use it in the ContentPage with the following code.
For more detials, you can refer to this document:ContentView
@Haviv Elbsz May I know if you have got any chance to check my answer? I am glad to help if you have any other questions