19
Builders & Developers Workshop Session 5 Prepared & Presented By: Moatasim Magdy

Session five Builders & developers workshop MSTC`15

Embed Size (px)

Citation preview

Builders & Developers WorkshopSession 5

Prepared & Presented By:

Moatasim Magdy

Calculator Universal application

Agenda

• Text Box.

• Buttons.

• Writing in Text Box throw buttons.

• Functions implementation.

Text Box

Now we have to add our buttons

Example for button

<Button Name="btn0" Width="90" Height="120" Content="0" FontSize="40" Margin="476,602,0,46" />

<Button Name="add" Width="90" Height="120" Content="+" FontSize="40" Margin="700,178,0,470"/>

<Button Name="equal" Width="90" Height="120" Content="=" FontSize="40" Margin="824,602,0,46"/>

First, We have to make functions for:

• Numbers and dot buttons

• Operations button

• Clear button

• Equal button

Steps for implementing function to button

• First we have to add the name of the function for each button in XAML code.

• Ex. For numbers and dot buttons.

For rest of functions:

Now we have to implement the functions we named in XAML using c#

• /moatasim.magdy

[email protected]