public BackgroundManagerModel()
 {
     _selectedItemProperty = new SProperty(typeof (ListItem), null);
       _selectedItemProperty.Attach(SetBackgroundImage);
       _backgroundImageProperty = new SProperty(typeof (string), string.Empty);
       SetBackgroundImage();
 }
 private void ProgramSearchTextChanged(AbstractProperty property, object oldvalue)
 {
     _ = UpdatePrograms();
 }
Ejemplo n.º 3
0
 protected void RegisterChildCanvasPosition(AbstractProperty childCanvasPositionProperty)
 {
     childCanvasPositionProperty.Attach(OnChildCanvasPositionChanged);
 }
Ejemplo n.º 4
0
 private void OnCurrentSubItemChanged(AbstractProperty property, object oldValue)
 {
     //Notify listeners that the current item has changed
     HomeMenuMessaging.SendCurrentItemChangeMessage(CurrentSubItem);
 }
Ejemplo n.º 5
0
 void OnVisualChanged(AbstractProperty prop, object oldValue)
 {
     PrepareVisual();
 }
Ejemplo n.º 6
0
 void OnShareNameChanged(AbstractProperty shareName, object oldValue)
 {
     UpdateIsShareNameValid();
 }
 void Init()
 {
     _keyFramesProperty = new SProperty(typeof(IList <ColorKeyFrame>), new List <ColorKeyFrame>());
 }
Ejemplo n.º 8
0
 public LayoutManagerModel()
 {
     LayoutManagerSettings settings = ServiceRegistration.Get<ISettingsManager>().Load<LayoutManagerSettings>();
       _thumbnailSizeMode = new WProperty(typeof(int), settings.SelectedLayoutIndex);
 }
Ejemplo n.º 9
0
 void Init()
 {
     _radiusXProperty = new SProperty(typeof(double), 0.0);
     _radiusYProperty = new SProperty(typeof(double), 0.0);
 }
Ejemplo n.º 10
0
 public VideoPlayerModel() : base(Consts.WF_STATE_ID_CURRENTLY_PLAYING_VIDEO, Consts.WF_STATE_ID_FULLSCREEN_VIDEO)
 {
     _isOSDVisibleProperty = new WProperty(typeof(bool), false);
     _isPipProperty        = new WProperty(typeof(bool), false);
     // Don't StartTimer here, since that will be done in method EnterModelContext
 }
 public ServerNetworkCredentialSetupModel()
 {
     _networkPasswordProperty = new SProperty(typeof(string), string.Empty);
     _networkUserNameProperty = new SProperty(typeof(string), string.Empty);
     _useCredentialsProperty  = new SProperty(typeof(bool), false);
 }
Ejemplo n.º 12
0
 public ReadOnlyProperty(AbstractProperty inheritedProperty)
     : base(inheritedProperty)
 {
     this.inheritedProperty = inheritedProperty;
 }
Ejemplo n.º 13
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);
		}
Ejemplo n.º 14
0
 protected void OnSourceChanged(AbstractProperty prop, object oldValue)
 {
     FreeData();
     FireChanged();
 }
Ejemplo n.º 15
0
 protected override void OnEffectChanged(AbstractProperty prop, object oldValue)
 {
     base.OnEffectChanged(prop, oldValue);
     _lastImageContext.ShaderEffect = Effect;
 }
Ejemplo n.º 16
0
 void OnGroupNameChanged(AbstractProperty property, object oldValue)
 {
     InitializeGroup();
 }
Ejemplo n.º 17
0
 protected override void OnVerticalTextureAlignmentChanged(AbstractProperty property, object oldValue)
 {
     base.OnVerticalTextureAlignmentChanged(property, oldValue);
     _lastImageContext.VerticalTextureAlignment = VerticalTextureAlignment;
 }
Ejemplo n.º 18
0
 protected void AddProperty(AbstractProperty property)
 {
     property.Scope = this;
     properties.Add(property);
 }
Ejemplo n.º 19
0
 void Init()
 {
     _transitionProperty         = new SProperty(typeof(string), null);
     _transitionDurationProperty = new SProperty(typeof(double), 2.0);
     _transitionInOutProperty    = new SProperty(typeof(bool), true);
 }
Ejemplo n.º 20
0
 void OnTreePathSelectionChanged(AbstractProperty property, object oldValue)
 {
     UpdateChoosenResourcePath();
     UpdateIsChoosenPathValid();
 }
Ejemplo n.º 21
0
 void Init()
 {
     _targetTypeProperty = new SProperty(typeof(Type), null);
     _triggersProperty   = new SProperty(typeof(TriggerCollection), new TriggerCollection());
     _resources          = new ResourceDictionary();
 }
Ejemplo n.º 22
0
            void OnExpandedChanged(AbstractProperty property, object oldvalue)
            {
                bool expanded = (bool)property.GetValue();

                _parent.RefreshOrClearSubPathItems(_directoryItem, !expanded);
            }
Ejemplo n.º 23
0
 void OnChoosenResourcePathStrChanged(AbstractProperty resourceProviderURL, object oldValue)
 {
     ChoosenResourcePath = ExpandResourcePathFromString(ChoosenResourcePathStr);
 }
Ejemplo n.º 24
0
 void Init()
 {
     _visualProperty            = new SProperty(typeof(FrameworkElement), null);
     _autoLayoutContentProperty = new SProperty(typeof(bool), true);
 }
Ejemplo n.º 25
0
 protected void Init()
 {
     _bouncesProperty    = new SProperty(typeof(int), 3);
     _bouncinessProperty = new SProperty(typeof(double), 2.0);
 }
Ejemplo n.º 26
0
 private void OnChildCanvasPositionChanged(AbstractProperty property, object oldvalue)
 {
     InvalidateLayout(true, true);
 }
Ejemplo n.º 27
0
 public Star()
 {
     _valueProperty = new SProperty(typeof(Double), 0d);
 }
 protected void OnSelectionChanged(AbstractProperty property, object oldValue)
 {
     _selectedIndex = FindSelectedIndex();
 }
Ejemplo n.º 29
0
 void OnScrollDisabledChanged(AbstractProperty property, object oldValue)
 {
     InvalidateLayout(true, false);
 }
Ejemplo n.º 30
0
 void Init()
 {
     _keyTimeProperty  = new SProperty(typeof(TimeSpan), new TimeSpan(0, 0, 0));
     _keyValueProperty = new SProperty(typeof(T), null); // Will be initialized in subclasses
 }
Ejemplo n.º 31
0
 void Init()
 {
     _autoCenteringProperty        = new SProperty(typeof(ScrollAutoCenteringEnum), ScrollAutoCenteringEnum.None);
     _horizontalFitToSpaceProperty = new SProperty(typeof(bool), false);
     _verticalFitToSpaceProperty   = new SProperty(typeof(bool), false);
 }
 private void MediaItemChanged(AbstractProperty property, object oldvalue)
 {
     Init(MediaItem);
 }
Ejemplo n.º 33
0
 void OnResourceProviderItemSelectionChanged(AbstractProperty shareItem, object oldValue)
 {
     UpdateIsResourceProviderSelected();
 }
Ejemplo n.º 34
0
 protected PropertyControl( AbstractProperty property )
 {
     _property = property;
       _property.SetUp( this );
 }
Ejemplo n.º 35
0
 void OnChoosenResourcePathStrChanged(AbstractProperty resourceProviderURL, object oldValue)
 {
     ExpandResourcePath_Async();
 }
Ejemplo n.º 36
0
 public MyWorkflowModel()
 {
   _otherValueProperty = new WProperty(typeof(string), string.Empty);
 }
Ejemplo n.º 37
0
 void OnChoosenResourcePathChanged(AbstractProperty resourceProviderURL, object oldValue)
 {
     // Don't update ChoosenResourcePathStr - the string is the master and can be written in several formats
     UpdateIsChoosenPathValid();
     UpdateChoosenPathDisplayName();
 }
Ejemplo n.º 38
0
 public MySimpleModel()
 {
   // Always instantiate WProperty dependency properties in models to be data-bound from the skin
   _valueProperty = new WProperty(typeof(string), string.Empty);
 }
 private void SetBackgroundImage(AbstractProperty property, object value)
 {
     SetBackgroundImage();
 }