2018-06-13 18:58:28 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Windows.UI.Xaml;
|
2020-03-31 19:19:02 +02:00
|
|
|
|
using ModernKeePass.Application.Common.Interfaces;
|
2018-06-13 18:58:28 +02:00
|
|
|
|
|
|
|
|
|
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
|
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.Views.UserControls
|
|
|
|
|
{
|
|
|
|
|
public sealed partial class BreadCrumbUserControl
|
|
|
|
|
{
|
|
|
|
|
public BreadCrumbUserControl()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-31 19:19:02 +02:00
|
|
|
|
public IEnumerable<IEntityVm> ItemsSource
|
2018-06-13 18:58:28 +02:00
|
|
|
|
{
|
2020-03-31 19:19:02 +02:00
|
|
|
|
get { return (IEnumerable<IEntityVm>)GetValue(ItemsSourceProperty); }
|
2018-06-13 18:58:28 +02:00
|
|
|
|
set { SetValue(ItemsSourceProperty, value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static readonly DependencyProperty ItemsSourceProperty =
|
|
|
|
|
DependencyProperty.Register(
|
|
|
|
|
"ItemsSource",
|
2020-03-31 19:19:02 +02:00
|
|
|
|
typeof(IEnumerable<IEntityVm>),
|
2018-06-13 18:58:28 +02:00
|
|
|
|
typeof(BreadCrumbUserControl),
|
2020-03-31 19:19:02 +02:00
|
|
|
|
new PropertyMetadata(new Stack<IEntityVm>(), (o, args) => { }));
|
2018-06-13 18:58:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|