protected override void OnPropertyValueChanged(NValueChangeData data) { base.OnPropertyValueChanged(data); if (data.Property == FillProperty) { InvalidateCanvases(); } }
protected override void OnPropertyValueChanged(NValueChangeData data) { base.OnPropertyValueChanged(data); if ((m_Table != null) && (data.Property == FillProperty)) { INIterator <NNode> iterator = m_Table.GetSubtreeIterator(ENTreeTraversalOrder.DepthFirstPreOrder, new NInstanceOfSchemaFilter(NCanvas.NCanvasSchema)); while (iterator.MoveNext()) { ((NCanvas)iterator.Current).InvalidateDisplay(); } } }
/// <summary> /// Called when the ContentType property has changed. /// </summary> /// <param name="data"></param> private void OnContentTypeChanged(NValueChangeData data) { switch ((ENListBoxContentType)data.NewValue) { case ENListBoxContentType.ImageCheckBoxAndTitle: FillWithImageCheckBoxAndTitle(); break; case ENListBoxContentType.ImageTitleAndDetails: FillWithImageTitleAndDetails(); break; default: throw new Exception("New ENListBoxContentType?"); } }