public VignetteXpsControl()
        {
            InitializeComponent();
            Vignette = new VignetteSummary();

            LoadVignettes();
        }
        private void vignetteListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            // display info
            VignetteIndex = vignettes[vignetteListBox.SelectedIndex].VignetteId;

            // this is klugey - shluld refctor to get rid of temp variable
            VignetteSummary temp = vignettes[vignetteListBox.SelectedIndex];

            Vignette = temp;

            titleTextBox.Text       = temp.VignetteName;
            descriptionTextBox.Text = temp.VignetteDescription;

            tagPanel.Children.Clear();
            foreach (string s in temp.VignetteTags)
            {
                Border b = new Border();
                b.BorderBrush     = Brushes.DeepSkyBlue;
                b.BorderThickness = new Thickness(1);
                b.CornerRadius    = new CornerRadius(3);
                b.Margin          = new Thickness(5);

                Label lb = new Label();
                lb.HorizontalContentAlignment = HorizontalAlignment.Center;
                lb.VerticalContentAlignment   = VerticalAlignment.Center;
                lb.MinWidth = 80;
                lb.FontSize = 12;
                lb.Padding  = new Thickness(1);
                lb.Content  = s.ToUpper();

                b.Child = lb;

                tagPanel.Children.Add(b);
            }

            useVignetteButton.IsEnabled = true;
        }