aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedControl.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-25 11:35:03 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-25 11:35:03 +0100
commitdd6682973fa16921b7ebaf5faa416290c3211c63 (patch)
tree5c6b3d098165a9c5da0e5a7a8944423bcaa90294 /src/GraphicObjects/TemplatedControl.cs
parent42fcd3657d6425005ed7f429fe9b73cfb6fcf1c6 (diff)
replace StyleAttribute=>DefaultStyle
Diffstat (limited to 'src/GraphicObjects/TemplatedControl.cs')
-rw-r--r--src/GraphicObjects/TemplatedControl.cs16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/GraphicObjects/TemplatedControl.cs b/src/GraphicObjects/TemplatedControl.cs
index c1c48fc7..f09d10aa 100644
--- a/src/GraphicObjects/TemplatedControl.cs
+++ b/src/GraphicObjects/TemplatedControl.cs
@@ -28,7 +28,7 @@ using System.Diagnostics;
namespace Crow
{
-// [AttributeUsage(AttributeTargets.Class)]
+ [AttributeUsage(AttributeTargets.Class)]
public class TemplateAttribute : Attribute
{
public string Path = "";
@@ -38,14 +38,9 @@ namespace Crow
}
}
[AttributeUsage(AttributeTargets.Class)]
- public class StyleAttribute : Attribute
+ public class DefaultStyle : TemplateAttribute
{
- public string PropertyName = "";
- public object DefaultValue = null;
- public StyleAttribute(string _property, object _defValue){
- PropertyName = _property;
- DefaultValue = _defValue;
- }
+ public DefaultStyle(string path) : base(path){}
}
[AttributeUsage(AttributeTargets.Class)]
public class DefaultTemplate : TemplateAttribute
@@ -53,11 +48,6 @@ namespace Crow
public DefaultTemplate(string path) : base(path){}
}
[AttributeUsage(AttributeTargets.Class)]
- public class DefaultOverlayTemplate : TemplateAttribute
- {
- public DefaultOverlayTemplate(string path) : base(path){}
- }
- [AttributeUsage(AttributeTargets.Class)]
public class DefaultItemTemplate : TemplateAttribute
{
public DefaultItemTemplate(string path) : base(path){}