Skip to content

Close Button Click Event #756

@raymond-dillon

Description

@raymond-dillon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions