Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inside modal popup MaterialEntry floatable lables are not clickable #18

Open
pmd23 opened this issue Feb 7, 2018 · 2 comments
Open

Comments

@pmd23
Copy link

pmd23 commented Feb 7, 2018

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

@SuavePirate
Copy link
Owner

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?

@pmd23
Copy link
Author

pmd23 commented Feb 7, 2018

@SuavePirate yes it works for a regular entry. but for popup kind of things, it is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants