<ListView.ItemTemplate>
<DataTemplate>
<Grid BorderBrush="Black"
BorderThickness="0, 0, 0, 1">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Name}"
FontSize="24"
Margin="5, 0"
VerticalAlignment="Center" />
<AppBarButton Icon="Clear"
Margin="3"
IsCompact="True"
Background="Red"
Foreground="White"
Grid.Column="1"
PointerMoved="DeletePlanBtnMoved"
PointerExited="DeletePlanBtnExited">
<AppBarButton.Flyout>
<Flyout>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBlock Text="Вы действительно хотите удалить?"
Grid.ColumnSpan="2" />
<Button Background="Red"
Foreground="White"
HorizontalAlignment="Stretch"
Content="Да"
Grid.Row="1"
Margin="3"
Command="{Binding ElementName=root, Path=DataContext.DeletePlanCommand}"
CommandParameter="{Binding Id}" />
<Button Background="Blue"
Foreground="White"
HorizontalAlignment="Stretch"
Content="Нет"
Margin="3"
Grid.Row="1"
Grid.Column="1" />
</Grid>
</Flyout>
</AppBarButton.Flyout>
</AppBarButton>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>