title: How to add one array of ComboBoxItem to multiple ComboBox in wpf programmatically?
body: <p>I'm trying to add arrays of ComboBoxItem to multiple ComboBox,
  but after selecting one ComboBox, others where affect selection.</p>
  <p>My Codes:</p>
  <pre><code>Dim arrColors() As ComboBoxItem = {
              New ComboBoxItem With {.Content = &quot;سفارشی&quot;, .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;آبی&quot;, .Background = TryFindResource(&quot;BrushPrimary&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;سبز&quot;, .Background = TryFindResource(&quot;BrushSuccess&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;زرد&quot;, .Background = TryFindResource(&quot;BrushWarning&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;قرمز&quot;, .Background = TryFindResource(&quot;BrushDanger&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;سفید&quot;, .Background = TryFindResource(&quot;BrushLight&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;مشکی&quot;, .Background = TryFindResource(&quot;BrushDark&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;طوسی&quot;, .Background = TryFindResource(&quot;FormBackground&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;خاکستری&quot;, .Background = TryFindResource(&quot;SplitterColor&quot;), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;صورتی&quot;, .Background = New SolidColorBrush(Colors.Pink), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;بنفش&quot;, .Background = New SolidColorBrush(Colors.Purple), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;قهوه‌ای&quot;, .Background = New SolidColorBrush(Colors.Brown), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;نارنجی&quot;, .Background = New SolidColorBrush(Colors.Orange), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;آبی کمرنگ&quot;, .Background = New SolidColorBrush(Colors.LightBlue), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top},
              New ComboBoxItem With {.Content = &quot;سبز کمرنگ&quot;, .Background = New SolidColorBrush(Colors.LightGreen), .HorizontalContentAlignment = HorizontalAlignment.Left, .VerticalContentAlignment = VerticalAlignment.Top}
  }
  </code></pre>
  <p>Tryed methods:</p>
  <pre><code>cmbThemeBack1.ItemsSource = New List(arrColors.Clone)
  cmbTextColor1.ItemsSource = arrColors.Clone
  </code></pre>
  <p>But none of that was right.</p>