+ All Categories
Home > Education > Session five Builders & developers workshop MSTC`15

Session five Builders & developers workshop MSTC`15

Date post: 14-Jul-2015
Category:
Upload: moatasim-magdy
View: 263 times
Download: 2 times
Share this document with a friend
Popular Tags:
19
Builders & Developers Workshop Session 5 Prepared & Presented By: Moatasim Magdy
Transcript

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]


Recommended