mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
WIP Breadcrumb
Breadcrumb is now a working User Control (removal of the Templated Control) AssemblyInfo updated Some code cleanup
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
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) => { }));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user