diff --git a/src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs b/src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs index e987063ef..bd5a32a2d 100644 --- a/src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs +++ b/src/CommunityToolkit.Maui/Behaviors/AnimationBehavior.shared.cs @@ -33,10 +33,11 @@ public class AnimationBehavior : EventToCommandBehavior /// /// has a of Command<CancellationToken> which requires a as a CommandParameter. See and for more information on passing a into as a CommandParameter" /// - public Command AnimateCommand { + public Command AnimateCommand + { get => (Command)GetValue(AnimateCommandProperty); - [Obsolete( -""" + [Obsolete( + """ Do not use this setter, it only exists to enable XAML Hot reload support in your IDE. Instead, apps should provide a value for this OneWayToSource property by creating a binding, in XAML or C#. If done via C# use code like this: