Export with XamlFormatProvider

4 posts, 0 answers
  1. Vladimir
    Vladimir avatar
    3 posts
    Member since:
    Jul 2016

    Posted 21 Sep Link to this post

    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? 
  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 26 Sep Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Boby
    Admin
    Boby avatar
    595 posts

    Posted 26 Sep Link to this post

    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.
  5. Vladimir
    Vladimir avatar
    3 posts
    Member since:
    Jul 2016

    Posted 28 Sep Link to this post

    Thank you!
Back to Top