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を使用しようとしDataWindowてIMementoServiceいます。データウィンドウには既に [OK] ボタンと [キャンセル] ボタンがありますが、[適用] ボタンはありません。呼び出してカスタムボタンとして追加する必要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) { }