Welcome to WindowsClient.net | Sign in | Join

Rob Relyea - XAMLified

WPF, Silverlight and Xaml

XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty

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.

Published Sunday, September 28, 2008 9:35 AM by Rob_Relyea
Filed under:

Comments

# re: XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty@ Monday, September 29, 2008 12:53 AM

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

# re: XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty@ Monday, September 29, 2008 2:14 AM

Thanks, that's a very intresting infomation. Will be looking forward more details.

# re: XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty@ Wednesday, October 01, 2008 12:38 AM

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

# re: XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty@ Wednesday, October 08, 2008 3:03 PM

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.

# re: XamlWriter.Save’s Foundation: MarkupObject/MarkupProperty@ Wednesday, October 08, 2008 3:39 PM

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 :-)

...Stefan

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Page view counter