more animation work

This commit is contained in:
TheXamlGuy
2024-01-17 20:33:41 +00:00
parent 92ee4a678b
commit 7dc125ebc7
3 changed files with 14 additions and 7 deletions
+5
View File
@@ -10,5 +10,10 @@
<StackPanel Orientation="Horizontal" Spacing="8" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemContainerTransitions>
<TransitionCollection>
<AddDeleteThemeTransition />
</TransitionCollection>
</ItemsControl.ItemContainerTransitions>
</ItemsControl>
</UserControl>
-7
View File
@@ -7,10 +7,3 @@ public record Created<TValue>(TValue Value, object Target) : INotification
return new Created<TValue>(value, typeof(TTarget).Name);
}
}
public record Inserted<TValue>(int Index, TValue Value, object Target) : INotification
{
public static Inserted<TValue> For<TTarget>(int index, TValue value)
{
return new Inserted<TValue>(index, value, typeof(TTarget).Name);
}
}
+9
View File
@@ -0,0 +1,9 @@
namespace Hyperbar;
public record Inserted<TValue>(int Index, TValue Value, object Target) : INotification
{
public static Inserted<TValue> For<TTarget>(int index, TValue value)
{
return new Inserted<TValue>(index, value, typeof(TTarget).Name);
}
}