Go to View --> ToolBox --> And you can add any controls.Or else you can add a bit of code as below.
<Button Content="Click Me" HorizontalAlignment="Left" Margin="138,161,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.617,1.507" Height="117" Width="190" Click="Button_Click_1"/>Then to add click action for controls you can just double click the controls and you may navigate to xaml.cs page where you can add your code.
namespace AddControls
{
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
// Sample code to localize the ApplicationBar
//BuildLocalizedApplicationBar();
}
private void Button_Click_1(object sender, RoutedEventArgs e)
{
Console.WriteLine("Iam being Clicked......");
}
nice..
ReplyDelete