Reputation: 335
I am reimplementing options dialog in order to support cancellation of changes. I am trying to use Catel's DataWindow
with IMementoService
for that. Noticed that DataWindow already has OK and Cancel buttons but not Apply. Just wonder whether I should add it as a custom button by calling AddCustomButton
or there is some API part that I missed.
Upvotes: 0
Views: 694
Reputation: 5724
You can specify the buttons via the DataWindowMode enum which can be found here:
So:
public MyDataWindow()
: base(DataWindowMode.OkCancelApply)
{
}
Upvotes: 4