How do I access WPF HelpPaneContentTemplate Items from Codebehind?

62 Views Asked by At

Here is a HelpPaneContentTemplate:

<r:Ribbon.HelpPaneContentTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock 
                            Name="lbl_Help" 
                            Text="1234" 
                            VerticalAlignment="Center"  />
                        <r:RibbonButton 
                            Name="rbhelp"
                            SmallImageSource="Icons/help.ico" 
                            Command="Help" 
                    />
                    </StackPanel>
                </DataTemplate>
            </r:Ribbon.HelpPaneContentTemplate>

The Question I have -> How am I able to access the TextBlock (Named lbl_Help here) to update the Text from Codebehind? I tried to use "FindName" but I don't know how to reference to the HelpPaneContentTemplate to call Findname correctly.

0

There are 0 best solutions below