Okay I am trying to get my Chart's title to be centered and have some buttons that are right aligned. However everything I try ends up having everything centered. Below the code sample that when it is not in the chart title it works as expected (for example just in the main layout for a control). It is acting as if the ChartTitle wraps its contents inside of a StackPanel or something that prevents the expected behavior of a Grid.
I could swear I saw an example in the Silverlight demo page for the Chart that had a "Reload" button right aligned with a centered title but I couldn't find it when I went through them again. It must have been in a forum post with sample code related to something else. If someone could help me work this out I would be grateful. Thanks.
I could swear I saw an example in the Silverlight demo page for the Chart that had a "Reload" button right aligned with a centered title but I couldn't find it when I went through them again. It must have been in a forum post with sample code related to something else. If someone could help me work this out I would be grateful. Thanks.
<
telerik:ChartDefaultView.ChartTitle
>
<
telerik:ChartTitle
>
<
Grid
Margin
=
"-6"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
TextAlignment
=
"Center"
VerticalAlignment
=
"Center"
Grid.Row
=
"0"
Grid.Column
=
"0"
>
Item Summary
</
TextBlock
>
<
StackPanel
Orientation
=
"Horizontal"
HorizontalAlignment
=
"Right"
Grid.Row
=
"0"
Grid.Column
=
"1"
>
<
telerik:RadButton
Name
=
"exportToPng"
Click
=
"exportToPng_Click"
>
<
ToolTipService.ToolTip
>
<
ToolTip
Content
=
"Export to PNG"
/>
</
ToolTipService.ToolTip
>
<
Image
Height
=
"16"
Margin
=
"1"
Source
=
"png_16x16.png"
/>
</
telerik:RadButton
>
<
telerik:RadButton
Name
=
"exportToExcel"
Click
=
"exportToExcel_Click"
>
<
ToolTipService.ToolTip
>
<
ToolTip
Content
=
"Export to Excel"
/>
</
ToolTipService.ToolTip
>
<
Image
Height
=
"16"
Margin
=
"1"
Source
=
"excel_16x16.png"
/>
</
telerik:RadButton
>
<
telerik:RadButton
Name
=
"exportToHtml"
Click
=
"exportToHtml_Click"
>
<
ToolTipService.ToolTip
>
<
ToolTip
Content
=
"Export to Html"
/>
</
ToolTipService.ToolTip
>
<
Image
Height
=
"16"
Margin
=
"1"
Source
=
"html_16x16.png"
/>
</
telerik:RadButton
>
</
StackPanel
>
</
Grid
>
</
telerik:ChartTitle
>
</
telerik:ChartDefaultView.ChartTitle
>