Content的问题
--模板里(好像是这样认为,我不懂)
<Border Background="{TemplateBinding Background}" Margin="7" Grid.Row="1">
<ContentPresenter x:Name="ContentPresenter" Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
</Border>
--然后
FloatableWindow fw = new FloatableWindow();
fw.ParentLayoutRoot = LayoutRootx:Name="LayoutRoot"]
fw.Title = "Test Floatable Window";
fw.Content = grid1; ///怎样让grid1里的内容给到fw里显示,如果="111"一个字符串时就能显示,但我想不单传字符串的话要怎么写?
fw.ShowDialog();