i need to create below mention code at runtime in Wpf i.e. create AutoCompleteBox dynamically set size, width, location etc dynamically. Then set TabIndex dynamically. How to do this.
<ToolKit:AutoCompleteBox Canvas.Left="227" Canvas.Top="845" Name="txtFirstName" FontSize="15" Height="30"
TabIndex="4" Width="100" PreviewTextInput="txtFirstName_PreviewTextInput" >
<ToolKit:AutoCompleteBox.TextBoxStyle>
<Style TargetType="TextBox">
<Setter Property="TabIndex" Value="{Binding ElementName=txtFirstName, Path=TabIndex}"></Setter>
</Style>
</ToolKit:AutoCompleteBox.TextBoxStyle>
</ToolKit:AutoCompleteBox>