i'm trying to bind a ComboBox from code behind to XAML. This is my XAML part:
<GridViewColumn Header="Action Type">
   <GridViewColumn.CellTemplate>
     <DataTemplate>
        <ComboBox x:Name="comboBox" ItemsSource="{Binding ActionType}"/>
     </DataTemplate>
   </GridViewColumn.CellTemplate>
 </GridViewColumn>
Before the itemsources are bound (done in code), i prepare the datasets and create the controls in code (with some specifiy properties). now i want to bind the comboBox XAML to my C# code comboBox element, for example:
  public ComboBox ActionType { get; set; }
how can i perform such a task? generally, is it possible to attach controls from the code into the XAML part?
 
     
    