Build a simple UI for your application Learning & Development Team Telerik Software Academy.

Slides:



Advertisements
Similar presentations
Creating Vector Graphics in the Web Learning & Development Telerik Software Academy.
Advertisements

Redundant Array of Independent Disks Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Writing HTML made easier Telerik School Academy HTML, CSS and JavaScript.
JavaScript Development Tools
Inside Windows Boot Process Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Guidelines to Preparing and Delivering an Elevator Pitch Presentation Svetlin Nakov Telerik Software Academy academy.telerik.com Manager Technical Training.
Two basic algorithms for path searching in a graph Telerik Algo Academy Graph Algorithms.
Binary, Decimal and Hexadecimal Numbers Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Eclipse + Android SDK, VS + Windows Phone SDK Telerik Software Academy Hybrid Mobile Applications.
Welcome to the JSON-stores world Learning & Development Telerik Software Academy.
Course Content, Evaluation, Exams Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Eclipse + Android SDK, VS + Windows Phone SDK Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Twitter Bootstrap Telerik Software Academy
Things you need to know George Georgiev Technical Trainer GeorgeAtanasov George Atanasov Front-End Developer.
Hamiltonian Cycle Penka Borukova Student at Telerik Academy.
Group Policy Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
Reverse polish notation, Operations with big numbers Ivelin Rachev Telerik Corporation “Baba Tonka” High School of Mathematics.
April, Sofia, Telerik Software Academy Svetlin Nakov Telerik Software Academy academy.telerik.com Technical Trainer
Telerik Software Academy ASP.NET MVC.
Sales Processes, Sales Cycle and the Sales Force Margarita Antonova Volunteer Telerik Academy academy.telerik.com Business System Analyst Telerik.
Design Patterns that ease the design by identifying a simple way to realize relationships between entities. Antony Jekov Telerik Software Academy academy.telerik.com.
Using KendoUI for SPA Applications Learning & Development Telerik School Academy.
The way to create cross-platform apps Telerik School Academy Xamarin apps for iOS, Android & WinPhone.
PEST Analysis, Porter’s 5 Forces and Sustainability Strategies Margarita Antonova Volunteer Telerik Academy academy.telerik.com Business System.
Searching for a Job, Writing CV and Cover Letter, Passing a Job Interview Telerik Academy for Software Engineers October 6 th 2012 – Sofia academy.telerik.com.
Drive Partitioning Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Telerik Software Academy Mobile apps for iPhone & iPad.
Google APIs and Facebook API Ivaylo Kenov Penka Borukova Telerik Corporation Telerik Academy Students.
The magic of virtual machines Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator Marian Marinov CEO of 1H Ltd.
Web development with ExpressJS Learning & Development Telerik School Academy.
What it is, and does it work Learning & Development Telerik School Academy.
Device APIs with Xamarin
Telerik Software Academy Mobile apps for iPhone & iPad.
Academy.telerik.com Class of , Fall 2013.
Telerik Software Academy Databases.
Google APIs and Facebook API Ivaylo Kenov Penka Borukova Telerik Corporation Telerik Academy Students.
Telerik Software Academy ASP.NET Web Forms.
What are WinJS and WinRT, Using the APIs in JavaScript George Georgiev Telerik Software Academy academy.telerik.com Technical Trainer itgeorge.net.
JavaScript Modules and Patterns Telerik Software Academy
The True power of dynamic web pages Learning & Development Team Telerik Software Academy.
Approximate string matching Evlogi Hristov Telerik Corporation Student at Telerik Academy.
Xamarin with SQLite Telerik School Academy Xamarin apps for iOS, Android & WinPhone.
Know your Tools! Telerik Software Academy JavaScript Fundamentals.
Ivaylo Kenov Telerik Software Academy Technical Assistant.
Developing "evil" JavaScript applications Learning & Development Telerik School Academy.
Process and Writing Styles Tina Stancheva Doroteya Agayna Telerik Software Academy academy.telerik.com Writing Documentation.
The PhoneGap History Doncho Minkov Telerik Software Academy Technical Trainer
Building Rock-Solid Software Svetlin Nakov Telerik Software Academy Manager Technical Training
Adobe® Photoshop® CS6 Essentials
Cultivating Professionals for Your Company The Success Story of Telerik Svetlin Nakov, PhD Manager Technical Training Telerik Corp.
Telerik School Academy Xamarin apps for iOS, Android & WinPhone.
The way of the ViewModel and the Binding Learning & Development Telerik School Academy.
AJAX with ASP.NET MVC Telerik Software Academy
Nencho Nenchev Doroteya Agayna Telerik Software Academy Telerik Support Leads.
Installation, Sample Usage, Strings and OOP Telerik Software Academy Software Quality Assurance.
In JavaScript Learning & Development Telerik Software Academy.
Services in AngularJS Telerik Software Academy
Svetlin Nakov Telerik Software Academy Manager Technical Training
What is Roslyn and how can we use it? Telerik Academy Plus C# 6.0 and Roslyn Seminar.
Splitting JavaScript into Dependent Modules Learning & Development Telerik Software Academy.
Changing the default visualization of views in Xamarin.Forms Telerik School Academy Xamarin apps for iOS, Android & WinPhone.
Telerik Software Academy HTML5.
What to expect from the new IDE Telerik Academy Plus Visual Studio 2015 and ASP.NET 5.
Hristian Hristov Telerik Corporation
Automating Windows Deployment Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
Store Apps, Development Tools, App key features George Georgiev Telerik Corporation Technical Trainer itgeorge.net.
Server Roles and Features Borislav Varadinov Telerik Software Academy academy.telerik.com System Administrator
Binary, Decimal and Hexadecimal Numbers Telerik Software Academy C# Fundamentals – Part 2.
Nikolay Kostov Telerik Software Academy academy.telerik.com Team Lead, Senior Developer and Trainer
Adding UI and Audio element Telerik Academy Plus Unity 2D Game Development.
Presentation transcript:

Build a simple UI for your application Learning & Development Team Telerik Software Academy

 WPF and XAML Overview  The XAML Syntax  Elements and their properties  Controls  Buttons and stuff  Getting and passing data to the UI  Handling Events  Click, loaded, etc…  Creating Animations

 Stands for eXtensible Application Markup Language  Declarative markup language for building UI  Based on XML  Used to simplify creation of UI for a.NET apps  Separates presentation (UI) from business logic  XAML enables a workflow where different parties can work simultaneously  The UI and the logic of an application can be developed using different tools (VS and Blend)

 XAML is used for creating and initializing.NET objects  Used as a human-authorable way of describing the UI  Used to separate the UI from the business logic  XAML contains a hierarchy of elements representing visual objects  These objects are known as user interface elements or UI elements 5

 XAML is a completely declarative language  A declarative language says "what"  An imperative language says "how"  XAML describes the behavior and integration of components (in most cases UI components)  Cannot describe business logic 6

 Introduced in 2006 with.NET 3.0  With Windows Presentation Foundation (WPF)  WPF is "the new way" to create desktop apps  Successor of Windows Forms  Silverlight is introduced in 2007  Under the name WPF/E - WPF Everywhere  Used JavaScript for back-end  Windows Runtime (WinRT) introduced in 2011  Used for Windows Store apps  Closer to Silverlight than WPF

 Windows Presentation Foundation - WPF  The successor of Windows Forms  Uses XAML to describe the presentation (UI)  C# / VB.NET for the back-end logic  Silverlight  Develop RIA in collaboration with ASP.NET  Browsers need a Silverlight plugin  Windows Runtime - WinRT  Build Windows Store apps in Windows 8

 All XAML graphics are Direct3D applications  Direct3D (part of DirectX) is used in graphical applications where performance is important  Uses the video card hardware for rendering  The result: high-quality rich-media UI  Vector-based graphics allow lossless scaling  XAML implements a floating-point logical pixel system and supports 32-bit ARGB color 10

 XAML supports time-based animations  Presentation timers are initialized and managed by XAML  Scene changes are coordinated using a storyboard  Animations can be triggered by external events  Including user action or events  Animation can be defined on a per-object basis directly from the XAML markup 11

 XAML can incorporate audio and video into a user interface  Audio support in XAML is a thin layer over the existing functionality in Win32 and WMP  XAML supports the videos formats that the OS supports  i.e. if WMP can play a file – XAML can too  Relationship between video and animation is also supported  They are both ways of showing moving images  Animation can be synchronized with media 12

 In XAML a style is a set of properties applied to the content used for visual rendering  Similar to the concept of CSS  Use them to standardize non-formatting characteristics  XAML styles have specific features  Ability to apply different visual effects based on user events  Styles are created using MS Expression Blend 13

 Templates in XAML allow you to fully change the UI of anything in XAML  Different templates available within XAML  ControlTemplate  Manages the visualization of a control  ItemsPanelTemplate  Handles the visualization panel of list control  DataTemplate and HierarchicalDataTemplate  Responsible for the visualization of items in list controls 14

 Commands are more abstract and loosely- coupled version of events  Examples: copy, cut, paste, save, etc.  XAML support for commands reduces the amount of code we need to write  It gives us more flexibility to change the UI without breaking the back-end logic  Commands have action, source, target and binding 15

 The power of commands:  XAML defines a number of built-in commands  Commands have automatic support for input actions  Some XAML controls have built-in behavior tied to various commands  Commands are intended to do two things:  Check whether an action is available  Execute an action 16

 At the lower-level XAML works in terms of shapes, not in terms of painting pixels  Shapes are vector-based and are easily scaled  Developers create shape objects and let XAML maintain the view in the most optimized way  XAML provides a number of ready-to-use shape objects like line, rectangle, ellipse, path, etc.  Shape objects can be used inside panels and inside most XAML controls 17

Live Demo

форум програмиране, форум уеб дизайн курсове и уроци по програмиране, уеб дизайн – безплатно програмиране за деца – безплатни курсове и уроци безплатен SEO курс - оптимизация за търсачки уроци по уеб дизайн, HTML, CSS, JavaScript, Photoshop уроци по програмиране и уеб дизайн за ученици ASP.NET MVC курс – HTML, SQL, C#,.NET, ASP.NET MVC безплатен курс "Разработка на софтуер в cloud среда" BG Coder - онлайн състезателна система - online judge курсове и уроци по програмиране, книги – безплатно от Наков безплатен курс "Качествен програмен код" алго академия – състезателно програмиране, състезания ASP.NET курс - уеб програмиране, бази данни, C#,.NET, ASP.NET курсове и уроци по програмиране – Телерик академия курс мобилни приложения с iPhone, Android, WP7, PhoneGap free C# book, безплатна книга C#, книга Java, книга C# Николай Костов - блог за програмиране