Skip to content

Commit

Permalink
removed Icon property
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlagunas committed Mar 1, 2019
1 parent a6c8e84 commit e8effd4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Window x:Class="Prism.Services.Dialogs.DefaultDialogs.DialogWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="{Binding Title}" Icon="{Binding IconSource}"
Title="{Binding Title}"
WindowStartupLocation="CenterOwner">
<Window.Style>
<Style TargetType="{x:Type Window}" >
Expand Down
7 changes: 0 additions & 7 deletions Source/Wpf/Prism.Wpf/Services/Dialogs/DialogViewModelBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ public class DialogViewModelBase : BindableBase, IDialogAware
public DelegateCommand<string> CloseDialogCommand =>
_closeDialogCommand ?? (_closeDialogCommand = new DelegateCommand<string>(CloseDialog));

private string _iconSource;
public string IconSource
{
get { return _iconSource; }
set { SetProperty(ref _iconSource, value); }
}

private string _title;
public string Title
{
Expand Down
5 changes: 0 additions & 5 deletions Source/Wpf/Prism.Wpf/Services/Dialogs/IDialogAware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ public interface IDialogAware
/// <returns>True: close the dialog; False: the dialog will not close</returns>
bool CanCloseDialog();

/// <summary>
/// The path to the dialog icon that will show in the window title bar.
/// </summary>
string IconSource { get; set; }

/// <summary>
/// Called when the dialog is closed.
/// </summary>
Expand Down

0 comments on commit e8effd4

Please sign in to comment.