aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.CodeGeneration/Templates/DpProperty.cshtml
blob: aa0b578647d4696fc1b94f31d9a18d4819e04ec6 (plain)
1
2
3
4
5
6
7
8
        @(Model.GetAttributesString())
        public @(Model.Type) @(Model.Name)
        {
            get { return (@(Model.Type))GetValue(@(Model.Name)Property); }
            set { SetValue(@(Model.Name)Property, value); }
        }
        public static readonly DependencyProperty @(Model.Name)Property =
            DependencyProperty.Register("@(Model.Name)", typeof(@(Model.Type)), typeof(@(Model.OwnerClass)), new PropertyMetadata(@(Model.DefaultValue) @(Model.PropertyChangedCallback != null ? ", " + Model.PropertyChangedCallback : "")));