Exemplo n.º 1
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();
        }
Exemplo 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();
        }