Silverlight - StackPanel 中 RadPanelBar 的宽度
我在 StackPanel 中有两个控件;一个是 RadChart,另一个是 RadPanelBar。它显示 RadChart 的 100% 宽度,但未显示 RadPanelBar 的 100% 宽度。
我正在使用以下代码。有人能告诉我可能是什么问题吗?为什么 RadPanelBar 不显示 100% 宽度
<StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
<telerikChart:RadChart x:Name="radChart" Margin="8">
<telerikChart:RadChart.SeriesMappings>
<telerik:SeriesMapping LegendLabel="Results">
<telerik:SeriesMapping.ItemMappings>
<telerik:ItemMapping FieldName="Score" DataPointMember="YValue"/>
</telerik:SeriesMapping.ItemMappings>
</telerik:SeriesMapping>
</telerikChart:RadChart.SeriesMappings>
</telerikChart:RadChart>-->
<telerik:RadPanelBar x:Name="radPanelBar"
HorizontalAlignment="Center" VerticalAlignment="Top"
ItemTemplate="{StaticResource PanelBarHeaderTemplate}">
</telerik:RadPanelBar>
</StackPanel>
I have two controls in a StackPanel; one is a RadChart and the other one is RadPanelBar. It shows 100% width for RadChart but it is not showing 100% width for the RadPanelBar.
I am using the following code. Can someone tell what could be the issue, why it does not show 100% width for RadPanelBar
<StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">
<telerikChart:RadChart x:Name="radChart" Margin="8">
<telerikChart:RadChart.SeriesMappings>
<telerik:SeriesMapping LegendLabel="Results">
<telerik:SeriesMapping.ItemMappings>
<telerik:ItemMapping FieldName="Score" DataPointMember="YValue"/>
</telerik:SeriesMapping.ItemMappings>
</telerik:SeriesMapping>
</telerikChart:RadChart.SeriesMappings>
</telerikChart:RadChart>-->
<telerik:RadPanelBar x:Name="radPanelBar"
HorizontalAlignment="Center" VerticalAlignment="Top"
ItemTemplate="{StaticResource PanelBarHeaderTemplate}">
</telerik:RadPanelBar>
</StackPanel>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 HorizontalAlignment 和 VerticalAlignment 更改为 Stretch 可能会起作用;请尝试。
Change from HorizontalAlignment and VerticalAlignment to Stretch might work; please try.