Introduction
In this article I explain how to merge two arrays into a single array. To implement this I created two separate arrays with a different size that contains the array elements according to their size and finally another array which with a size equivalent to the first array plus the second array which contains the elements of both the first and second array.
Use the following procedure to create it.
Step 1
First of all you must create a new Windows Store Application.
- Open Visual Studio 2012
- "File" -> "New" -> "Project..."
- Choose "Template" -> "Visual C#" -> "Window Store app"
- Choose "Blank App (XAML)" then rename the application

Step 2
Write the following XAML code in "Mainpage.Xaml" (that is available in Solution Explorer):
<Page
x:Class="merge_two_array.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:merge_two_array"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="Red">
<Grid.RowDefinitions>
<RowDefinition Height="81*"/>
<RowDefinition Height="41*"/>
<RowDefinition Height="38*"/>
<RowDefinition Height="37*"/>
<RowDefinition Height="39*"/>
<RowDefinition Height="40*"/>
<RowDefinition Height="492*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="179*"/>
<ColumnDefinition Width="333*"/>
<ColumnDefinition Width="252*"/>
<ColumnDefinition Width="602*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Enter First array Element" FontSize="20" FontFamily="Arial" FontWeight="ExtraBold" Foreground="White" Grid.Column="1" Grid.Row="1"></TextBlock>
<TextBox x:Name="textbox1" Grid.Column="2" Grid.Row="1" Width="200" VerticalAlignment="Top" HorizontalAlignment="Left" Height="32" ></TextBox>
<Button x:Name="button1" Grid.Column="2" Grid.Row="2" Background="Yellow" Foreground="Black" Width="150" Content="insert" Height="38" Click="button1_Click"></Button>
<TextBlock Text="Enter First array Element" FontSize="20" FontFamily="Arial" FontWeight="ExtraBold" Foreground="White" Grid.Column="1" Grid.Row="3"></TextBlock>
<TextBox x:Name="textbox2" Grid.Column="2" Grid.Row="3" Width="200" VerticalAlignment="Top" HorizontalAlignment="Left" Height="32" ></TextBox>
<Button x:Name="button2" Grid.Column="2" Grid.Row="4" Background="Yellow" Foreground="Black" Width="150" Content="insert" Height="38" Margin="0,1,0,0" Click="button2_Click" RenderTransformOrigin="0.5,0.5">
<Button.RenderTransform>
<CompositeTransform SkewX="6.387" TranslateX="2.127"/>
</Button.RenderTransform>

Join the conversation! Your thoughts help the community grow.