I had a question about inserting controls into the Ribon Title Bar. I seem to be unable to access the controls by name when added to my form's XAML code.
<themes:WindowChrome.Chrome> <themes:WindowChrome IconMargin="10,4,10,4"> <themes:WindowChrome.TitleBarContentTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBox Name="QuickSearchBox" Margin="5,2,5,0" Width="150" BorderBrush="Transparent" shared:HintProperties.Hint="Quick search..." KeyDown="QuickSearchBox_KeyDown" /> </StackPanel> </DataTemplate> </themes:WindowChrome.TitleBarContentTemplate> </themes:WindowChrome> </themes:WindowChrome.Chrome>
I can't find a control named "QuickSearchBox" in the cs file for the codebehind, no what I try to change the name to, or how I try to manipulate the XAML. I've also tried "x:Name". Any information on this would be extremely helpful, as I would like to control when focus is applied to that textbox programatically from within my code.