private void ConfigureHeading(string heading)
        {
            TextBlock headingTextBlock = WPFHelper.CreateTextBlock(heading);

            TextRange text = new TextRange(headingTextBlock.ContentStart, headingTextBlock.ContentEnd);

            _automationName = text.Text;

            this.SetHeading(headingTextBlock);
        }
Esempio n. 2
0
        private void ConfigureHeading(string heading)
        {
            _searchPageHeader      = new SearchPageHeader();
            _searchPageHeader.Name = "_searchPageHeader";

            TextBlock headingTextBlock = WPFHelper.CreateTextBlock(heading);

            _searchPageHeader.SetHeaderTextContent(headingTextBlock);

            TextRange text = new TextRange(headingTextBlock.ContentStart, headingTextBlock.ContentEnd);

            _automationName = text.Text;

            this.SetHeading(_searchPageHeader);

            ConfigureSearchStringBinding();
        }