mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
56 lines
1.8 KiB
C#
56 lines
1.8 KiB
C#
using System.Collections.Generic;
|
|
using Windows.UI.Xaml;
|
|
using Windows.UI.Xaml.Controls;
|
|
using ModernKeePass.Interfaces;
|
|
|
|
// The Templated Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234235
|
|
|
|
namespace ModernKeePass.Controls
|
|
{
|
|
public class Breadcrumb : Control
|
|
{
|
|
public Breadcrumb()
|
|
{
|
|
DefaultStyleKey = typeof(Breadcrumb);
|
|
}
|
|
public string TargetPage
|
|
{
|
|
get { return (string)GetValue(TargetPageProperty); }
|
|
set { SetValue(TargetPageProperty, value); }
|
|
}
|
|
|
|
public static readonly DependencyProperty TargetPageProperty =
|
|
DependencyProperty.Register(
|
|
"TargetPage",
|
|
typeof(string),
|
|
typeof(Breadcrumb),
|
|
new PropertyMetadata(string.Empty, (o, args) => { }));
|
|
|
|
public Symbol SeparatorSymbol
|
|
{
|
|
get { return (Symbol)GetValue(SeparatorSymbolProperty); }
|
|
set { SetValue(SeparatorSymbolProperty, value); }
|
|
}
|
|
|
|
public static readonly DependencyProperty SeparatorSymbolProperty =
|
|
DependencyProperty.Register(
|
|
"SeparatorSymbol",
|
|
typeof(Symbol),
|
|
typeof(Breadcrumb),
|
|
new PropertyMetadata(Symbol.Forward, (o, args) => { }));
|
|
|
|
public IEnumerable<IPwEntity> PathItems
|
|
{
|
|
get { return (IEnumerable<IPwEntity>)GetValue(PathItemsProperty); }
|
|
set { SetValue(PathItemsProperty, value); }
|
|
}
|
|
|
|
public static readonly DependencyProperty PathItemsProperty =
|
|
DependencyProperty.Register(
|
|
"PathItems",
|
|
typeof(IEnumerable<>),
|
|
typeof(Breadcrumb),
|
|
new PropertyMetadata(null, (o, args) => { }));
|
|
}
|
|
}
|