This question is locked. New answers and comments are not allowed.
I just realized Q1 2010 seems to have changed the behavior of my code. I used to be able to find a textblock inside my footer using ChildrenOfType<TextBlock> and changing the value.
My footer xaml is
I used to be able to access txtJanFtr like so
How should I obtain a reference to a TextBlock inside the footer?
Thank you.
My footer xaml is
| <telerikGridView:GridViewDataColumn.Footer > |
| <Telerik_Windows_Controls_GridView:AggregateResultsList ItemsSource="{Binding}" HorizontalAlignment="Right" VerticalAlignment="Center"> |
| <Telerik_Windows_Controls_GridView:AggregateResultsList.ItemTemplate> |
| <DataTemplate> |
| <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Height="40"> |
| <TextBlock VerticalAlignment="Center" TextAlignment="Right" FontSize="11" x:Name="txtJanFtr" FontWeight="Bold" Text="{Binding FormattedValue}" /> |
| </StackPanel> |
| </DataTemplate> |
| </Telerik_Windows_Controls_GridView:AggregateResultsList.ItemTemplate> |
| <Telerik_Windows_Controls_GridView:AggregateResultsList.ItemsPanel> |
| <ItemsPanelTemplate> |
| <StackPanel Orientation="Vertical" /> |
| </ItemsPanelTemplate> |
| </Telerik_Windows_Controls_GridView:AggregateResultsList.ItemsPanel> |
| </Telerik_Windows_Controls_GridView:AggregateResultsList> |
| </telerikGridView:GridViewDataColumn.Footer> |
I used to be able to access txtJanFtr like so
| grdCapBonds.ChildrenOfType<TextBlock>().Where(v => v.Name == "txtJanFtr").FirstOrDefault() |
How should I obtain a reference to a TextBlock inside the footer?
Thank you.