开发者

Silverlight - Width of RadPanelBar in StackPanel

开发者 https://www.devze.com 2023-03-21 12:16 出处:网络
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 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>


Change from HorizontalAlignment and VerticalAlignment to Stretch might work; please try.

0

精彩评论

暂无评论...
验证码 换一张
取 消