public BackgroundManagerModel()
 {
     _selectedItemProperty = new SProperty(typeof (ListItem), null);
       _selectedItemProperty.Attach(SetBackgroundImage);
       _backgroundImageProperty = new SProperty(typeof (string), string.Empty);
       SetBackgroundImage();
 }
Example #2
0
 public MySimpleModel()
 {
   // Always instantiate WProperty dependency properties in models to be data-bound from the skin
   _valueProperty = new WProperty(typeof(string), string.Empty);
 }
 protected void AddProperty(AbstractProperty property)
 {
     property.Scope = this;
     properties.Add(property);
 }
Example #4
0
 public MyWorkflowModel()
 {
   _otherValueProperty = new WProperty(typeof(string), string.Empty);
 }
 public LayoutManagerModel()
 {
     LayoutManagerSettings settings = ServiceRegistration.Get<ISettingsManager>().Load<LayoutManagerSettings>();
       _thumbnailSizeMode = new WProperty(typeof(int), settings.SelectedLayoutIndex);
 }
 protected PropertyControl( AbstractProperty property )
 {
     _property = property;
       _property.SetUp( this );
 }
 public ReadOnlyProperty(AbstractProperty inheritedProperty)
     : base(inheritedProperty)
 {
     this.inheritedProperty = inheritedProperty;
 }
Example #8
0
		/// <summary>
		/// 将当前的修改标识填充到toProp的BitSet�?
		/// </summary>
		/// <param name="toProp"> </param>
		/// <returns> false,如果当前的属性没有修�?true,当前的属性有修改,并且已经将对应的值设置到toBitSet�? </returns>
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET:
//ORIGINAL LINE: public boolean fillChangedBit(final AbstractProperty toProp)
		public virtual bool fillChangedBit(AbstractProperty toProp)
		{
			return fillChangedBit(toProp.bitSet);
		}
 private void SetBackgroundImage(AbstractProperty property, object value)
 {
     SetBackgroundImage();
 }