using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.CodeGeneration
{
///
/// Represents a dependency property code object.
///
///
public class DpProperty : CodeObject
{
///
/// Gets or sets the property name.
///
public String Name { get; set; }
///
/// Gets or sets the property type.
///
public String Type { get; set; }
///
/// Gets or sets the default value.
///
public String DefaultValue { get; set; }
///
/// Gets or sets the owner class.
///
public String OwnerClass { get; set; }
///
/// Gets or sets the property changed callback.
///
public String PropertyChangedCallback { get; set; }
///
/// Initializes a new instance of the class.
///
public DpProperty()
: base()
{
Name = "MyProperty";
Type = "int";
}
///
/// Initializes a new instance of the class.
///
/// The name.
/// The type.
/// The default value.
/// The owner class.
public DpProperty(String name, String type, String defaultValue, String ownerClass)
: this()
{
Name = name;
Type = type;
DefaultValue = defaultValue;
OwnerClass = ownerClass;
}
///
/// Initializes a new instance of the class.
///
/// The name.
/// The type.
/// The default value.
/// The owner class.
/// The property changed callback.
public DpProperty(String name, String type, String defaultValue, String ownerClass, String propertyChangedCallback)
: this(name, type, defaultValue, ownerClass)
{
PropertyChangedCallback = propertyChangedCallback;
}
}
}