I have Button in InlineUIContainer. After exporting with XamlFormatProvider I lose Button.Click. Can I have this to do something?
Can I save CaretPosition after export?
3 Answers, 1 is accepted
0
Boby
Telerik team
answered on 26 Sep 2016, 08:45 AM
Hello Vladimir,
Events are not serialized to XAML by design. You can customize the process additionally using the XamlFormatProvider.ImportSettings.InlineUIContainerImported and XamlFormatProvider.ExportSettings.InlineUIContainerExporting events. Convenient way to mark document elements is using the Tag property (this way you can distinguish the separate instances on import).
There is currently no built-in way to preserve/restore the document position, as it's bound to specific document instance.
Regards,
Boby
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Boby
Telerik team
answered on 26 Sep 2016, 11:12 AM
Hi Vladimir,
Actually for restoring DocumentPosition, you can use the code from this forum thread.
Regards,
Boby
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.