阅读背景:

还原对象是用户在WPF中单击“取消”

来源:互联网 

I have a Window that serves as a dialog in a WPF application. This dialog has an "OK" and a "Cancel" button. I am setting the DataContext of the Window to an instance of an object in my application. The user can change the values of the properties of the object within the Window. If a user clicks "Cancel", I want to revert the property values back to their original values. Is there an easy way to do this in WPF?I have a Window that serves as a dialog in a WP




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: