Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions Library/Behaviors/ActionCollection.cs

This file was deleted.

11 changes: 6 additions & 5 deletions Library/Behaviors/BehaviorPropertiesBase.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
using Xamarin.Forms;
using System.Collections.ObjectModel;
using Xamarin.Forms;

namespace Behaviors
{
[Preserve(AllMembers = true)]
[ContentProperty("Actions")]
public class BehaviorPropertiesBase : BehaviorBase<VisualElement>
{
public static readonly BindableProperty ActionsProperty = BindableProperty.Create(nameof(Actions), typeof(ActionCollection), typeof(BehaviorPropertiesBase), null);
public static readonly BindableProperty ActionsProperty = BindableProperty.Create(nameof(Actions), typeof(ObservableCollection<IAction>), typeof(BehaviorPropertiesBase), null);

public ActionCollection Actions
public ObservableCollection<IAction> Actions
{
get
{
return (ActionCollection)GetValue(ActionsProperty);
return (ObservableCollection<IAction>)GetValue(ActionsProperty);
}
}

public BehaviorPropertiesBase()
{
SetValue(ActionsProperty, new ActionCollection());
SetValue(ActionsProperty, new ObservableCollection<IAction>());
}
}
}
2 changes: 1 addition & 1 deletion Library/Behaviors/Behaviors.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<PackageId>Behaviors.Forms</PackageId>
<PackageVersion>1.4.0</PackageVersion>
<PackageVersion>1.4.1</PackageVersion>
<Authors>David Britch</Authors>
<Description>Using behaviors and actions, developers can create a variety of scenarios in XAML that previously required C#.

Expand Down
107 changes: 0 additions & 107 deletions Library/Behaviors/BindableObjectCollection.cs

This file was deleted.