SuaveControls.MaterialFormControls
SuaveControls.MaterialFormControls copied to clipboard
Inside modal popup MaterialEntry floatable lables are not clickable
Hi,
I am using this MaterialEntry for my project. I opening the modal popup (ie dialog box) inside the dialog box Textbox control are not clickable. this is my code
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="LocWF.views.SearchUser"
xmlns:SearchUser="clr-namespace:LocWF.views.SearchUser;assembly=LocWF">
<AbsoluteLayout>
<StackLayout AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
AbsoluteLayout.LayoutFlags="All">
<StackLayout.GestureRecognizers Spacing="0">
<TapGestureRecognizer Tapped="Handle_SearchDialog">
</TapGestureRecognizer>
</StackLayout.GestureRecognizers>
<Image Source="registerPhysician" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"></Image>
<Label Text="Click here to Search User..."
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" />
</StackLayout>
<ContentView x:Name="overlay"
AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
AbsoluteLayout.LayoutFlags="All"
IsVisible="False"
BackgroundColor="#C0808080"
Padding="10, 0">
<StackLayout Orientation="Vertical"
BackgroundColor="White"
HorizontalOptions="Center"
VerticalOptions="Start"
Margin="0,20,0,0" >
<Label BackgroundColor="Black" FontSize="18" TextColor="White" HorizontalOptions="Fill" Text="Search a User" />
<SearchUser:MaterialEntry Placeholder="First Name" AccentColor="Green" Text="{Binding FirstName}"/>
<Label Text="{Binding FirstName}"/>
</StackLayout>
</ContentView>
</AbsoluteLayout>
</ContentPage>
C# partial xaml class
void OnButtonClicked(object sender, EventArgs args)
{
overlay.IsVisible = true;
}
this is my code but for normal window its working but for adding it to popup it is not working
Not sure why this would be happening. Could be the tap gesture recognizer interfering since I use this controls in these sort of overlays all the time. If you switch out the MaterialEntry for a regular Entry, does it work?
@SuavePirate yes it works for a regular entry. but for popup kind of things, it is not working.