<ContentView.Content>
<sfPopup:SfPopupLayout
x:Name="popupLayout">
<sfPopup:SfPopupLayout.PopupView>
<sfPopup:PopupView>
<sfPopup:PopupView.ContentTemplate>
<DataTemplate
x:Name="dataTemplate">
<StackLayout
x:Name="stkDialog" Margin="1" BackgroundColor="Gray"
Orientation="Vertical" VerticalOptions="Center"
HorizontalOptions="Center" IsVisible="True">
<StackLayout
x:Name="stkDialogOuter" BackgroundColor="#ebf0f9"
Margin="1" Padding="10">
<Label
Style="{StaticResource DefaultLabelBoldStyle}"
x:Name="lblDialogTitle" Text="{Binding
strTitle}"/>
<StackLayout
x:Name="stkDialogInner" Margin="10">
<Label
x:Name="lblMessage" Style="{StaticResource
DefaultLabelStyle}" Text="{Binding strMessage}" />
</StackLayout>
</StackLayout>
</StackLayout>
</DataTemplate>
</sfPopup:PopupView.ContentTemplate>
</sfPopup:PopupView>
</sfPopup:SfPopupLayout.PopupView>
</sfPopup:SfPopupLayout>
</ContentView.Content>
When I try to set strMessage = "Some text here" in the code, the message does not show up in the popup. I have the code as follows:
public void Show(string message, string title)
{
strMessage = message;
strTitle = title;
popupLayout.Show();
}
ANy help would be appreciated.