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(); }
protected void RegisterChildCanvasPosition(AbstractProperty childCanvasPositionProperty) { childCanvasPositionProperty.Attach(OnChildCanvasPositionChanged); }
private void OnCurrentSubItemChanged(AbstractProperty property, object oldValue) { //Notify listeners that the current item has changed HomeMenuMessaging.SendCurrentItemChangeMessage(CurrentSubItem); }
void OnVisualChanged(AbstractProperty prop, object oldValue) { PrepareVisual(); }
void OnShareNameChanged(AbstractProperty shareName, object oldValue) { UpdateIsShareNameValid(); }
void Init() { _keyFramesProperty = new SProperty(typeof(IList <ColorKeyFrame>), new List <ColorKeyFrame>()); }
public LayoutManagerModel() { LayoutManagerSettings settings = ServiceRegistration.Get<ISettingsManager>().Load<LayoutManagerSettings>(); _thumbnailSizeMode = new WProperty(typeof(int), settings.SelectedLayoutIndex); }
void Init() { _radiusXProperty = new SProperty(typeof(double), 0.0); _radiusYProperty = new SProperty(typeof(double), 0.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); }
public ReadOnlyProperty(AbstractProperty inheritedProperty) : base(inheritedProperty) { this.inheritedProperty = inheritedProperty; }
/// <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); }
protected void OnSourceChanged(AbstractProperty prop, object oldValue) { FreeData(); FireChanged(); }
protected override void OnEffectChanged(AbstractProperty prop, object oldValue) { base.OnEffectChanged(prop, oldValue); _lastImageContext.ShaderEffect = Effect; }
void OnGroupNameChanged(AbstractProperty property, object oldValue) { InitializeGroup(); }
protected override void OnVerticalTextureAlignmentChanged(AbstractProperty property, object oldValue) { base.OnVerticalTextureAlignmentChanged(property, oldValue); _lastImageContext.VerticalTextureAlignment = VerticalTextureAlignment; }
protected void AddProperty(AbstractProperty property) { property.Scope = this; properties.Add(property); }
void Init() { _transitionProperty = new SProperty(typeof(string), null); _transitionDurationProperty = new SProperty(typeof(double), 2.0); _transitionInOutProperty = new SProperty(typeof(bool), true); }
void OnTreePathSelectionChanged(AbstractProperty property, object oldValue) { UpdateChoosenResourcePath(); UpdateIsChoosenPathValid(); }
void Init() { _targetTypeProperty = new SProperty(typeof(Type), null); _triggersProperty = new SProperty(typeof(TriggerCollection), new TriggerCollection()); _resources = new ResourceDictionary(); }
void OnExpandedChanged(AbstractProperty property, object oldvalue) { bool expanded = (bool)property.GetValue(); _parent.RefreshOrClearSubPathItems(_directoryItem, !expanded); }
void OnChoosenResourcePathStrChanged(AbstractProperty resourceProviderURL, object oldValue) { ChoosenResourcePath = ExpandResourcePathFromString(ChoosenResourcePathStr); }
void Init() { _visualProperty = new SProperty(typeof(FrameworkElement), null); _autoLayoutContentProperty = new SProperty(typeof(bool), true); }
protected void Init() { _bouncesProperty = new SProperty(typeof(int), 3); _bouncinessProperty = new SProperty(typeof(double), 2.0); }
private void OnChildCanvasPositionChanged(AbstractProperty property, object oldvalue) { InvalidateLayout(true, true); }
public Star() { _valueProperty = new SProperty(typeof(Double), 0d); }
protected void OnSelectionChanged(AbstractProperty property, object oldValue) { _selectedIndex = FindSelectedIndex(); }
void OnScrollDisabledChanged(AbstractProperty property, object oldValue) { InvalidateLayout(true, false); }
void Init() { _keyTimeProperty = new SProperty(typeof(TimeSpan), new TimeSpan(0, 0, 0)); _keyValueProperty = new SProperty(typeof(T), null); // Will be initialized in subclasses }
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); }
void OnResourceProviderItemSelectionChanged(AbstractProperty shareItem, object oldValue) { UpdateIsResourceProviderSelected(); }
protected PropertyControl( AbstractProperty property ) { _property = property; _property.SetUp( this ); }
void OnChoosenResourcePathStrChanged(AbstractProperty resourceProviderURL, object oldValue) { ExpandResourcePath_Async(); }
public MyWorkflowModel() { _otherValueProperty = new WProperty(typeof(string), string.Empty); }
void OnChoosenResourcePathChanged(AbstractProperty resourceProviderURL, object oldValue) { // Don't update ChoosenResourcePathStr - the string is the master and can be written in several formats UpdateIsChoosenPathValid(); UpdateChoosenPathDisplayName(); }
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(); }