C#WPF中 在Expander 控件里增加控件或其它内容不显示,怎么解决? 5
C#WPF中向DataExtensionsExpander控件里增加内容不显示,怎么解决?程序未编译,调试之前看不到展开后的内容,很奇怪。运行后能看到DataExtens...
C#WPF中 向Data Extensions Expander控件里增加内容不显示,怎么解决?程序未编译,调试之前看不到展开后的内容,很奇怪。运行后能看到Data Extensions Expander控件里的其它控件和内容,没有问题。但是调试前创建Expander,在Data Extensions Expander的Grid内添加其他控件和内容,为什么就不显示呢?
<Expander Expanded="expdrDataExtentions_Expanded" Header="Data Extensions" Name="expdrDataExtensions" BorderBrush="Black" BorderThickness="1" FontFamily="Arial" IsEnabled="True" Focusable="True" Height="Auto">
<Expander.ContextMenu>
<ContextMenu DataContext="{Binding}" />
</Expander.ContextMenu>
<Expander.Background>
<LinearGradientBrush EndPoint="0.8,1" StartPoint="0.5,0">
<GradientStop Color="#ddd" Offset="0" />
<GradientStop Color="white" Offset="1" />
</LinearGradientBrush>
</Expander.Background>
<Grid Background="White" x:Name="gridDataExtensions" IsEnabled="True">
<Grid.Resources>
<BooleanToVisibilityConverter x:Key="boolToVisible"/>
</Grid.Resources>
<Border Margin="3,1,1,1" BorderBrush="Black" BorderThickness="1">
<StackPanel Margin="2" Orientation="Vertical" Name="stckPnlDataExtensions">
<GroupBox Header="Data Extensions" Name="grpbDataExtensions" 展开
<Expander Expanded="expdrDataExtentions_Expanded" Header="Data Extensions" Name="expdrDataExtensions" BorderBrush="Black" BorderThickness="1" FontFamily="Arial" IsEnabled="True" Focusable="True" Height="Auto">
<Expander.ContextMenu>
<ContextMenu DataContext="{Binding}" />
</Expander.ContextMenu>
<Expander.Background>
<LinearGradientBrush EndPoint="0.8,1" StartPoint="0.5,0">
<GradientStop Color="#ddd" Offset="0" />
<GradientStop Color="white" Offset="1" />
</LinearGradientBrush>
</Expander.Background>
<Grid Background="White" x:Name="gridDataExtensions" IsEnabled="True">
<Grid.Resources>
<BooleanToVisibilityConverter x:Key="boolToVisible"/>
</Grid.Resources>
<Border Margin="3,1,1,1" BorderBrush="Black" BorderThickness="1">
<StackPanel Margin="2" Orientation="Vertical" Name="stckPnlDataExtensions">
<GroupBox Header="Data Extensions" Name="grpbDataExtensions" 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询