I am having trouble creating a reusable xamdialog . As i am fairly new to wpf as well as infragistics controls. I need to make a dialog that appears before i allow a user to delete data. I just need to show the dialog and then continue processing when the user clicks ok. I have to do this in a few different areas and would like to reuse the delete dialog i create. Any help would be appreciated.
Thanks in Advance,
Pete
Hello Pete,
I am very glad that my reply was helpful for you. Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
thank you , i think i now i have a better understanding of how it works and what i need to do
Thank you for the clarification. Our XamDialogWindow is actually a control, in order to be shown the XamDialogWindow it should be added to a container, for example a Grid. In order to use the same instance of the XamDialogWindow in multiple widows you should add it in more than one containers, which will cause an exception to be thrown. I can suggest creating a style for the XamDialogWindow in the Resources of the App.xaml, so the style will be available in all the windows in your project, in order to have the same appearance of the different XamDialogWindows.
If you have any further question on the matter please do not hesitate to ask.
i wish to use it on more than one window.
I have been reading through your post and I will need some more information on the matter. Would you please clarify what you are referring to as different areas, is this regarding one window of wish to display one XamDialogWindow in different Windows in you application?
Looking forward to hearing from you.
Infragistics, Inc.