views:

136

answers:

0

Hi,

I need to override the behaviour of XamlWriter when writing out a user control to file.

I have control which is just a grid with pictures in, the usercontrol has the grid and 4 properties which set the images.

When i use XamlWriter.Save it returns the inner xaml (which includes the grid etc) of the user control, however I just want to output:

is there a way to do this?