or
private void RadPanelBar_Expanded(object sender, Telerik.Windows.RadRoutedEventArgs e) |
{ |
RadPanelBarItem element = e.Source as RadPanelBarItem; |
|
//How get element.Index or panelBar.SelectedIndex????? |
} |
<
ContentPresenter Margin="7,4"
HorizontalAlignment="Left"
.../>
-------------
When we use Snoop to look at the resulting visual tree, neither the margin nor the alignment are set to these values. They are "0" and "Center" respectively and their source is given as "ParentTemplate". I had to resort to setting a margin on GridViewHeaderCell to get the previous appearance and I can't find a way of getting Left alignment on the header text.
Is the GridView setting these programmatically? If we had the source for the service pack, we could track this down ourselves.
Thanks for your help
Chris