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

Close Button Click Event #756

Open
raymond-dillon opened this issue Mar 2, 2023 · 1 comment
Open

Close Button Click Event #756

raymond-dillon opened this issue Mar 2, 2023 · 1 comment

Comments

@raymond-dillon
Copy link

I have a popup with the following layout

        <Image
			Margin="0"
			Source="{ Binding ImgSource, Source={x:Reference Root} }"
			HorizontalOptions="Center"
			VerticalOptions="Center"
            Aspect="AspectFit"
            HeightRequest="50"
			WidthRequest="50"
            Grid.Row="2"
			/>

        <Label
			Grid.Column="1"
            Grid.Row="1"
			Text="{ Binding MessageType, Source={x:Reference Root} }"
			FontSize="14"
            FontAttributes="Bold"
            FontFamily="GothamBold.otf"
            TextColor="#425563"/>

        <Label
			Grid.Column="1"
            Grid.Row="2"
            x:Name="lblMessage"
			Text="{ Binding Message, Source={x:Reference Root} }"
			FontSize="Small"
            FontFamily="GothamBold.otf"/>

        <Label
			Grid.Column="1"
            Grid.Row="3"
			Text="{ Binding MessageDateTime, Source={x:Reference Root} }"
			FontSize="14"
            FontFamily="GothamBold.otf"
            FontAttributes="Bold"
            TextColor="#425563"/>

        <Button
		     BackgroundColor="#425563"
                        TextColor="White"
                     Clicked="Button_Clicked"
                    VerticalOptions="Start"
                      FontFamily="GothamBold.otf"
                    Grid.Row="4"
                    Grid.Column="0"
            FontAttributes="Bold"
                    Grid.ColumnSpan="2"
			Text="CLOSE" />


    </Grid>

The "Button_Clicked" event is not firing and I was wondering is there something I'm doing wrong?

@FaroukBel
Copy link

Hello there, maybe you can provide the method code of the "Button_Clicked" in your code behind to see if there's a problem there.

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