The InlineUIContainer of RichTextBox control permits users to participate in the composition of visual documents by inserting controls onto the text page of the control. In my application, the user writes a report and inserts into the report a UserControl showing one (or more) customer's information via a DataForm (ReadOnly). The application is written using MVVM where the ViewModel controls the state of the data. What I would like to learn is how each UserControl inserted into the document could obtain a specific state or refers to a specific customer data. Since the RichTextBox contains a control, the user could select from the DataForm (when the control is in ReadOnly mode) the specific customer. But the goal is to insert a control refering to data for a specific customer, ultimately save the XAML to a database and then reconstructing the report using XAML from the database.