2018-06-13 18:58:28 +02:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Windows.UI.Xaml;
|
|
|
|
|
using ModernKeePass.Interfaces;
|
|
|
|
|
|
|
|
|
|
// 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-26 12:25:22 +01:00
|
|
|
|
public IEnumerable<IVmEntity> ItemsSource
|
2018-06-13 18:58:28 +02:00
|
|
|
|
{
|
2020-03-26 12:25:22 +01:00
|
|
|
|
get { return (IEnumerable<IVmEntity>)GetValue(ItemsSourceProperty); }
|
2018-06-13 18:58:28 +02:00
|
|
|
|
set { SetValue(ItemsSourceProperty, value); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static readonly DependencyProperty ItemsSourceProperty =
|
|
|
|
|
DependencyProperty.Register(
|
|
|
|
|
"ItemsSource",
|
2020-03-26 12:25:22 +01:00
|
|
|
|
typeof(IEnumerable<IVmEntity>),
|
2018-06-13 18:58:28 +02:00
|
|
|
|
typeof(BreadCrumbUserControl),
|
2020-03-26 12:25:22 +01:00
|
|
|
|
new PropertyMetadata(new Stack<IVmEntity>(), (o, args) => { }));
|
2018-06-13 18:58:28 +02:00
|
|
|
|
}
|
|
|
|
|
}
|