diff --git a/src/client/spark/Modules/Bookmarks/BookmarkShellModule.cs b/src/client/spark/Modules/Bookmarks/BookmarkShellModule.cs index 8e0563f26..ced47e89a 100644 --- a/src/client/spark/Modules/Bookmarks/BookmarkShellModule.cs +++ b/src/client/spark/Modules/Bookmarks/BookmarkShellModule.cs @@ -34,7 +34,7 @@ namespace bts.ui { public ImageSource icon => Icons.Bookmarks; - public string name => "Bookmarks"; + public string name => "My Windows"; public int priority => 35; diff --git a/src/client/spark/view/Shell/TabDocument.xaml b/src/client/spark/view/Shell/TabDocument.xaml index 64f2833a1..58d267d3e 100644 --- a/src/client/spark/view/Shell/TabDocument.xaml +++ b/src/client/spark/view/Shell/TabDocument.xaml @@ -4,6 +4,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:ui="clr-namespace:mbts.ui" + xmlns:convert="clr-namespace:mbts.ui.converters" mc:Ignorable="d" d:DesignWidth="125" Header="{Binding}" Content="{Binding AppContent}" Background="#e6e6e6"> @@ -30,6 +31,7 @@ + @@ -48,7 +50,12 @@ - + + + + + + @@ -59,6 +66,8 @@ + new DelegateCommand(begin_rename); + public ICommand unrename_command => new DelegateCommand(remove_custom); private void begin_rename() { if (string.IsNullOrEmpty(TitleOverride)) { @@ -81,8 +82,14 @@ namespace mbts.ui.shell _edit_mode.set(true); } + private void remove_custom() { + TitleOverride = string.Empty; + //begin_close(this); + } + public string OwnerName { get { return _model.Owner == null ? "" : _model.Owner.name; } } public ICommand CloseCommand { get { return new DelegateCommand(begin_close); } } + public double InitialWidth { get; private set; } public double InitialHeight { get; private set; }