Exemplo n.º 1
0
        public List <DesignablePropertyDescriptor> GetDesignProperties()
        {
            List <DesignablePropertyDescriptor> props = EditServiceHelper.GetDefaultDescriptors();

            DesignablePropertyDescriptor fillColor = new DesignablePropertyDescriptor();

            fillColor.PropertyInfo           = GetType().GetProperty("FillColor");
            fillColor.DisplayName            = "Color";
            fillColor.DisplayType            = typeof(TextBlock);
            fillColor.Editable               = true;
            fillColor.EditorType             = typeof(ComboBox);
            fillColor.SupportsStandardValues = true;
            fillColor.StandardValues         = new List <object>(new object[] { Colors.Purple, Colors.Red, Colors.Gray, Colors.Brown, Colors.Blue, Colors.Green, Colors.Orange });
            fillColor.Converter              = new DamonPayne.AGT.Design.Converters.ColorConverter();
            props.Add(fillColor);

            DesignablePropertyDescriptor softness = new DesignablePropertyDescriptor();

            softness.DisplayName  = "Softness";
            softness.Converter    = null;
            softness.DisplayType  = typeof(SoftnessVisualizer);
            softness.Editable     = true;
            softness.EditorType   = typeof(SoftnessEditor);
            softness.PropertyInfo = GetType().GetProperty("Softness");

            props.Add(softness);


            return(props);
        }
Exemplo n.º 2
0
 public List <DamonPayne.AGT.Design.Types.DesignablePropertyDescriptor> GetDesignProperties()
 {
     return(EditServiceHelper.GetDefaultDescriptors());
 }
        public List <DesignablePropertyDescriptor> GetDesignProperties()
        {
            var props = EditServiceHelper.GetDefaultDescriptors();

            return(props);
        }