void ActiveSkin_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs args) { _isDirty = true; if (args.SubObject == ActiveSkin && args.PropertyName == FormSkinProperty.Name) { UpdateSkinList(); } }
private void OnTriggerVolumePropertyChanged(object sender, ChildPropertyChangedEventArgs e) { if (e.PropertyName == nameof(TriggerVolume.BlockIndex) || e.PropertyName == nameof(TriggerVolume.Name)) { var vol = e.Element as TriggerVolume; var node = sceneNode.Items.FirstOrDefault(n => (n.Tag as BoxManipulator3D).DataContext == vol); if (node != null) { scenario.Items.FirstOrDefault(i => i.Tag == vol)?.Refresh(); node.Header = vol.GetDisplayName(); } } }
private void Children_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs e) { if (IsBusy || labelValue == null || e.Element != labelValue) { return; } var temp = BlockIndex; BlockLabels[BlockIndex] = GetEntryString(BlockIndex, labelValue); IsBusy = false; //force binding to refresh blockIndex = -1; RaisePropertyChanged(nameof(BlockIndex)); blockIndex = temp; RaisePropertyChanged(nameof(BlockIndex)); }
private void OnPlacementPropertyChanged(object sender, ChildPropertyChangedEventArgs e) { if (e.PropertyName == nameof(ObjectPlacement.BlockIndex) || e.PropertyName == nameof(ObjectPlacement.PaletteIndex) || e.PropertyName == nameof(ObjectPlacement.NameIndex)) { var placement = e.Element as ObjectPlacement; var holder = PaletteHolders[placement.PaletteKey]; var index = holder.Definition.Placements.IndexOf(placement); if (index < 0) { return; } var info = holder.GetInfoForIndex(index); info.TreeItem.Header = placement.GetDisplayName(); scenario.Items.FirstOrDefault(i => i.Tag == placement)?.Refresh(); } }
public void ExecuteRouting(object sender, ChildPropertyChangedEventArgs e) { foreach (var notification in RoutedEvents) { if (!string.IsNullOrEmpty(notification.ParentPropertyName)) { if (!string.IsNullOrEmpty(notification.ChildPropertyName)) { if (e.ParentPropertyName == notification.ParentPropertyName && e.PropertyName == notification.ChildPropertyName) { notification.Execute(sender, e); } } else if (e.ParentPropertyName == notification.ParentPropertyName) { notification.Execute(sender, e); } } } }
private void LazyAddressColItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.LAZY_ADDRESS_COL, sender, e); }
void FormSkin_ChildPropertyChanged(object sender, ChildPropertyChangedEventArgs args) { InvalidateWindow(); }
private void Col1ItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.COL1, sender, e); }
private void WorkAddressChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.WORK_ADDRESS, sender, e); }
private void ChildrenItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.CHILDREN, sender, e); }
private void DateChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.DATE, sender, e); }
private void HousesLazyItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.HOUSES_LAZY, sender, e); }
private void CompLazyChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.COMP_LAZY, sender, e); }
private void LsItemChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.LS, sender, e); }
public abstract void Execute(object o, ChildPropertyChangedEventArgs args);
private void NotifyChildPropertyChangedEventHandler(string locationName, ChildPropertyChangedEventArgs args) { this.ChildPropertyChanged(new List <string> { string.Format("{0}.{1}", locationName, args.Path) }); }
private void HomeAddressPropChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.HOME_ADDRESS_PROP, sender, e); }
private void CompChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.COMP, sender, e); }
public void TestInitialize() { args = null; }
private void Handle_Item_PropertyChanged(object sender, PropertyChangedEventArgs e) { args = new ChildPropertyChangedEventArgs<Sample>(e.PropertyName, sender as Sample); }
private void P2ChildPropertyChangedEventHandler(object sender, ChildPropertyChangedEventArgs e) { NotifyChildPropertyChanged(PROPERTIES.P2, sender, e); }
private void NotifyChildPropertyChangedEventHandler( string locationName, ChildPropertyChangedEventArgs args ) { this.ChildPropertyChanged( new List<string> { string.Format( "{0}.{1}", locationName, args.Path ) } ); }