Skip to content

Instantly share code, notes, and snippets.

@gekka
gekka / QnA138091.md
Created October 30, 2020 10:17
Answer code for QnA 138091

[QnA] How to apply animation on ListBoxItem before removal?

<Window x:Class="Gekka.GPL.Sample.WPF.App1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Gekka.GPL.Sample.WPF.App1" mc:Ignorable="d"
        Title="MainWindow" Height="500" Width="300" >
    <DockPanel TextElement.FontSize="20">
        <Button Content="Test" Click="Button_Click"  DockPanel.Dock="Bottom" />
        <local:DelayRemoveListBox ItemsSource="{Binding}"/>
    </DockPanel>