3

I have a Xamarin.CommunityToolkit - Popup. I don't want to predefine its size. I want it to size according to the content dynamically. Is there any way to achieve this?

Here is my XAML code:

<?xml version="1.0" encoding="UTF-8"?>
<xct:Popup xmlns="http://xamarin.com/schemas/2014/forms" 
           xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
           xmlns:xct="http://xamarin.com/schemas/2020/toolkit"
           x:Class="SampleProject.Views.SamplePopup">

    <StackLayout>
        <Label Text="Hello Xamarin.Forms!" />
        <Button Text="Close Popup" Clicked="ClosePopup" />
    </StackLayout>
</xct:Popup>
Junaid Pathan
  • 3,850
  • 1
  • 25
  • 47

1 Answers1

2

The current implementation doesn't support such feature, as Amjad mentioned in his comment there was a similar feature request in the past but it was closed as things were migrating to the new repo .NET MAUI community toolkit.

If you are interested you can open a discussion explaining or pointing to the link of that feature request.

Cfun
  • 8,442
  • 4
  • 30
  • 62