WPF, Silverlight and Xaml
I’m prototyping and helping design some improvements in XamlWriter.Save() similar to the work that you can see on this wpf forum post about making a faster xamlwriter.
Looking at MSDN’s System.Windows.Markup.Primitives namespace, you’ll see the api documentation.
I’m excited by some of the possibilities we are discovering.
Rob,
I hope that while you are reworking the XAML reader and xaml writer that you will provide an option with both the reader and writer to preserve whitespace. This is really required to make the RichTextBox usable in the real world where people want to edit their xaml source.
...Stefan
Thanks, that's a very intresting infomation. Will be looking forward more details.
Stefan-
Can you give me concrete scenarios that you care about.
Typically, the VS and Blend XAML editing experiences have preserved all whitespace in the XAML file.
Are you talking about that, or are you just talking about preserving any whitespace that a user types into a RichTextBox.
Regardless, if you can point to specific problems today, that will help.
Thx, Rob
Robert,
I am looking for something similar to what is done in VS and blend. My understanding is that they are using a different xaml parser.
I'm trying to build a rich text editor experience you can edit the xaml source code in a split view like VS. Right now the experience works, but when we type into the actual rich text editor at the top after a break of one second I try and regenerate the xaml for the source editor at the bottom. Unfortunately I lose all the white space that was previously in the xaml source code.
Hopefully the previous comment makes sense. Unfortunately Internet Explorer took me pressing enter to mean I wished to submit it not add a new line.
Anyway to make it entirely clear it is the preservation of white space in the xaml file that is of concern to me.
I had filed a feedback request on this particular subject, I'm not sure if you received it. connect.microsoft.com/.../ViewFeedback.aspx.
Please let me know if you need any further information.
I'm very much looking forward to being able to watch your presentation. Unfortunately it will be via the web :-)