Exemple #1
0
        public LiveDesignTimeProperty(DesignTimeHost <T> host, DesignTimeProperty property, Expression <Func <TValue> > liveValueProperty)
            : base(host, property)
        {
            PropertyObserver.For(host)
            .Observe(liveValueProperty.GetMemberName(), (s, e) =>
            {
                this.host.RaisePropertyChanged(this);
            });

            this.liveValueProperty = liveValueProperty;
            this.liveValueDelegate = this.liveValueProperty.Compile();
        }
Exemple #2
0
        public SimilarDesignTimeProperty(DesignTimeHost <T> host, DesignTimeProperty property, TValue value)
            : base(host, property)
        {
            this.value = value;

            //var idtl = this.value as IDesignTimeList;
            //if( idtl != null )
            //{
            //    idtl.Name = this.Name;
            //    idtl.GetPropertiesHandler = attributes =>
            //    {
            //        return TypeDescriptor.GetProperties( typeof( TValue ) );
            //    };
            //}
        }
Exemple #3
0
 public StaticDesignTimeProperty(DesignTimeHost <T> host, DesignTimeProperty property, TValue value)
     : base(host, property)
 {
     this.value = value;
 }
 protected DesignTimeProperty(DesignTimeHost <T> host, String propertyName)
     : base(typeof(T), propertyName)
 {
     this.host = host;
 }
 protected DesignTimeProperty(DesignTimeHost <T> host, DesignTimeProperty property)
     : base(typeof(T), property)
 {
     this.host = host;
 }
Exemple #6
0
 internal PropertyBuilder(DesignTimeHost <T> host)
 {
     this.host = host;
 }
Exemple #7
0
 public DynamicDesignTimeProperty(DesignTimeHost <T> host, DesignTimeProperty property, Func <CultureInfo, TValue> valueHandler)
     : base(host, property)
 {
     this.valueHandler = valueHandler;
 }
Exemple #8
0
 public UnboundedDesignTimeProperty(DesignTimeHost <T> host, String propertyName)
     : base(host, propertyName)
 {
 }