title: How to add CheckBox dynamically in WPF C# application
body: <p>I have &quot;gameListView&quot; ListView in which i want to add Checkbox dynamically. So How can I do this? I am able to add string but not able to add Checkbox. My Code is below.</p>
  <pre><code>GridView gridView = new GridView();
  gameListView.View = gridView;
  //Setting CheckBox here
  CheckBox chk = new CheckBox();
  chk.IsChecked = varibleName == &quot;1&quot; ? true : false;
  
  gridView.Columns.Add(new GridViewColumn { Header = &quot;Favourite&quot;, DisplayMemberBinding = new Binding(&quot;Favourite&quot;) });
  gameListView.Items.Add(new Games.GameItems { GameName = game[0].ToString(), GameDependency = game[1].ToString(), Favourite = chk });
  </code></pre>
  <p>and my Games.GameItems class ia as follow</p>
  <pre><code>class GameItems
  {
      public string GameName { get; set; }
      public string GameDependency { get; set; }
      public System.Windows.Controls.CheckBox Favourite { get; set; }
  }
  </code></pre>
  <p>But my Output shows CheckBox as String :( like below
  <img src="https://i.stack.imgur.com/dYA26.jpg" alt="CheckBox" /></p>
  <p>But I want real CheckBox, not the string. So please help me, how can I do this?</p>