SlideShare a Scribd company logo
1 of 31
Prepared by : Mohamed Samir & Khaled Taher
Revision
1
2
3
4
5
6
Agenda
Classes
UI & UX
What is XAML
Element positioning
Container controls overview
Exercises (during session)
1. Saif El-deen
2. Fatema Mahmoud
3. Mahmoud Atef
4. Hadeer El-naggar
5. Hagar Farouk
6. Abd Al-Rahman Allam
7. Mohamed Reda
8. Nada Maher
9. Mahmood mohey
The heroes who finished Exercise 2
• A class is a way to define new
advanced data types.
• It contains attributes that describes
him.
• And it holds the functions that
access his attributes.
Classes
Class Frog {
private string name;
private string color;
public Frog() { } [constructor]
public void set_name(string name) { } [setter]
public string get_name () {} [getter]
public void jump() { }
}
Classes
Object
It is an instance of a class:
Frog kermit = new Frog () ;
Each object holds a (Unique)
assignment of value to the class
attributes:
kermit.set_Name (“Kermit The Frog”);
kermit.set_Color (“Green”);
kermit.set_hight (183);
Classes
Class Object
Classes
Constructor:
• is the first function the
object does after its creation.
• Constructor can either hold
parameters or not.
• class Frog {
Frog ()
{
Console.WriteLine(“I am a frog”);
}
}
Classes
• Access modifiers are keywords set
the visibility of an attribute or
function in a class to the other
classes.
private string name;
public string eye_color ;
public int hight;;
kermit.set_name (“Kermit The Frog”) ;
kermit.eye_color = “Green” ;
kermit.set_hight(183) ;
Classes
Classes
• Is when two classes share
attributes with each others.
• Like for example harry (child) and
his mother (parent)
– Harry is a wizard as his mother
– Has his mother eyes
• All these are attributes harry
inherited from his mother
Inheritance
• * Full code in notes bellow.
Inheritance
1. Learning programming basics on
console (C#)
2. How to design UI (XAML)
3. how to design database (SQL Server)
4. Integrate all your skills into APP
Our Workshop Plan
Woo hoo !!!
Universal Windows Platform Apps
• A markup language is computer
language that uses tags to define
elements within a document
Markup Language
Uses of XAML
• Vertical Alignment
• Horizontal Alignment
• Margin
• Padding
Element Positioning
Vertical Alignment
• Bottom
• Center
• Top
• Stretch
VerticalAlignment = “Top”
Horizontal Alignment
• Left
• Center
• Right
• Stretch
HorizontalAlignment = “Left”
• Left
• Top
• Right
• Bottom
Margin
Margin = “12,12,12,12”
Padding
Padding = “15”
Creating space
between content and
borders
• Canvas
• Grid
• Stackpanel
Containers Control
It just allows you to
put controls in it
<Canvas Width = “100” Height = 200” >
Your work
</Canvas>
Canvas
It allows you to put
elements in a grid
shape
Grid
<Grid Background = “White”>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=“ 1* " />
<ColumnDefinition Width=“ 1* " />
<ColumnDefinition Width=“ 1* " />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height=“ 1* " />
<RowDefinition Height=“ 1* " />
<RowDefinition Height=“ 1* " />
</Grid.RowDefinitions>
</Grid>
Grid
It stacks its child
elements below or beside
each other.
<StackPanel Orientation = “Vertical”>
Your work
</StackPanel>
Stackpanel
29
Exercise
31

More Related Content

What's hot

Mining Functional Patterns
Mining Functional PatternsMining Functional Patterns
Mining Functional PatternsDebasish Ghosh
 
Dev Concepts: Object-Oriented Programming
Dev Concepts: Object-Oriented ProgrammingDev Concepts: Object-Oriented Programming
Dev Concepts: Object-Oriented ProgrammingSvetlin Nakov
 
Types by Adform Research
Types by Adform ResearchTypes by Adform Research
Types by Adform ResearchVasil Remeniuk
 
Functional and Algebraic Domain Modeling
Functional and Algebraic Domain ModelingFunctional and Algebraic Domain Modeling
Functional and Algebraic Domain ModelingDebasish Ghosh
 
Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Hitesh-Java
 
An Overview of the Java Programming Language
An Overview of the Java Programming LanguageAn Overview of the Java Programming Language
An Overview of the Java Programming LanguageSalaam Kehinde
 
JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)Eduard Tomàs
 
Machine Learning - Dataset Preparation
Machine Learning - Dataset PreparationMachine Learning - Dataset Preparation
Machine Learning - Dataset PreparationAndrew Ferlitsch
 
Java 103 intro to java data structures
Java 103   intro to java data structuresJava 103   intro to java data structures
Java 103 intro to java data structuresagorolabs
 
Head First Java Chapter 4
Head First Java Chapter 4Head First Java Chapter 4
Head First Java Chapter 4Tom Henricksen
 
The Ring programming language version 1.10 book - Part 100 of 212
The Ring programming language version 1.10 book - Part 100 of 212The Ring programming language version 1.10 book - Part 100 of 212
The Ring programming language version 1.10 book - Part 100 of 212Mahmoud Samir Fayed
 
Approximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming ApplicationsApproximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming ApplicationsDebasish Ghosh
 
The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194Mahmoud Samir Fayed
 
Session 14 - Object Class
Session 14 - Object ClassSession 14 - Object Class
Session 14 - Object ClassPawanMM
 
Head First Java Chapter 3
Head First Java Chapter 3Head First Java Chapter 3
Head First Java Chapter 3Tom Henricksen
 

What's hot (20)

Mining Functional Patterns
Mining Functional PatternsMining Functional Patterns
Mining Functional Patterns
 
Dev Concepts: Object-Oriented Programming
Dev Concepts: Object-Oriented ProgrammingDev Concepts: Object-Oriented Programming
Dev Concepts: Object-Oriented Programming
 
Types by Adform Research
Types by Adform ResearchTypes by Adform Research
Types by Adform Research
 
Functional and Algebraic Domain Modeling
Functional and Algebraic Domain ModelingFunctional and Algebraic Domain Modeling
Functional and Algebraic Domain Modeling
 
Java constructors
Java constructorsJava constructors
Java constructors
 
Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics Collections - Sorting, Comparing Basics
Collections - Sorting, Comparing Basics
 
An Overview of the Java Programming Language
An Overview of the Java Programming LanguageAn Overview of the Java Programming Language
An Overview of the Java Programming Language
 
JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)JavaScript in 2016 (Codemotion Rome)
JavaScript in 2016 (Codemotion Rome)
 
Arrays in Java
Arrays in Java Arrays in Java
Arrays in Java
 
Templates in c++
Templates in c++Templates in c++
Templates in c++
 
Machine Learning - Dataset Preparation
Machine Learning - Dataset PreparationMachine Learning - Dataset Preparation
Machine Learning - Dataset Preparation
 
Constructor in java
Constructor in javaConstructor in java
Constructor in java
 
Java Day-6
Java Day-6Java Day-6
Java Day-6
 
Java 103 intro to java data structures
Java 103   intro to java data structuresJava 103   intro to java data structures
Java 103 intro to java data structures
 
Head First Java Chapter 4
Head First Java Chapter 4Head First Java Chapter 4
Head First Java Chapter 4
 
The Ring programming language version 1.10 book - Part 100 of 212
The Ring programming language version 1.10 book - Part 100 of 212The Ring programming language version 1.10 book - Part 100 of 212
The Ring programming language version 1.10 book - Part 100 of 212
 
Approximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming ApplicationsApproximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming Applications
 
The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194The Ring programming language version 1.5.3 book - Part 187 of 194
The Ring programming language version 1.5.3 book - Part 187 of 194
 
Session 14 - Object Class
Session 14 - Object ClassSession 14 - Object Class
Session 14 - Object Class
 
Head First Java Chapter 3
Head First Java Chapter 3Head First Java Chapter 3
Head First Java Chapter 3
 

Viewers also liked

3Com 3CTPX5-DV
3Com 3CTPX5-DV3Com 3CTPX5-DV
3Com 3CTPX5-DVsavomir
 
3Com 10007649 REV AB
3Com 10007649 REV AB3Com 10007649 REV AB
3Com 10007649 REV ABsavomir
 
Acrylic gearbox creativity journal
Acrylic gearbox creativity journalAcrylic gearbox creativity journal
Acrylic gearbox creativity journalNathan Prezioso
 
3Com 506A0009-02
3Com 506A0009-023Com 506A0009-02
3Com 506A0009-02savomir
 
Security operation-center
Security operation-centerSecurity operation-center
Security operation-centerbharti singhal
 
Clase 1: ¿Qué es la historia? Introducción al curso de educación de Adultos
Clase 1: ¿Qué es la historia? Introducción al curso de educación de AdultosClase 1: ¿Qué es la historia? Introducción al curso de educación de Adultos
Clase 1: ¿Qué es la historia? Introducción al curso de educación de AdultosDaniel Andrés Castillo Ramírez
 
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...Letícia Fernanda Corrêa
 
3Com 03-0020-000
3Com 03-0020-0003Com 03-0020-000
3Com 03-0020-000savomir
 
Apresentação tcc ilustração aplicada ao poema as bonecas de guilherme de al...
Apresentação tcc   ilustração aplicada ao poema as bonecas de guilherme de al...Apresentação tcc   ilustração aplicada ao poema as bonecas de guilherme de al...
Apresentação tcc ilustração aplicada ao poema as bonecas de guilherme de al...Letícia Fernanda Corrêa
 

Viewers also liked (15)

Session#1
Session#1Session#1
Session#1
 
Question Forms
Question FormsQuestion Forms
Question Forms
 
Enfermedades periodontales (2)
Enfermedades periodontales (2)Enfermedades periodontales (2)
Enfermedades periodontales (2)
 
3Com 3CTPX5-DV
3Com 3CTPX5-DV3Com 3CTPX5-DV
3Com 3CTPX5-DV
 
3Com 10007649 REV AB
3Com 10007649 REV AB3Com 10007649 REV AB
3Com 10007649 REV AB
 
Acrylic gearbox creativity journal
Acrylic gearbox creativity journalAcrylic gearbox creativity journal
Acrylic gearbox creativity journal
 
3Com 506A0009-02
3Com 506A0009-023Com 506A0009-02
3Com 506A0009-02
 
Security operation-center
Security operation-centerSecurity operation-center
Security operation-center
 
Clase 1: ¿Qué es la historia? Introducción al curso de educación de Adultos
Clase 1: ¿Qué es la historia? Introducción al curso de educación de AdultosClase 1: ¿Qué es la historia? Introducción al curso de educación de Adultos
Clase 1: ¿Qué es la historia? Introducción al curso de educación de Adultos
 
Divisiones de la economia
Divisiones de la economiaDivisiones de la economia
Divisiones de la economia
 
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...
Trabalho de Conclusão de Curso: Ilustração Aplicada ao poema "As bonecas" de ...
 
Zamek w wiśniczu premiera sezonu 2017
Zamek w wiśniczu   premiera sezonu 2017Zamek w wiśniczu   premiera sezonu 2017
Zamek w wiśniczu premiera sezonu 2017
 
Contaminación
ContaminaciónContaminación
Contaminación
 
3Com 03-0020-000
3Com 03-0020-0003Com 03-0020-000
3Com 03-0020-000
 
Apresentação tcc ilustração aplicada ao poema as bonecas de guilherme de al...
Apresentação tcc   ilustração aplicada ao poema as bonecas de guilherme de al...Apresentação tcc   ilustração aplicada ao poema as bonecas de guilherme de al...
Apresentação tcc ilustração aplicada ao poema as bonecas de guilherme de al...
 

Similar to Session 4#

Java-Intro.pptx
Java-Intro.pptxJava-Intro.pptx
Java-Intro.pptxVijalJain3
 
SPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentialsSPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentialsMark Rackley
 
Rich Internet Applications con JavaFX e NetBeans
Rich Internet Applications  con JavaFX e NetBeans Rich Internet Applications  con JavaFX e NetBeans
Rich Internet Applications con JavaFX e NetBeans Fabrizio Giudici
 
Scala and jvm_languages_praveen_technologist
Scala and jvm_languages_praveen_technologistScala and jvm_languages_praveen_technologist
Scala and jvm_languages_praveen_technologistpmanvi
 
Basic info on java intro
Basic info on java introBasic info on java intro
Basic info on java introkabirmahlotra
 
Basic info on java intro
Basic info on java introBasic info on java intro
Basic info on java introkabirmahlotra
 
Jooctrine - Doctrine ORM in Joomla!
Jooctrine - Doctrine ORM in Joomla!Jooctrine - Doctrine ORM in Joomla!
Jooctrine - Doctrine ORM in Joomla!Herman Peeren
 
مقایسه و بررسی چهارچوب ریلز
مقایسه و بررسی چهارچوب ریلزمقایسه و بررسی چهارچوب ریلز
مقایسه و بررسی چهارچوب ریلزrailsbootcamp
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for seleniumapoorvams
 
Wpf-Xaml And Layout Basics
Wpf-Xaml And Layout BasicsWpf-Xaml And Layout Basics
Wpf-Xaml And Layout BasicsRobin Aggarwal
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuerycolinbdclark
 
Functional (web) development with Clojure
Functional (web) development with ClojureFunctional (web) development with Clojure
Functional (web) development with ClojureHenrik Eneroth
 
Mel for beginners
Mel for beginnersMel for beginners
Mel for beginnerskedar nath
 
Introduction to perl_ a scripting language
Introduction to perl_ a scripting languageIntroduction to perl_ a scripting language
Introduction to perl_ a scripting languageVamshi Santhapuri
 
A brief tour of modern Java
A brief tour of modern JavaA brief tour of modern Java
A brief tour of modern JavaSina Madani
 
User Interface Development with jQuery
User Interface Development with jQueryUser Interface Development with jQuery
User Interface Development with jQuerycolinbdclark
 
Building High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 FirestarterBuilding High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 FirestarterMithun T. Dhar
 

Similar to Session 4# (20)

Week3
Week3Week3
Week3
 
Java-Intro.pptx
Java-Intro.pptxJava-Intro.pptx
Java-Intro.pptx
 
SPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentialsSPTechCon - Share point and jquery essentials
SPTechCon - Share point and jquery essentials
 
Rich Internet Applications con JavaFX e NetBeans
Rich Internet Applications  con JavaFX e NetBeans Rich Internet Applications  con JavaFX e NetBeans
Rich Internet Applications con JavaFX e NetBeans
 
Scala and jvm_languages_praveen_technologist
Scala and jvm_languages_praveen_technologistScala and jvm_languages_praveen_technologist
Scala and jvm_languages_praveen_technologist
 
Basic info on java intro
Basic info on java introBasic info on java intro
Basic info on java intro
 
Basic info on java intro
Basic info on java introBasic info on java intro
Basic info on java intro
 
Jooctrine - Doctrine ORM in Joomla!
Jooctrine - Doctrine ORM in Joomla!Jooctrine - Doctrine ORM in Joomla!
Jooctrine - Doctrine ORM in Joomla!
 
مقایسه و بررسی چهارچوب ریلز
مقایسه و بررسی چهارچوب ریلزمقایسه و بررسی چهارچوب ریلز
مقایسه و بررسی چهارچوب ریلز
 
JS Essence
JS EssenceJS Essence
JS Essence
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
 
Wpf-Xaml And Layout Basics
Wpf-Xaml And Layout BasicsWpf-Xaml And Layout Basics
Wpf-Xaml And Layout Basics
 
The Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQueryThe Inclusive Web: hands-on with HTML5 and jQuery
The Inclusive Web: hands-on with HTML5 and jQuery
 
Functional (web) development with Clojure
Functional (web) development with ClojureFunctional (web) development with Clojure
Functional (web) development with Clojure
 
Mel for beginners
Mel for beginnersMel for beginners
Mel for beginners
 
Introduction to perl_ a scripting language
Introduction to perl_ a scripting languageIntroduction to perl_ a scripting language
Introduction to perl_ a scripting language
 
A brief tour of modern Java
A brief tour of modern JavaA brief tour of modern Java
A brief tour of modern Java
 
JavaScript Good Practices
JavaScript Good PracticesJavaScript Good Practices
JavaScript Good Practices
 
User Interface Development with jQuery
User Interface Development with jQueryUser Interface Development with jQuery
User Interface Development with jQuery
 
Building High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 FirestarterBuilding High Perf Web Apps - IE8 Firestarter
Building High Perf Web Apps - IE8 Firestarter
 

Recently uploaded

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningMarc Dusseiller Dusjagr
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of PlayPooky Knightsmith
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17Celine George
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxCeline George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxakanksha16arora
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 

Recently uploaded (20)

Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Play hard learn harder: The Serious Business of Play
Play hard learn harder:  The Serious Business of PlayPlay hard learn harder:  The Serious Business of Play
Play hard learn harder: The Serious Business of Play
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Our Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdfOur Environment Class 10 Science Notes pdf
Our Environment Class 10 Science Notes pdf
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 

Session 4#

  • 1. Prepared by : Mohamed Samir & Khaled Taher
  • 3. 1 2 3 4 5 6 Agenda Classes UI & UX What is XAML Element positioning Container controls overview Exercises (during session)
  • 4. 1. Saif El-deen 2. Fatema Mahmoud 3. Mahmoud Atef 4. Hadeer El-naggar 5. Hagar Farouk 6. Abd Al-Rahman Allam 7. Mohamed Reda 8. Nada Maher 9. Mahmood mohey The heroes who finished Exercise 2
  • 5. • A class is a way to define new advanced data types. • It contains attributes that describes him. • And it holds the functions that access his attributes. Classes
  • 6. Class Frog { private string name; private string color; public Frog() { } [constructor] public void set_name(string name) { } [setter] public string get_name () {} [getter] public void jump() { } } Classes
  • 7. Object It is an instance of a class: Frog kermit = new Frog () ; Each object holds a (Unique) assignment of value to the class attributes: kermit.set_Name (“Kermit The Frog”); kermit.set_Color (“Green”); kermit.set_hight (183); Classes
  • 9. Constructor: • is the first function the object does after its creation. • Constructor can either hold parameters or not. • class Frog { Frog () { Console.WriteLine(“I am a frog”); } } Classes
  • 10. • Access modifiers are keywords set the visibility of an attribute or function in a class to the other classes. private string name; public string eye_color ; public int hight;; kermit.set_name (“Kermit The Frog”) ; kermit.eye_color = “Green” ; kermit.set_hight(183) ; Classes
  • 12. • Is when two classes share attributes with each others. • Like for example harry (child) and his mother (parent) – Harry is a wizard as his mother – Has his mother eyes • All these are attributes harry inherited from his mother Inheritance
  • 13. • * Full code in notes bellow. Inheritance
  • 14. 1. Learning programming basics on console (C#) 2. How to design UI (XAML) 3. how to design database (SQL Server) 4. Integrate all your skills into APP Our Workshop Plan
  • 15. Woo hoo !!! Universal Windows Platform Apps
  • 16.
  • 17. • A markup language is computer language that uses tags to define elements within a document Markup Language
  • 19. • Vertical Alignment • Horizontal Alignment • Margin • Padding Element Positioning
  • 20. Vertical Alignment • Bottom • Center • Top • Stretch VerticalAlignment = “Top”
  • 21. Horizontal Alignment • Left • Center • Right • Stretch HorizontalAlignment = “Left”
  • 22. • Left • Top • Right • Bottom Margin Margin = “12,12,12,12”
  • 23. Padding Padding = “15” Creating space between content and borders
  • 24. • Canvas • Grid • Stackpanel Containers Control
  • 25. It just allows you to put controls in it <Canvas Width = “100” Height = 200” > Your work </Canvas> Canvas
  • 26. It allows you to put elements in a grid shape Grid
  • 27. <Grid Background = “White”> <Grid.ColumnDefinitions> <ColumnDefinition Width=“ 1* " /> <ColumnDefinition Width=“ 1* " /> <ColumnDefinition Width=“ 1* " /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height=“ 1* " /> <RowDefinition Height=“ 1* " /> <RowDefinition Height=“ 1* " /> </Grid.RowDefinitions> </Grid> Grid
  • 28. It stacks its child elements below or beside each other. <StackPanel Orientation = “Vertical”> Your work </StackPanel> Stackpanel
  • 29. 29
  • 31. 31

Editor's Notes

  1. using System; namespace namespace1 { class Bird { private string name; public Bird () { Console.WriteLine("I am a bird"); } public void setName (string n_name) { name = n_name; } public string getName () { return name; } public void walk () { Console.WriteLine("I can walk"); } } class Eagle : Bird { public Eagle () { Console.WriteLine("I am an eagle!"); } public void fly() { Console.WriteLine("I can fly"); } } class Duck : Bird { public Duck() { Console.WriteLine("I am a duck!"); } public void swim () { Console.WriteLine("I can Swim"); } } class Program { public static void Main(string [] args) { Eagle my_eagle = new Eagle(); my_eagle.setName("Chaise"); Console.WriteLine("My name is: " + my_eagle.getName()); my_eagle.fly(); Console.WriteLine("\n"); Duck my_duck = new Duck(); my_duck.setName("Quirk"); Console.WriteLine("My name is: " + my_duck.getName()); my_duck.swim(); Console.ReadKey(); } } }