-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f38f45
commit 825f166
Showing
30 changed files
with
549 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,4 +244,6 @@ project.lock.json | |
|
||
Src/Samples/ | ||
BuildManagedSDK.py | ||
Samples.sln | ||
Samples.sln | ||
|
||
Src/NoesisApp/Controls/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
|
||
namespace Noesis | ||
{ | ||
/// <summary> | ||
/// This attribute is applied to the class and determine the target type which should be used for | ||
/// the properties of type Style. The definition inherits to the subclasses or the derived class | ||
/// can redefine the target type for the property already defined in the base class. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | ||
public sealed class StyleTypedPropertyAttribute : Attribute | ||
{ | ||
/// <summary>Default constructor</summary> | ||
public StyleTypedPropertyAttribute() { } | ||
|
||
/// <summary> | ||
/// The property name of type Style | ||
/// </summary> | ||
public string Property | ||
{ | ||
get { return _property; } | ||
set { _property = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Target type of the Style that should be used for the Property | ||
/// </summary> | ||
public Type StyleTargetType | ||
{ | ||
get { return _styleTargetType; } | ||
set { _styleTargetType = value; } | ||
} | ||
|
||
private string _property; | ||
private Type _styleTargetType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
|
||
namespace Noesis | ||
{ | ||
/// <summary> | ||
/// Style authors should be able to identify the part type used for styling the specific class. | ||
/// The part is usually required in the style and should have a specific predefined name. | ||
/// </summary> | ||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | ||
public sealed class TemplatePartAttribute : Attribute | ||
{ | ||
/// <summary>Default constructor</summary> | ||
public TemplatePartAttribute() { } | ||
|
||
/// <summary> | ||
/// Part name used by the class to indentify required element in the style | ||
/// </summary> | ||
public string Name | ||
{ | ||
get { return _name; } | ||
set { _name = value; } | ||
} | ||
|
||
/// <summary> | ||
/// Type of the element that should be used as a part with specified name | ||
/// </summary> | ||
public Type Type | ||
{ | ||
get { return _type; } | ||
set { _type = value; } | ||
} | ||
|
||
private string _name; | ||
private Type _type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.