remove old grouping binding

This commit is contained in:
Kyle Spearrin 2017-12-23 00:23:07 -05:00
parent 1a06683611
commit 2823a86b4e

View file

@ -1,15 +1,11 @@
using Bit.App.Models.Page; using Bit.App.Models.Page;
using FFImageLoading.Forms; using FFImageLoading.Forms;
using System;
using Xamarin.Forms; using Xamarin.Forms;
namespace Bit.App.Controls namespace Bit.App.Controls
{ {
public class VaultGroupingViewCell : ExtendedViewCell public class VaultGroupingViewCell : ExtendedViewCell
{ {
public static readonly BindableProperty GroupingParameterProeprty = BindableProperty.Create(nameof(GroupingParameter),
typeof(VaultListPageModel.Grouping), typeof(VaultGroupingViewCell), null);
public VaultGroupingViewCell() public VaultGroupingViewCell()
{ {
Icon = new CachedImage Icon = new CachedImage
@ -56,14 +52,8 @@ namespace Bit.App.Controls
View = stackLayout; View = stackLayout;
BackgroundColor = Color.White; BackgroundColor = Color.White;
SetBinding(GroupingParameterProeprty, new Binding("."));
} }
public VaultListPageModel.Grouping GroupingParameter
{
get => GetValue(GroupingParameterProeprty) as VaultListPageModel.Grouping;
set { SetValue(GroupingParameterProeprty, value); }
}
public CachedImage Icon { get; private set; } public CachedImage Icon { get; private set; }
public Label Label { get; private set; } public Label Label { get; private set; }
public Label CountLabel { get; private set; } public Label CountLabel { get; private set; }