-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/auto watermark #2722
Feature/auto watermark #2722
Changes from 6 commits
1348758
705d8b1
148116a
c46a7e4
d4222be
165286f
28a2f1f
df52d98
d765597
df4eb09
eb3f0e1
c670038
56d7da8
3287af5
1b1bd81
516d252
3319d95
3019f75
f281341
ac0eb8e
681752e
1c02520
210841a
eb7176f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
|
||
namespace MahApps.Metro.Controls.Helper | ||
{ | ||
#if NET4_5 | ||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)] | ||
public class WatermarkAttribute : Attribute | ||
{ | ||
public WatermarkAttribute(string caption) | ||
{ | ||
this.Caption = caption; | ||
} | ||
|
||
public string Caption { get; set; } | ||
} | ||
#endif | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is it necessary to introduce a new attribute? Is the Display attribute too bad? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, of course, it is not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible memory leak...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the event subscription? Shouldn't it be enough to unsubscribe directly after the event was raised the first time?