1
- namespace GongSolutions . Wpf . DragDrop ;
2
-
3
- using System . ComponentModel ;
1
+ using System . ComponentModel ;
4
2
using System . Runtime . CompilerServices ;
5
3
using JetBrains . Annotations ;
6
4
7
- /// <summary>
8
- /// Data presented in drop hint adorner.
9
- /// </summary>
10
- public class DropHintData : INotifyPropertyChanged
5
+ namespace GongSolutions . Wpf . DragDrop
11
6
{
12
- private DropHintState hintState ;
13
- private string hintText ;
14
-
15
- public DropHintData ( DropHintState hintState , string hintText )
16
- {
17
- this . HintState = hintState ;
18
- this . HintText = hintText ;
19
- }
20
-
21
7
/// <summary>
22
- /// The hint text to display to the user. See <see cref="IDropInfo.DropHintText"/>
23
- /// and <see cref="IDropHintInfo.DropHintText"/>.
8
+ /// Data presented in drop hint adorner.
24
9
/// </summary>
25
- public string HintText
10
+ public class DropHintData : INotifyPropertyChanged
26
11
{
27
- get => this . hintText ;
28
- set
12
+ private DropHintState hintState ;
13
+ private string hintText ;
14
+
15
+ public DropHintData ( DropHintState hintState , string hintText )
29
16
{
30
- if ( value == this . hintText ) return ;
31
- this . hintText = value ;
32
- this . OnPropertyChanged ( ) ;
17
+ this . HintState = hintState ;
18
+ this . HintText = hintText ;
33
19
}
34
- }
35
20
36
- /// <summary>
37
- /// The hint state to display different colors for hints. See <see cref="IDropInfo.DropTargetHintState"/>
38
- /// and <see cref="IDropHintInfo.DropTargetHintState"/>.
39
- /// </summary>
40
- public DropHintState HintState
41
- {
42
- get => this . hintState ;
43
- set
21
+ /// <summary>
22
+ /// The hint text to display to the user. See <see cref="IDropInfo.DropHintText"/>
23
+ /// and <see cref="IDropHintInfo.DropHintText"/>.
24
+ /// </summary>
25
+ public string HintText
44
26
{
45
- if ( value == this . hintState ) return ;
46
- this . hintState = value ;
47
- this . OnPropertyChanged ( ) ;
27
+ get => this . hintText ;
28
+ set
29
+ {
30
+ if ( value == this . hintText ) return ;
31
+ this . hintText = value ;
32
+ this . OnPropertyChanged ( ) ;
33
+ }
34
+ }
35
+
36
+ /// <summary>
37
+ /// The hint state to display different colors for hints. See <see cref="IDropInfo.DropTargetHintState"/>
38
+ /// and <see cref="IDropHintInfo.DropTargetHintState"/>.
39
+ /// </summary>
40
+ public DropHintState HintState
41
+ {
42
+ get => this . hintState ;
43
+ set
44
+ {
45
+ if ( value == this . hintState ) return ;
46
+ this . hintState = value ;
47
+ this . OnPropertyChanged ( ) ;
48
+ }
48
49
}
49
- }
50
50
51
- public event PropertyChangedEventHandler PropertyChanged ;
51
+ public event PropertyChangedEventHandler PropertyChanged ;
52
52
53
- [ NotifyPropertyChangedInvocator ]
54
- protected virtual void OnPropertyChanged ( [ CallerMemberName ] string propertyName = null )
55
- {
56
- this . PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
53
+ [ NotifyPropertyChangedInvocator ]
54
+ protected virtual void OnPropertyChanged ( [ CallerMemberName ] string propertyName = null )
55
+ {
56
+ this . PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
57
+ }
57
58
}
58
59
}
0 commit comments