Exemplo n.º 1
0
        private void SelectItem(string pageName)
        {
            var supportPageElement = SampleList.Items.OfType <System.Xml.XmlElement>()
                                     .First(x => x.Attributes["Page"] != null && x.Attributes["Page"].Value == pageName);

            SampleList.SelectedItem = supportPageElement;

            SampleList.ScrollIntoView(supportPageElement);
        }