static private SetIsGenerated ( |
||
obj | ||
value | bool | |
리턴 | void |
private void RebuildEditor(PropertyItem propertyItem) { ObjectContainerHelperBase objectContainerHelperBase = propertyItem.ContainerHelper as ObjectContainerHelperBase; //Re-build the editor to update this propertyItem FrameworkElement editor = objectContainerHelperBase.GenerateChildrenEditorElement(propertyItem); if (editor != null) { // Tag the editor as generated to know if we should clear it. ContainerHelperBase.SetIsGenerated(editor, true); propertyItem.Editor = editor; } }
public override void PrepareChildrenPropertyItem(PropertyItemBase propertyItem, object item) { _isPreparingItemFlag = true; base.PrepareChildrenPropertyItem(propertyItem, item); if (propertyItem.Editor == null) { FrameworkElement editor = this.GenerateChildrenEditorElement(( PropertyItem )propertyItem); if (editor != null) { // Tag the editor as generated to know if we should clear it. ContainerHelperBase.SetIsGenerated(editor, true); propertyItem.Editor = editor; } } _isPreparingItemFlag = false; }
internal void RebuildEditor() { var objectContainerHelperBase = this.ContainerHelper as ObjectContainerHelperBase; //Re-build the editor to update this propertyItem var editor = objectContainerHelperBase.GenerateChildrenEditorElement(this); if (editor != null) { // Tag the editor as generated to know if we should clear it. ContainerHelperBase.SetIsGenerated(editor, true); this.Editor = editor; //Update Source of binding and Validation of PropertyItem to update var be = this.GetBindingExpression(PropertyItem.ValueProperty); if (be != null) { be.UpdateSource(); this.SetRedInvalidBorder(be); } } }