.Net MAUI related functionality

salilsingh-9961 346 Reputation points
2023-10-28T14:03:51.5466667+00:00

Hi Team,

I am working on a .Net MAUI app (in Visual Studio 2022), Android emulator used is Pixel 5 API 33. Please provide me solution for below -

  1. I am able to show an entry pop up using DisplayPromtAsync, when user clicks on OK button (with no text entered in Entry control), I need to show a label like 'Please enter a value' and pop up should not get closed. If this is possible, please let me know how.
  2. In case #1 is not possible, please provide me a link which shows how to create a pop up similar to DisplayPromtAsync, when user clicks on OK button (with no text entered in Entry control), I need to show a label like 'Please enter a value'.
  3. Inside a label, I need to show * in red text, at end of text (like - Enter Data *),

please let me know how to achieve this.

  1. Also, in normal XAML page, i need to enable/disable a button using ViewModel, please provide me a link which shows how to achieve it.
  2. Design of one of the page of the MAUI app is not coming correct when opened on an android mobile with small screen (as compared to Emulator Pixel 5 API 33), can you please specify emulator details if I need to create an emulator with small screen.

Please let me know if any other information is required.

Thanks,

Salil

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,699 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 45,181 Reputation points Microsoft Vendor
    2023-10-30T05:33:18.84+00:00

    Hello,

    For Problem 1, the DisplayPromtAsync dialog box cannot be customized with the control functions in it.

    For your needs, you need to refer to Popup to create costomized popup page.

    For other issues, please avoid asking multiple questions in a single thread, as per the Community Standards.

    Avoid posting multiple questions in a single thread To ensure that you receive a clear and helpful answer to your questions, it's important to post them individually. When you have multiple questions, each with its own distinct scenario, it can make it more difficult for the community to understand the problem and provide an accurate solution. For this reason, we recommend that you create separate threads for each of your questions. This way, the community can give you their undivided attention and provide the best possible response.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.