Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在重新实现选项对话框以支持取消更改。我正在尝试使用Catel's DataWindowwith IMementoService。注意到 DataWindow 已经有 OK 和 Cancel 按钮,但没有 Apply。只是想知道我是否应该通过调用将它添加为自定义按钮,AddCustomButton或者我错过了一些 API 部分。
DataWindow
IMementoService
AddCustomButton
您可以通过 DataWindowMode 枚举指定按钮,该枚举可在此处找到:
https://github.com/Catel/Catel/blob/ff35f69386ef9aeed83c28d9f7e363d246305a17/src/Catel.MVVM/Catel.MVVM.NET40/Windows/Windows/DataWindow/DataWindow.cs#L34
所以:
public MyDataWindow() : base(DataWindowMode.OkCancelApply) { }