Пример #1
0
        static UIElement CreateTitledFixtureProfiles(FixtureListClassifier classifier)
        {
            StackPanel stackPanel = new StackPanel();

            stackPanel.Orientation = Orientation.Vertical;

            TextBlock textBlock = new TextBlock();

            textBlock.Text = classifier.GetDescription();
            stackPanel.Children.Add(textBlock);

            var fixtureProfilesPanel = new FixtureProfilesPanel();

            fixtureProfilesPanel.ItemsSource = classifier.FixtureProfiles;
            stackPanel.Children.Add(fixtureProfilesPanel);

            return(stackPanel);
        }