I can retrieve the xaml with rtb.xaml.ToString() and store it in a database. But how do I set it? As an example, I thought rtb2.Xaml = rtb.Xaml would work.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Xamlproperty is a of typeStringso there is no need to useToStringon it.You simply store the content of
Xamlas a string in a database and restore it later with a simply assignment:-Howeever you should note that only a limited number of elements will actuall serialise in this wa, you can’t expect embedded controls like
ComboBoxto serialise. In addition only relevant properties of the remaining elements will serialise, again those related to the appearance of the text.For details see the documentation.