Bom dia, obrigado pela resposta rápida!
Eu devo estar fazendo algo errado.
este é xaml meu código:
<ContentPage xmlns = "http://xamarin.com/schemas/2014/forms"
xmlns: x = "http://schemas.microsoft.com/winfx/2009/xaml"
xmlns: local = "clr-namespace: PneumaticDeveloper.Views"
xmlns: iconize = "clr-namespace: FormsPlugin.Iconize; assembly = FormsPlugin.Iconize"
xmlns: sfPopup = "namespace-clr: Syncfusion.XForms.PopupLayout; assembly = Syncfusion.SfPopupLayout.XForms"
x: Name = "this"
x: Class = "PneumaticDeveloper.Views.HomeView">
<sfPopup: SfPopupLayout x: Name = "popupLayout">
<sfPopup: SfPopupLayout.Content>
<StackLayout Orientation = "Vertical">
<Grid VerticalOptions = "FillAndExpand">
<ListView x: Name = "listViewFile">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width = "*" />
<ColumnDefinition Width = "50" />
</Grid.ColumnDefinitions>
<Label Grid.Column = "0" Text = "{Nome da ligação}" FontSize = "Médio" />
<iconize: IconImage Grid.Column = "1" Ícone = "fa-ellipsis-v" IconColor = "Azul" IconSize = "20">
<iconize: IconImage.GestureRecognizers>
<Comando TapGestureRecognizer = "{Binding OnMenu, Source = {x: Referencia isto}}" CommandParameter = "{Binding.}" />
</iconize:IconImage.GestureRecognizers>
</ iconize: IconImage>
</ Grid>
</ ViewCell>
</ DataTemplate>
</ListView.ItemTemplate>
</ ListView>
<local: carregando x: Name = "loading" />
</ Grid>
<StackLayout BackgroundColor = "Transparente">
<iconize: IconImage x: Name = "btnNew" Ícone = "fa-plus-circle" IconColor = "Azul" IconSize = "65" HorizontalOptions = "Centro">
<iconize: IconImage.GestureRecognizers>
<Comando TapGestureRecognizer = "{Encadernação OnNew, Source = {x: Referencia isto}}" />
</iconize:IconImage.GestureRecognizers>
</ iconize: IconImage>
</ StackLayout>
</ StackLayout>
</sfPopup:SfPopupLayout.Content>
</ sfPopup: SfPopupLayout>
</ ContentPage>
e código por trás:
classe parcial pública HomeView: ContentPage
{
DataTemplate templateView;
StackLayout popupContent;
private string projectSelected = "";
bool private repeat = true;
private const bool Repetir = verdadeiro;
public ObservableCollection <MyFiles> listFiles = new ObservableCollection <MeusArquivos> ();
HomeView público ()
{
InitializeComponent ();
popupLayout.PopupView.AnimationMode = AnimationMode.SlideOnLeft;
popupLayout.PopupView.ShowHeader = false;
popupLayout.PopupView.ShowFooter = false;
popupLayout.PopupView.PopupStyle.BorderThickness = 0;
popupLayout.PopupView.PopupStyle.BorderColor = Color.FromHex ("333333");
popupLayout.PopupView.PopupStyle.CornerRadius = 0;
popupLayout.PopupView.WidthRequest = 250;
popupLayout.PopupView.HeightRequest = 50;
loading.Start ();
listViewFile.ItemsSource = listFiles;
listViewFile.ItemSelected + = ListViewFile_ItemSelected;
CheckFolderAsync ();
templateView = new DataTemplate (() =>
{
popupContent = new StackLayout
{
BackgroundColor = Color.White,
Orientação = StackOrientation.Vertical,
};
FileOptionView fileOption = novo FileOptionView ();
popupContent.Children.Add (fileOption);
retornar popupContent;
});
popupLayout.PopupView.ContentTemplate = templateView;
}
Desta forma sempre que eu chamo popupLayout.IsOpen = false todos os itens da tela são fechados, não apenas a janela pop-up. fecha todo o conteúdo do popupLayout.
desculpe se eu cometer um erro básico.