ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Builders & Developers Workshop
Session 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
Session five Builders & developers workshop MSTC`15
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"/>
Session five Builders & developers workshop MSTC`15
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#
Session five Builders & developers workshop MSTC`15
Session five Builders & developers workshop MSTC`15
Session five Builders & developers workshop MSTC`15
Session five Builders & developers workshop MSTC`15
Session five Builders & developers workshop MSTC`15
• /moatasim.magdy
• mo3tasim_94@hotmail.com
Session five Builders & developers workshop MSTC`15

More Related Content

Session five Builders & developers workshop MSTC`15