File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 5
5
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
6
xmlns : styles =" clr-namespace:Shawn.Utils.WpfResources.Theme.Styles;assembly=Shawn.Utils.WpfResources"
7
7
xmlns : editor =" clr-namespace:_1RM.View.Editor"
8
- xmlns : model =" clr-namespace:_1RM.Service.DataSource.Model"
9
- xmlns : dao =" clr-namespace:_1RM.Service.DataSource.DAO"
10
- xmlns : attachProperty =" clr-namespace:Shawn.Utils.WpfResources.Theme.AttachProperty;assembly=Shawn.Utils.WpfResources"
11
- xmlns : controls =" clr-namespace:WpfToolkit.Controls;assembly=VirtualizingWrapPanel"
12
8
xmlns : icons =" clr-namespace:_1RM.Resources.Icons"
13
9
xmlns : s =" https://github.com/canton7/Stylet"
14
10
mc : Ignorable =" d"
17
13
SizeToContent =" WidthAndHeight"
18
14
Background =" Transparent"
19
15
AllowsTransparency =" True"
16
+ Title =" Select Icon"
20
17
d : DataContext =" {d:DesignInstance editor:IconPopupDialogViewModel}" >
21
18
<Window .Resources>
22
19
<Style TargetType =" TextBlock" BasedOn =" {StaticResource TextBlockBase}" >
Original file line number Diff line number Diff line change 7
7
xmlns : attachProperty =" clr-namespace:Shawn.Utils.WpfResources.Theme.AttachProperty;assembly=Shawn.Utils.WpfResources"
8
8
xmlns : editor =" clr-namespace:_1RM.View.Editor"
9
9
xmlns : controls =" clr-namespace:_1RM.Controls"
10
- ShowInTaskbar =" False "
10
+ ShowInTaskbar =" True "
11
11
ResizeMode =" NoResize"
12
12
WindowStyle =" None"
13
13
SizeToContent =" Height"
Original file line number Diff line number Diff line change @@ -19,7 +19,21 @@ public class PasswordPopupDialogViewModel : NotifyPropertyChangedBaseScreen
19
19
{
20
20
public bool DialogResult { get ; set ; } = false ;
21
21
22
- public string Title { get ; set ; } = "" ;
22
+ private string _title = "" ;
23
+ public string Title
24
+ {
25
+ get => _title ;
26
+ set
27
+ {
28
+ if ( SetAndNotify ( ref _title , value ) )
29
+ {
30
+ if ( View is PasswordPopupDialogView v )
31
+ {
32
+ v . Title = value ;
33
+ }
34
+ }
35
+ }
36
+ }
23
37
24
38
private string _userName = "" ;
25
39
public string UserName
@@ -91,6 +105,8 @@ protected override void OnViewLoaded()
91
105
base . OnViewLoaded ( ) ;
92
106
if ( View is PasswordPopupDialogView v )
93
107
{
108
+ v . Title = Title ;
109
+
94
110
v . TbUserName . Text = UserName ;
95
111
v . TbPwd . Password = Password ;
96
112
You can’t perform that action at this time.
0 commit comments