SlideShare a Scribd company logo
1 of 60
Download to read offline
Nguyen Tuan | Microsoft Certified Trainer
Introduction to Blend Expression
Transformation using Blend Expression
Animation using Blend Expression
In-Box Controls
Button
Checkbox Radio Button
Hyperlink
http://vnexpress.net
Combo Box
Context Menu Flyout
List BoxFlip View
App Bar
Panning Indicator
Grid View
List View Semantic Zoom
Text Box
Progress Ring Progress Bar
Clear ButtonSpell Checking
Password Reveal Button
Rating Radio Button
Scroll Bar
Toggle Switch Tooltip
<Layout Controls />
 Canvas
 Simplest, placement relative to two edges
 Not scalable
 Supports the following attached properties
 Canvas.Top, Canvas.Left, Canvas.Zindex
 StackPanel
 Horizontal or vertical stacking
 Grid
 Uses rows and columns
 Flexible Positioning (similar to tables in HTML)
 Supports the following attached properties
 Grid.Column, Grid.Row, Grid.Columnspan, Grid.Rowspan
 More
 Border, ScrollViewer, Viewbox, VariableSizedWrapGrid
 Is a Drawing Surface
 Children have fixed positions relative to top-left-corner
<Canvas Width="250" Height="200" Background="Gray">
<Rectangle Canvas.Top="25" Canvas.Left="25"
Width="200" Height="150" Fill="Yellow" />
</Canvas>
The Canvas
The Rectangle
 Top & Left properties only make sense inside a
Canvas
<Canvas Width="250" Height="200" Background="Gray">
<Rectangle Canvas.Top="25" Canvas.Left="25"
Width="200" Height="150" Fill="Yellow" />
</Canvas>
=
<Rectangle Canvas.Top="25" Canvas.Left="25"/>
Rectangle rectangle = new Rectangle();
rectangle.SetValue(Canvas.TopProperty, 25);
rectangle.SetValue(Canvas.LeftProperty, 25);
=
Rectangle rectangle = new Rectangle();
Canvas.SetTop(rectangle, 25);
Canvas.SetLeft(rectangle, 25);
XAML - Syntax
 XAML is Case-Sensitive
 Attribute Syntax
 Property Element Syntax (<TypeName.Property>)
<Button Background="Blue"Foreground="Red"
Content="This is a button"/>
<Button>
<Button.Background>
<SolidColorBrush
</Button.Background>
<Button.Foreground>
<SolidColorBrush
</Button.Foreground>
<Button.Content>
This is a button
</Button.Content>
</Button>
Color="Blue"/>
Color="Red"/>
http://msdn.microsoft.com/en-us/library/cc189036(VS.95).aspx
 The StackPanel will place its children in either a
column (default) or row. This is controlled by the
Orientation property.
<StackPanel Orientation="Vertical">
<Button Content="Button" />
<Button Content="Button" />
</StackPanel>
<StackPanel HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" Margin="0,0,0,12">
<TextBlock Text="Username" FontSize="48" Width="240"
TextAlignment="Right" Margin="0,0,20,0"/>
<TextBox FontSize="48" Width="300"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,12">
<TextBlock Text="Password" Margin="0,0,20,0" FontSize="48"
Width="240" TextAlignment="Right"/>
<PasswordBox Margin="0" FontSize="48" Width="300"/>
</StackPanel>
<Button Content="Login" HorizontalAlignment="Left"
Margin="257,0,0,0" FontSize="48"/>
</StackPanel>
 The Grid is a powerful layout container.
 It acts as a placeholder for visual elements
 You specify the rows and columns, and those define the cells.
 The placement of an element in the Grid is specified using attached properties that are
set on the children of the Grid:
 Supports different types of row and column sizes in one Grid:
 Pixel size: Fixed value in pixels
 Auto size: The Đell has the size of it͛s ĐoŶteŶts
 Star size: whatever space is left over from fixed- and auto-sized columns is allocated to
all of the columns with star-sizing
<Image Grid.Column="3" Source="demo.png" Stretch="None"/>
<Basic Controls />
 Normal
 Multi Line
 Border & Colors
<TextBox Text="Hello World" TabIndex="4" />
<TextBox Text="Hello World" Height="200"
AcceptsReturn="True" />
<TextBox Text="Hello World"
BorderThickness="3"
BorderBrush="Black"
SelectionHighlightColor="Blue"
Background="LightGray" />
 No Clear Button(“Blen default”)
<TextBox Text="Hello World"
TextWrapping="Wrap" />
 InputScope
<TextBox InputScope="Search" />
 Supports BMP, JPG, TIF and PNG
 Source property
 External, start with ‘http’:
AppBar CommandBar
 Properties
 Foreground
 Background
 IsSticky
 IsOpen
 PrimaryCommands
 SecondaryCommands
 Events
 Opened
 Closed
 Properties
 Foreground
 Background
 IsSticky
 IsOpen
 Children
 Events
 Opened
 Closed
•
AppBarButton
AppBarToggleButton AppBarSeparator
• App bar buttons differ from standard buttons in several ways:
• Their default appearance is a circle instead of a rectangle.
• You use the Label and Icon properties to set the content instead of the
Content property. The Content property is ignored.
• The button's IsCompact property controls its size.
AppBarButtons
• FontIcon
• The icon is based on a
glyph from the specified
font family.
• BitmapIcon
• The icon is based on a
bitmap image file with
the specified Uri.
• PathIcon
• The icon is based on
Path data.
• SymbolIcon
• The icon is based on a
predefined list of glyphs
from the Segoe UI
Symbol font.
• Images & Paths (Vectors)
• http://modernuiicons.com
• http://thenounproject.com
• http://www.thexamlproject.com
• http://www.syncfusion.com/downloads/metrostudio
• Symbols
• http://msdn.microsoft.com/en-us/library/windows/apps/jj841126.aspx
• http://www.geekchamp.com/icon-explorer/introduction
• http://www.fontello.com/
• http://fontastic.me
<Resources />
 Reusable objects such as data, styles and templates.
 Assigned a unique key (x:Key) so you can reference
to it.
 Every element has a Resources property.
 Nesting Support
 All static resources are loaded on page load
 Resource is loaded even if not used
31
 Menu Window - Resources
 Shows all resources of all open XAML documents
 Link to Resource Dictionary
 Edit Resource
 Rename Resource
 Move Resource
 Delete Resource
 Apply Resource by Drag & Drop
33
 Store resources in external files
 Declare once, use many times
 Makes XAML shorter and easier to read
 Can be stored in external assemblies
34
<Animations &
Storyboards />
Recording
Easing
Reusable
View targeted code
 XAML supports key frames
 A key frame defines an objects target value on a
moment in an animation.
 A key frame has an interpolation method.
 A Key Frame target can be a:
 Double (X, Y, Height, Width, Opacity, Angle, etc.)
 Color (Fill, Stroke, etc.)
 Object (Visibility, Text, etc)
Storyboards
 Creating a storyboard in Expression Blend
37
 The Storyboard object has interactive methods to
Begin, Pause, Resume, and Stop an animation.
<Behaviors />
<Styling and
Templating />
 XAML = UI flexibility
 Customize the look of an application without
Changing it’s behavior.
 Styling = Small Visual Changes on an Element (Font, Background Color, etc.)
 Templating = Replacing Element’s entire visual Tree.
<Page.Resources>
<Style x:Key="HollandButtonStyle" TargetType="Button">
<Setter Property="Background" Value="#FFFF9E00"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontStyle" Value="Italic"/>
• </ >
• </ >
• < >
• < Content="Button"
• Style="{
HollandButton
Style}"/>
 If You omit the Style’s key an specify only the
TargetType, then the Style is automatically applied to all
elements of that target type within the same scope (it is
implicitly applied).
 This is typically called a typed style as opposed to a
named style.
<Style TargetType="TextBox">
<Setter Property="FontFamily" Value="Arial Black"/>
<Setter Property="FontSize" Value="16"/>
</Style>
<Page.Resources>
<Style x:Key="HollandButtonStyle" TargetType="Button">
<Setter Property="Background" Value="#FFFF9E00"/>
<Setter Property="FontSize" Value="24"/>
<Setter Property="FontStyle" Value="Italic"/>
</Style>
<Style x:Key="GermanButtonStyle"
TargetType="Button"
BasedOn="{StaticResource HollandButtonStyle}">
<Setter Property="Background" Value="White"/>
<Setter Property="Foreground" Value="Black"/>
</Style>
</Page.Resources>
<Grid >
<Button Content="Button"
Style="{StaticResource GermanButtonStyle}"/>
<Button Content="Button"
Style="{StaticResource HollandButtonStyle}"/>
</Grid>
Data Binding
 Data binding is the process that establishes a connection, or
binding, between the UI and the business object which allows data
to flow between the two
 Enable clean view/model separation and binding
 Change UI presentation without code-behind modifications
 Every binding has a source and a target
 Source is the business object or another UI element
 Target is the UI element
 Binding Expressions can be one way or two way and supports
validation & converters
 Element binding is performed in the same manner as
Data Binding with one addition: the ElementName
property. ElementName defines the name of the
binding source element.
<Grid>
<TextBlock Text="{Binding Value, ElementName=mySlider}"
FontSize="32"/>
<Slider x:Name="mySlider" Maximum="10" Value="6" />
</Grid>
05.Blend Expression, Transformation & Animation
05.Blend Expression, Transformation & Animation
05.Blend Expression, Transformation & Animation
05.Blend Expression, Transformation & Animation

More Related Content

What's hot

What's hot (13)

2. HTML forms
2. HTML forms2. HTML forms
2. HTML forms
 
Html forms
Html formsHtml forms
Html forms
 
Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3Web Design Course: CSS lecture 3
Web Design Course: CSS lecture 3
 
Web Design Course: CSS lecture 4
Web Design Course: CSS  lecture 4Web Design Course: CSS  lecture 4
Web Design Course: CSS lecture 4
 
Html cheatsheet
Html cheatsheetHtml cheatsheet
Html cheatsheet
 
Entering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML FormsEntering User Data from a Web Page HTML Forms
Entering User Data from a Web Page HTML Forms
 
Html forms
Html formsHtml forms
Html forms
 
HTML frames and HTML forms
HTML frames and HTML formsHTML frames and HTML forms
HTML frames and HTML forms
 
Html form tag
Html form tagHtml form tag
Html form tag
 
Creating forms
Creating formsCreating forms
Creating forms
 
Html tag ref
Html tag refHtml tag ref
Html tag ref
 
Form
FormForm
Form
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 

Viewers also liked

Design stunning user experience with expression blend
Design stunning user experience with expression blendDesign stunning user experience with expression blend
Design stunning user experience with expression blendKosala Nuwan Perera
 
телемаркетинг Commerce Ver.
телемаркетинг   Commerce Ver.телемаркетинг   Commerce Ver.
телемаркетинг Commerce Ver.Nikolay Surtsukov
 
Student work gallery
Student work galleryStudent work gallery
Student work gallerySelena Knight
 
Образовательная программа "Магистр по управлению научными организациями"
Образовательная программа "Магистр по управлению научными организациями"Образовательная программа "Магистр по управлению научными организациями"
Образовательная программа "Магистр по управлению научными организациями"Ingria. Technopark St. Petersburg
 
Кадровые ресурсы для развития инновационных компаний, А. Тюрина
Кадровые ресурсы для развития инновационных компаний, А. ТюринаКадровые ресурсы для развития инновационных компаний, А. Тюрина
Кадровые ресурсы для развития инновационных компаний, А. ТюринаIngria. Technopark St. Petersburg
 
2012-WTR Club OPP
2012-WTR Club OPP2012-WTR Club OPP
2012-WTR Club OPPwaytorich
 
EPiServer CMS 6 UI
EPiServer CMS 6 UIEPiServer CMS 6 UI
EPiServer CMS 6 UITed Nyberg
 
Vizualization effect on microbres citrex
Vizualization effect on microbres citrexVizualization effect on microbres citrex
Vizualization effect on microbres citrexCITREX
 
KAYA KARATAS 26 02 2015 ckm konseri
KAYA KARATAS 26 02 2015 ckm konseriKAYA KARATAS 26 02 2015 ckm konseri
KAYA KARATAS 26 02 2015 ckm konseriaokutur
 
Оптимизация для поисковых систем. Лохотрон на рынке SEO
Оптимизация  для поисковых систем. Лохотрон на рынке SEOОптимизация  для поисковых систем. Лохотрон на рынке SEO
Оптимизация для поисковых систем. Лохотрон на рынке SEOIngria. Technopark St. Petersburg
 
Media Landscape (Fall 2009)
Media Landscape (Fall 2009)Media Landscape (Fall 2009)
Media Landscape (Fall 2009)Brian Hadley
 
Tillväxt Roadshow Mongara
Tillväxt Roadshow MongaraTillväxt Roadshow Mongara
Tillväxt Roadshow MongaraMongara AB
 
Financial Crisis N Perimeter Gscpa 032009
Financial Crisis N Perimeter Gscpa 032009Financial Crisis N Perimeter Gscpa 032009
Financial Crisis N Perimeter Gscpa 032009MCDFS
 

Viewers also liked (20)

Design stunning user experience with expression blend
Design stunning user experience with expression blendDesign stunning user experience with expression blend
Design stunning user experience with expression blend
 
телемаркетинг Commerce Ver.
телемаркетинг   Commerce Ver.телемаркетинг   Commerce Ver.
телемаркетинг Commerce Ver.
 
Student work gallery
Student work galleryStudent work gallery
Student work gallery
 
Образовательная программа "Магистр по управлению научными организациями"
Образовательная программа "Магистр по управлению научными организациями"Образовательная программа "Магистр по управлению научными организациями"
Образовательная программа "Магистр по управлению научными организациями"
 
Кадровые ресурсы для развития инновационных компаний, А. Тюрина
Кадровые ресурсы для развития инновационных компаний, А. ТюринаКадровые ресурсы для развития инновационных компаний, А. Тюрина
Кадровые ресурсы для развития инновационных компаний, А. Тюрина
 
Opal video slide show
Opal video slide showOpal video slide show
Opal video slide show
 
2012-WTR Club OPP
2012-WTR Club OPP2012-WTR Club OPP
2012-WTR Club OPP
 
最小化
最小化最小化
最小化
 
EPiServer CMS 6 UI
EPiServer CMS 6 UIEPiServer CMS 6 UI
EPiServer CMS 6 UI
 
Vizualization effect on microbres citrex
Vizualization effect on microbres citrexVizualization effect on microbres citrex
Vizualization effect on microbres citrex
 
Matter game race
Matter game raceMatter game race
Matter game race
 
KAYA KARATAS 26 02 2015 ckm konseri
KAYA KARATAS 26 02 2015 ckm konseriKAYA KARATAS 26 02 2015 ckm konseri
KAYA KARATAS 26 02 2015 ckm konseri
 
Gorilla by Jonathan
Gorilla by JonathanGorilla by Jonathan
Gorilla by Jonathan
 
Оптимизация для поисковых систем. Лохотрон на рынке SEO
Оптимизация  для поисковых систем. Лохотрон на рынке SEOОптимизация  для поисковых систем. Лохотрон на рынке SEO
Оптимизация для поисковых систем. Лохотрон на рынке SEO
 
Yam Labs
Yam LabsYam Labs
Yam Labs
 
Pan Demistyfied
Pan DemistyfiedPan Demistyfied
Pan Demistyfied
 
Media Landscape (Fall 2009)
Media Landscape (Fall 2009)Media Landscape (Fall 2009)
Media Landscape (Fall 2009)
 
Tillväxt Roadshow Mongara
Tillväxt Roadshow MongaraTillväxt Roadshow Mongara
Tillväxt Roadshow Mongara
 
Information Literacy
Information LiteracyInformation Literacy
Information Literacy
 
Financial Crisis N Perimeter Gscpa 032009
Financial Crisis N Perimeter Gscpa 032009Financial Crisis N Perimeter Gscpa 032009
Financial Crisis N Perimeter Gscpa 032009
 

Similar to 05.Blend Expression, Transformation & Animation

netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8netmind
 
Designing XAML apps using Blend for Visual Studio 2013
Designing XAML apps using Blend for Visual Studio 2013Designing XAML apps using Blend for Visual Studio 2013
Designing XAML apps using Blend for Visual Studio 2013Fons Sonnemans
 
Silverlight week2
Silverlight week2Silverlight week2
Silverlight week2iedotnetug
 
Introduction to Silverlight
Introduction to SilverlightIntroduction to Silverlight
Introduction to SilverlightEd Donahue
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designingpkaviya
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobilemowd8574
 
Unique features of windows 8
Unique features of windows 8Unique features of windows 8
Unique features of windows 8FITC
 
04.Navigation on Windows Phone
04.Navigation on Windows Phone04.Navigation on Windows Phone
04.Navigation on Windows PhoneNguyen Tuan
 
Start your app the better way with Styled System
Start your app the better way with Styled SystemStart your app the better way with Styled System
Start your app the better way with Styled SystemHsin-Hao Tang
 
Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1Dennis Perlot
 

Similar to 05.Blend Expression, Transformation & Animation (20)

WPF - An introduction
WPF - An introductionWPF - An introduction
WPF - An introduction
 
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
netmind - Primer Contacto con el Desarrollo de Aplicaciones para Windows 8
 
Designing XAML apps using Blend for Visual Studio 2013
Designing XAML apps using Blend for Visual Studio 2013Designing XAML apps using Blend for Visual Studio 2013
Designing XAML apps using Blend for Visual Studio 2013
 
Unit2
Unit2Unit2
Unit2
 
Silverlight week2
Silverlight week2Silverlight week2
Silverlight week2
 
Basic css
Basic cssBasic css
Basic css
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
Introduction to Silverlight
Introduction to SilverlightIntroduction to Silverlight
Introduction to Silverlight
 
IT2255 Web Essentials - Unit II Web Designing
IT2255 Web Essentials - Unit II  Web DesigningIT2255 Web Essentials - Unit II  Web Designing
IT2255 Web Essentials - Unit II Web Designing
 
jQuery Mobile
jQuery MobilejQuery Mobile
jQuery Mobile
 
Html css
Html cssHtml css
Html css
 
Unique features of windows 8
Unique features of windows 8Unique features of windows 8
Unique features of windows 8
 
04.Navigation on Windows Phone
04.Navigation on Windows Phone04.Navigation on Windows Phone
04.Navigation on Windows Phone
 
Html Tutorial
Html TutorialHtml Tutorial
Html Tutorial
 
Start your app the better way with Styled System
Start your app the better way with Styled SystemStart your app the better way with Styled System
Start your app the better way with Styled System
 
Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1Building appsinsilverlight4 part_1
Building appsinsilverlight4 part_1
 
Session 5#
Session 5#Session 5#
Session 5#
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 
Basic css-tutorial
Basic css-tutorialBasic css-tutorial
Basic css-tutorial
 
Basic-CSS-tutorial
Basic-CSS-tutorialBasic-CSS-tutorial
Basic-CSS-tutorial
 

More from Nguyen Tuan

07.Notifications & Reminder, Contact
07.Notifications & Reminder, Contact07.Notifications & Reminder, Contact
07.Notifications & Reminder, ContactNguyen Tuan
 
12.Maps and Location
12.Maps and Location12.Maps and Location
12.Maps and LocationNguyen Tuan
 
11.Open Data Protocol(ODATA)
11.Open Data Protocol(ODATA) 11.Open Data Protocol(ODATA)
11.Open Data Protocol(ODATA) Nguyen Tuan
 
10.Local Database & LINQ
10.Local Database & LINQ10.Local Database & LINQ
10.Local Database & LINQNguyen Tuan
 
09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WPNguyen Tuan
 
08.Push Notifications
08.Push Notifications 08.Push Notifications
08.Push Notifications Nguyen Tuan
 
13.Windows Phone Store
13.Windows Phone Store13.Windows Phone Store
13.Windows Phone StoreNguyen Tuan
 
06.Programming Media on Windows Phone
06.Programming Media on Windows Phone06.Programming Media on Windows Phone
06.Programming Media on Windows PhoneNguyen Tuan
 
03.Controls in Windows Phone
03.Controls in Windows Phone03.Controls in Windows Phone
03.Controls in Windows PhoneNguyen Tuan
 
02.Designing Windows Phone Application
02.Designing Windows Phone Application02.Designing Windows Phone Application
02.Designing Windows Phone ApplicationNguyen Tuan
 

More from Nguyen Tuan (10)

07.Notifications & Reminder, Contact
07.Notifications & Reminder, Contact07.Notifications & Reminder, Contact
07.Notifications & Reminder, Contact
 
12.Maps and Location
12.Maps and Location12.Maps and Location
12.Maps and Location
 
11.Open Data Protocol(ODATA)
11.Open Data Protocol(ODATA) 11.Open Data Protocol(ODATA)
11.Open Data Protocol(ODATA)
 
10.Local Database & LINQ
10.Local Database & LINQ10.Local Database & LINQ
10.Local Database & LINQ
 
09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP
 
08.Push Notifications
08.Push Notifications 08.Push Notifications
08.Push Notifications
 
13.Windows Phone Store
13.Windows Phone Store13.Windows Phone Store
13.Windows Phone Store
 
06.Programming Media on Windows Phone
06.Programming Media on Windows Phone06.Programming Media on Windows Phone
06.Programming Media on Windows Phone
 
03.Controls in Windows Phone
03.Controls in Windows Phone03.Controls in Windows Phone
03.Controls in Windows Phone
 
02.Designing Windows Phone Application
02.Designing Windows Phone Application02.Designing Windows Phone Application
02.Designing Windows Phone Application
 

Recently uploaded

Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Niamh verma
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...wyqazy
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7Pooja Nehwal
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Pooja Nehwal
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝soniya singh
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceanilsa9823
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceanilsa9823
 

Recently uploaded (7)

Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
Chandigarh Call Girls Service ❤️🍑 9115573837 👄🫦Independent Escort Service Cha...
 
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
哪里有卖的《俄亥俄大学学历证书+俄亥俄大学文凭证书+俄亥俄大学学位证书》Q微信741003700《俄亥俄大学学位证书复制》办理俄亥俄大学毕业证成绩单|购买...
 
9892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x79892124323 | Book Call Girls in Juhu and escort services 24x7
9892124323 | Book Call Girls in Juhu and escort services 24x7
 
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
Call US Pooja 9892124323 ✓Call Girls In Mira Road ( Mumbai ) secure service,
 
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Shalimar Bagh Delhi reach out to us at 🔝8264348440🔝
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best sexual service
 
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun serviceCALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
CALL ON ➥8923113531 🔝Call Girls Gomti Nagar Lucknow best Night Fun service
 

05.Blend Expression, Transformation & Animation

  • 1. Nguyen Tuan | Microsoft Certified Trainer
  • 2. Introduction to Blend Expression Transformation using Blend Expression Animation using Blend Expression
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. In-Box Controls Button Checkbox Radio Button Hyperlink http://vnexpress.net Combo Box Context Menu Flyout List BoxFlip View App Bar Panning Indicator Grid View List View Semantic Zoom Text Box Progress Ring Progress Bar Clear ButtonSpell Checking Password Reveal Button Rating Radio Button Scroll Bar Toggle Switch Tooltip
  • 11.  Canvas  Simplest, placement relative to two edges  Not scalable  Supports the following attached properties  Canvas.Top, Canvas.Left, Canvas.Zindex  StackPanel  Horizontal or vertical stacking  Grid  Uses rows and columns  Flexible Positioning (similar to tables in HTML)  Supports the following attached properties  Grid.Column, Grid.Row, Grid.Columnspan, Grid.Rowspan  More  Border, ScrollViewer, Viewbox, VariableSizedWrapGrid
  • 12.
  • 13.
  • 14.  Is a Drawing Surface  Children have fixed positions relative to top-left-corner <Canvas Width="250" Height="200" Background="Gray"> <Rectangle Canvas.Top="25" Canvas.Left="25" Width="200" Height="150" Fill="Yellow" /> </Canvas> The Canvas The Rectangle
  • 15.  Top & Left properties only make sense inside a Canvas <Canvas Width="250" Height="200" Background="Gray"> <Rectangle Canvas.Top="25" Canvas.Left="25" Width="200" Height="150" Fill="Yellow" /> </Canvas>
  • 16. = <Rectangle Canvas.Top="25" Canvas.Left="25"/> Rectangle rectangle = new Rectangle(); rectangle.SetValue(Canvas.TopProperty, 25); rectangle.SetValue(Canvas.LeftProperty, 25); = Rectangle rectangle = new Rectangle(); Canvas.SetTop(rectangle, 25); Canvas.SetLeft(rectangle, 25);
  • 17. XAML - Syntax  XAML is Case-Sensitive  Attribute Syntax  Property Element Syntax (<TypeName.Property>) <Button Background="Blue"Foreground="Red" Content="This is a button"/> <Button> <Button.Background> <SolidColorBrush </Button.Background> <Button.Foreground> <SolidColorBrush </Button.Foreground> <Button.Content> This is a button </Button.Content> </Button> Color="Blue"/> Color="Red"/> http://msdn.microsoft.com/en-us/library/cc189036(VS.95).aspx
  • 18.  The StackPanel will place its children in either a column (default) or row. This is controlled by the Orientation property. <StackPanel Orientation="Vertical"> <Button Content="Button" /> <Button Content="Button" /> </StackPanel>
  • 19. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal" Margin="0,0,0,12"> <TextBlock Text="Username" FontSize="48" Width="240" TextAlignment="Right" Margin="0,0,20,0"/> <TextBox FontSize="48" Width="300"/> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,12"> <TextBlock Text="Password" Margin="0,0,20,0" FontSize="48" Width="240" TextAlignment="Right"/> <PasswordBox Margin="0" FontSize="48" Width="300"/> </StackPanel> <Button Content="Login" HorizontalAlignment="Left" Margin="257,0,0,0" FontSize="48"/> </StackPanel>
  • 20.
  • 21.  The Grid is a powerful layout container.  It acts as a placeholder for visual elements  You specify the rows and columns, and those define the cells.  The placement of an element in the Grid is specified using attached properties that are set on the children of the Grid:  Supports different types of row and column sizes in one Grid:  Pixel size: Fixed value in pixels  Auto size: The Đell has the size of it͛s ĐoŶteŶts  Star size: whatever space is left over from fixed- and auto-sized columns is allocated to all of the columns with star-sizing <Image Grid.Column="3" Source="demo.png" Stretch="None"/>
  • 22.
  • 24.  Normal  Multi Line  Border & Colors <TextBox Text="Hello World" TabIndex="4" /> <TextBox Text="Hello World" Height="200" AcceptsReturn="True" /> <TextBox Text="Hello World" BorderThickness="3" BorderBrush="Black" SelectionHighlightColor="Blue" Background="LightGray" />
  • 25.  No Clear Button(“Blen default”) <TextBox Text="Hello World" TextWrapping="Wrap" />  InputScope <TextBox InputScope="Search" />
  • 26.  Supports BMP, JPG, TIF and PNG  Source property  External, start with ‘http’:
  • 27. AppBar CommandBar  Properties  Foreground  Background  IsSticky  IsOpen  PrimaryCommands  SecondaryCommands  Events  Opened  Closed  Properties  Foreground  Background  IsSticky  IsOpen  Children  Events  Opened  Closed
  • 28. • AppBarButton AppBarToggleButton AppBarSeparator • App bar buttons differ from standard buttons in several ways: • Their default appearance is a circle instead of a rectangle. • You use the Label and Icon properties to set the content instead of the Content property. The Content property is ignored. • The button's IsCompact property controls its size.
  • 29. AppBarButtons • FontIcon • The icon is based on a glyph from the specified font family. • BitmapIcon • The icon is based on a bitmap image file with the specified Uri. • PathIcon • The icon is based on Path data. • SymbolIcon • The icon is based on a predefined list of glyphs from the Segoe UI Symbol font.
  • 30. • Images & Paths (Vectors) • http://modernuiicons.com • http://thenounproject.com • http://www.thexamlproject.com • http://www.syncfusion.com/downloads/metrostudio • Symbols • http://msdn.microsoft.com/en-us/library/windows/apps/jj841126.aspx • http://www.geekchamp.com/icon-explorer/introduction • http://www.fontello.com/ • http://fontastic.me
  • 32.
  • 33.  Reusable objects such as data, styles and templates.  Assigned a unique key (x:Key) so you can reference to it.  Every element has a Resources property.  Nesting Support  All static resources are loaded on page load  Resource is loaded even if not used 31
  • 34.
  • 35.  Menu Window - Resources  Shows all resources of all open XAML documents  Link to Resource Dictionary  Edit Resource  Rename Resource  Move Resource  Delete Resource  Apply Resource by Drag & Drop 33
  • 36.  Store resources in external files  Declare once, use many times  Makes XAML shorter and easier to read  Can be stored in external assemblies 34
  • 38.
  • 41.  XAML supports key frames  A key frame defines an objects target value on a moment in an animation.  A key frame has an interpolation method.  A Key Frame target can be a:  Double (X, Y, Height, Width, Opacity, Angle, etc.)  Color (Fill, Stroke, etc.)  Object (Visibility, Text, etc)
  • 42. Storyboards  Creating a storyboard in Expression Blend 37
  • 43.  The Storyboard object has interactive methods to Begin, Pause, Resume, and Stop an animation.
  • 45.
  • 46.
  • 48.  XAML = UI flexibility  Customize the look of an application without Changing it’s behavior.  Styling = Small Visual Changes on an Element (Font, Background Color, etc.)  Templating = Replacing Element’s entire visual Tree.
  • 49. <Page.Resources> <Style x:Key="HollandButtonStyle" TargetType="Button"> <Setter Property="Background" Value="#FFFF9E00"/> <Setter Property="FontSize" Value="24"/> <Setter Property="FontStyle" Value="Italic"/> • </ > • </ > • < > • < Content="Button" • Style="{ HollandButton Style}"/>
  • 50.  If You omit the Style’s key an specify only the TargetType, then the Style is automatically applied to all elements of that target type within the same scope (it is implicitly applied).  This is typically called a typed style as opposed to a named style. <Style TargetType="TextBox"> <Setter Property="FontFamily" Value="Arial Black"/> <Setter Property="FontSize" Value="16"/> </Style>
  • 51. <Page.Resources> <Style x:Key="HollandButtonStyle" TargetType="Button"> <Setter Property="Background" Value="#FFFF9E00"/> <Setter Property="FontSize" Value="24"/> <Setter Property="FontStyle" Value="Italic"/> </Style> <Style x:Key="GermanButtonStyle" TargetType="Button" BasedOn="{StaticResource HollandButtonStyle}"> <Setter Property="Background" Value="White"/> <Setter Property="Foreground" Value="Black"/> </Style> </Page.Resources> <Grid > <Button Content="Button" Style="{StaticResource GermanButtonStyle}"/> <Button Content="Button" Style="{StaticResource HollandButtonStyle}"/> </Grid>
  • 53.
  • 54.
  • 55.  Data binding is the process that establishes a connection, or binding, between the UI and the business object which allows data to flow between the two  Enable clean view/model separation and binding  Change UI presentation without code-behind modifications  Every binding has a source and a target  Source is the business object or another UI element  Target is the UI element  Binding Expressions can be one way or two way and supports validation & converters
  • 56.  Element binding is performed in the same manner as Data Binding with one addition: the ElementName property. ElementName defines the name of the binding source element. <Grid> <TextBlock Text="{Binding Value, ElementName=mySlider}" FontSize="32"/> <Slider x:Name="mySlider" Maximum="10" Value="6" /> </Grid>