Note that there are some explanatory texts on larger screens.

plurals
  1. PO'Collection property 'System.Windows.Documents.ListItem'.'SiblingListItems' is null. When I am loading xaml using Xamlservices.Load()
    primarykey
    data
    text
    <p>I have an Xaml file which contains Flow document &amp; List Item inside that Xaml File.<br> here is my code,</p> <pre><code> xmlns:p="http://schemas.microsoft.com/winfx/2006/xaml/presentation"; &lt;Book&gt; &lt;Ins&gt; &lt;p:FlowDocument&gt; &lt;p:List StartIndex="1"&gt; &lt;p:ListItem&gt; &lt;p:Paragraph&gt;Some Text.&lt;/p:Paragraph&gt; &lt;/p:ListItem&gt; &lt;p:ListItem&gt; &lt;p:Paragraph&gt;Some Text.&lt;/p:Paragraph&gt; &lt;/p:ListItem&gt; &lt;/p:List&gt; &lt;/p:FlowDocument&gt; &lt;/Ins&gt; &lt;/Book&gt; private FlowDocument _notes; public FlowDocument Notes { get { return _notes; } set { if (_notes!= value) { _notes= value; RaisePropertyChanged(() =&gt; Notes); } } } </code></pre> <p>I am able to load this document.. When I am trying to save this document by using XamlServices.Save, It is generating the below extra tags inside <strong>List</strong>..</p> <pre><code> &lt;av:List.SiblingBlocks&gt; &lt;x:Reference&gt;__ReferenceID13&lt;/x:Reference&gt; &lt;/av:List.SiblingBlocks&gt; &lt;av:ListItem.SiblingListItems&gt; &lt;x:Reference&gt;__ReferenceID9&lt;/x:Reference&gt; &lt;x:Reference&gt;__ReferenceID12&lt;/x:Reference&gt; &lt;/av:ListItem.SiblingListItems&gt; </code></pre> <p>When I am trying to Load this newly saved Xaml file, it is throwing an error "Collection property 'System.Windows.Documents.ListItem'.'SiblingListItems' is null." at Sibling blocks..</p> <p>I think my issue here is using Flow document as it is wpf typed object I can not use flow document (Wpf typed object) with XamlServices.Load()... Can I have any alternative for Flow document (Which is of not a wpf typed object)...</p> <p>I also tried with XamlWriter.Save but It does not work for me as I am using Genric class with parameteral constructor..</p> <p>Thanks in Advance..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload