xaf-模型更新限制

Limitations

The XAF UI does not reflect changes made in the Application Model after control creation. Customize the Application Model before the control used to display a target UI element is created and loaded. Access the control directly to customize a UI element after the control’s creation. Refer to the following topic for more information: How to: Access the Grid Component in a List View.

You can also recreate the control with the latest Application Model changes as described in the following topic: Apply Application Model Changes to the Current View Immediately.

【理解】

上面介绍了XAF 在处理控件更新时的限制。

即一旦控件被创建,模型的变更不会自动反映在 UI 中。

如果需要反映模型变更,应该在控件创建前进行调整,或通过直接访问控件或者重新创建控件来实现变更的应用。

posted @ 2024-09-11 13:59  lishidefengchen  阅读(7)  评论(0编辑  收藏  举报