WindowTitleBarButton HelpButton = null;
var titleBar = VisualUtils.FindDescendant(sender as RibbonWindow, typeof (TitleBar)) as TitleBar;
if (titleBar != null)
HelpButton = titleBar.Template.FindName("HelpButton", titleBar) as WindowTitleBarButton;
if (HelpButton != null)
{
HelpButton.Click += HelpButton_Click;
HelpButton.ToolTip = "Help";
}
WindowTitleBarButton HelpButton = null;
var titleBar = VisualUtils.FindDescendant(sender as RibbonWindow, typeof (TitleBar)) as TitleBar;
if (titleBar != null)
HelpButton = titleBar.Template.FindName("HelpButton", titleBar) as WindowTitleBarButton;
if (HelpButton != null)
{
HelpButton.Click += HelpButton_Click;
HelpButton.ToolTip = "Help";
}
_set = true;
}