XamlWriter Textbox

Aug 6, 2009 at 3:02 PM

Hi,

I have been outputing the elements in a grid. One of the elements is textbox. The first few lines looks something like this:

<TextBox x:Name="textbox">
  <Grid x:Name="RootElement">
    <Border x:Name="Border" BorderThickness="1" CornerRadius="1">
      <Border.Background>

The Grid that is inside of the textbox causes problems if I try and load this xaml back into a user control. As textbox does not support direct content.

Is there a way around this being output in this manner, or would I have to mofidy the xaml after its been output?