This is a migrated thread and some comments may be shown as answers.

Export with XamlFormatProvider

3 Answers 75 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Vladimir
Top achievements
Rank 1
Vladimir asked on 21 Sep 2016, 09:14 AM

Hi,  

  1.  I have Button in InlineUIContainer. After exporting with XamlFormatProvider I lose Button.Click. Can I have this to do something?
  2. Can I save CaretPosition after export? 

3 Answers, 1 is accepted

Sort by
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.
0
Vladimir
Top achievements
Rank 1
answered on 28 Sep 2016, 11:05 AM
Thank you!
Tags
RichTextBox
Asked by
Vladimir
Top achievements
Rank 1
Answers by
Boby
Telerik team
Vladimir
Top achievements
Rank 1
Share this question
or