Replies: 3 comments 3 replies
-
You can create a transparent full-screen popup, and, within it, you can control the children's size. e.g.
<?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup
x:Class="MauiVariablePopup.ResizePopup"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
HorizontalOptions="Fill"
VerticalOptions="Fill"
Color="Transparent">
<Grid>
<Grid
BackgroundColor="SkyBlue"
HeightRequest="{Binding Value, Source={Reference slider}}"
WidthRequest="400">
<Slider
x:Name="slider"
Maximum="400"
Minimum="100"
VerticalOptions="Center" />
</Grid>
</Grid>
</toolkit:Popup> |
Beta Was this translation helpful? Give feedback.
-
Something like this worked for me. The |
Beta Was this translation helpful? Give feedback.
-
Closed as answered, if closed in error please let us know to re-open. |
Beta Was this translation helpful? Give feedback.
-
I am displaying a varying length list and I want the length of the popup to be dependent on the number of items with a minimum length and a maximum length of the popup?
Beta Was this translation helpful? Give feedback.
All reactions