title: how to convert xaml code to c# code in Windows Phone 8
body: <p>How to covert this xaml code to cs:</p>
  
  <pre><code>&lt;StackPanel x:Name="mainsp"&gt;    
      &lt;Border Style="{StaticResource bordercss}" &gt;
          &lt;StackPanel x:Name="getme"  Background="White" Orientation="Vertical" d:DataContext="{Binding TaskList[0]}" &gt;
              &lt;TextBlock Text="{Binding title}" Style="{StaticResource btbx_bold}" /&gt;
              &lt;TextBlock Text="{Binding csoId}" Style="{StaticResource btbx_new}" /&gt;
              &lt;TextBlock  Style="{StaticResource btbx_new}" &gt;
                  &lt;Run Text="Date : " /&gt;
                  &lt;Run Text="{Binding mydate}" /&gt;
              &lt;/TextBlock&gt;
              &lt;TextBlock Style="{StaticResource btbx_new}"  &gt;
                  &lt;Run Text="Status : " /&gt;
                  &lt;Run Text="{Binding mystatus}" /&gt;
              &lt;/TextBlock&gt;
              &lt;TextBlock Style="{StaticResource btbx_new}" &gt;
                  &lt;Run Text="Customer Info : " /&gt;
                  &lt;Run Text="{Binding clientname}" /&gt;                        
                  &lt;Run Text=" ("/&gt;                    
                  &lt;Run Text="{Binding customercontact}" /&gt;
                  &lt;Run Text=") "/&gt;
              &lt;/TextBlock&gt;
              &lt;StackPanel Orientation="Horizontal"&gt;
                  &lt;Image Source="/Assets/address_icon.png" Margin="5,0"/&gt;
                  &lt;TextBlock Text="{Binding csoId}" Style="{StaticResource btbx_new}" /&gt;
              &lt;/StackPanel&gt;
              &lt;Line StrokeThickness="2" Fill="Black" Margin="5,0" /&gt;
              &lt;Button Content="Get Direction" Background="#B80E0F" Click="Button_Click_1"  FontSize="18"/&gt;
          &lt;/StackPanel&gt;
      &lt;/Border&gt;
  &lt;/StackPanel&gt;
  </code></pre>