Person Vehicle Calendar People Vehicles Tax Orders Shipping Schedules Presentation logic Not reusable EF POCO XML WCF SQL Server Oracle Telco Switches.

Slides:



Advertisements
Similar presentations
Titolo Titolo Titolo Titolo Titolo Autore Titolo Titolo Titolo Titolo Titolo Autore DESCRIZIONE DELLA SPECIE Lorem ipsum dolor sit amet, consectetur adipiscing.
Advertisements

FredCavazza.Net 800*600 browser window template
Title of Poster Here Doctors, Researchers, PhDs, etc… Department of Something Science, The Rockefeller University, New York, NY Title of Poster Here Doctors,
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum nec massa urna. Mauris et augue eros. Aenean consequat.
THIRD LINE DOCUMENT TITLE SECOND LINE Month day, year Presenter name Presenter title SUBHEAD SINGLE AND DOUBLE LINE.
Below are two template you might like to use. one with custom colors (this one also has Poster Tips) one with UTMB Identity colors Information brought.
© ExactTarget, All Rights Reserved User Community Programs.
Type Your Poster Title in Here This is where you should put your name and date References: Type your references in here: Aliquam nec lacus eget sapien.
Example KCL master page Example sub title (0 x indent) Example description (1 x indent) Introduction (0 x indent) Body text (1 x indent) lorem ipsum dolor.
Insert Your Title Here Using Mixed Case Insert Authors Here Insert Department and Institution Here How to Use This Template This template is sized to create.
Engineering Technology Lorem Ipsum Pen Assembly
Poster Title Author #1, Author #2, Author #3
Your Department – Your Institution
TITLE. An engineer’s World
Possible place to list names etc.
Logo This could be the poster title
Authors & Affiliations
Materials & Methods Type Your Poster Title in Here This is where you should put your name and date Background and Objectives Type your words here: Lorem.
Type Your Poster Title in Here This is where you should put your
Authors, e.g. Gokhan Gurbuz
Name of Community Address | Category
Please Insert Your Poster Title Here
Please Insert Your Poster Title Here
Poster Number – Poster Title
Newsletter template This template is set up on 8.5”x11” letter size paper Place your content into the chosen template and adjust as desired Print both.
Template for a 32” x 54” poster presentation (your title goes here)
Poster Title Template, Times 72 font
Template for a 3’ x 4’ poster presentation (your title goes here)
TITLE. An engineer’s World
Author Name. , Author Name
Type Your Poster Title in Here This is where you should put your name and date Introduction Type your words here: Lorem ipsum dolor sit amet, consectetuer.
Place Title Here Header Header Header Header Header Header Header
DOCUMENT TITLE Presenter name(s) Presenter title Month day, year.
Template for a 4” x 8” poster presentation (your title goes here)
Poster Title (Arial 65pts Bold)
Poster Title Your name Section Title Section Title Section Title
DOCUMENT TITLE Presenter name(s) Presenter title Month day, year.
Template for a 43” x 54” poster presentation (your title goes here)
Saratoga, California — Monday, March 18, 2013 — 2 pages five cents
THIS IS SAMPLE TEXT. YOUR TEXT GOES HERE
Please Insert Your Poster Title Here
Template for a 36” x 54” poster presentation (your title goes here)
Template for a 4” x 4” poster presentation (your title goes here)
Title Bar And Sub Heading Abstract Discussion Introduction References
Author Name. , Author Name
Type Your Poster Title in Here This is where you should put your name and date Introduction Type your words here: Lorem ipsum dolor sit amet, consectetuer.
Template for a 27” x 54” poster presentation (your title goes here)
TITLE. An engineer’s World
Add Your Poster Title Here
Place Title Here Header Header Header Header Header Header Header
Title Bar A B C A-1 A1 C1 And Sub Heading Abstract Introduction
TITLE. An engineer’s World
Authors, e.g. Gokhan Gurbuz
TITLE. An engineer’s World
Type Your Poster Title in Here This is where you should put your name and date Introduction Type your words here: Lorem ipsum dolor sit amet, consectetuer.
Place Title Here Header Header Header Header Header
Project Title Author(s) Introduction Results Discussion Methods
Poster´s title International
Poster Title Author #1, Author #2, Author #3
Scanner Class Prof Crudele 09/02/07.
Project Title Author(s) Introduction Discussion Results Methods
Project Title Author(s) Background Results Discussion Hypothesis
Project Title Author(s) Background Results Discussion Hypothesis
Poster Title (Arial 65pts Bold)
Title of Project Abstract Data Discussion Hypothesis Methods Terms
Poster Title Template, Times 72 font
Title of Project Abstract Data Discussion Hypothesis Methods Terms
Title of Poster Your Name Heading 1 Heading 2 Heading 3 Heading 4
Title of Poster Your Name Heading 1 Heading 2 Heading 3
Name of Community Address | Category
Presentation transcript:

Person Vehicle Calendar People Vehicles Tax Orders Shipping Schedules Presentation logic Not reusable EF POCO XML WCF SQL Server Oracle Telco Switches Web Services Media Streams Web Services REST JSON RIA Appointments

Person Vehicle Calendar People Vehicles Tax Orders Shipping Schedules EF POCO XML WCF SQL Server Oracle Telco Switches Web Services Media Streams Web Services REST JSON RIA Aggregation of data & services for your presentation logic

<Setter Property="Foreground" Source={StaticResource MyAppStyles}, Value="{Binding ForegroundColor}" <ResourceDictionary xmlns:stylesNS="clr-namespace:MyProject.Styles">

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

<ListBox ItemsSource="{Binding States}“ ItemTemplate="{StaticResource StatesDataTemplate}“/> <ListBox ItemsSource="{Binding Vehicles}“ ItemTemplate="{StaticResource VehicleDataTemplate}"/> DataType="models:Vehicle"> <ListBox ItemsSource="{Binding States}“ ItemTemplate="{StaticResource StatesDataTemplate}"/> DataType=“models:State">

namespace SLInsurance. Views { public partial class AppointmentView : UserControl {... this.DataContext = new ViewModels. AppointmentViewModel();

<TextBlock Text="{Binding StateName}" Visibility="{Binding IsDropDownOpen, RelativeSource={RelativeSource FindAncestor AncestorType=ComboBox}, Converter={StaticResource BoolToVisibilityConverter} }"/>

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

((System.Windows.Data.Debugging.BindingDebugState)BindingState).Error != null

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

public partial class Appointments : UserControl { private void OnAppointmentsListbox_SelectionChanged( object sender, SelectionChangedEventArgs e ){ this.DataService.GetClaimById( GetClaimsCallback, ((AdjusterAppointment) (this.appointmentsListbox.SelectedItem)).Claim_Id); } private void GetClaimsCallback( ObservableCollection claims) { this. AppoinmentsListBox.Items.Add(claims[0]); <ListBox x:Name="appointmentsListbox" ItemsSource="{Binding Appointments}" SelectionChanged="OnAppointmentsListbox_SelectionChanged"> public void GetClaimById( Action > callback, string claim_Id ) { var query = DataContext.GetClaimByIdQuery( claim_Id ); _getClaimCallback = callback; _claimLoadOperation = DataContext.Load (query); …

public class MethodInvoke Extension : IMarkupExtension { // Properties Exposed in XAML as Intellisense Love public String Method { get; set; } // Invoked by the XAML runtime public object ProvideValue(IServiceProvider serviceProvider) { <UserControl x:Class=“ AppointmentsView " xmlns:MyUtils="clr-namespace:SLInsurance;assembly=SLInsurance">... <ComboBox Name=“appointmentsListBox" SelectionChanged="{MyUtils:MethodInvoke Method=OnAppointmentChanged}"

public partial class AppointmentsViewModel { private void OnAppointmentChanged( ) { this.DataService.GetClaimById( GetClaimsCallback, this.SelectedAppointment.Claim_Id ); } private void GetClaimsCallback( ObservableCollection claims ) { this.SelectedClaim = claims[0]; public void GetClaimById( Action > callback, string claim_Id ) { var query = DataContext.GetClaimByIdQuery( claim_Id ); _getClaimCallback = callback; _claimLoadOperation = DataContext.Load (query); … <ListBox x:Name="appointmentsListbox" ItemsSource="{Binding Appointments}" SelectionChanged="{helpers:MethodInvoke Method=OnAppointmentChanged}”>

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

this.DataContextChanged += View_DataContextChanged; … void View_DataContextChanged( object sender, DependencyPropertyChangedEventArgs e) { INotifyPropertyChanged customer; customer = e.OldValue as INotifyPropertyChanged; if (customer != null) customer.PropertyChanged -= customer_PropertyChanged; customer = e.NewValue as INotifyPropertyChanged; if (customer != null) customer.PropertyChanged += customer_PropertyChanged; }

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

private void vinTextBox_TextChanged( object sender, TextChangedEventArgs e ) { Helpers.VinCarInfo carInfo = Helpers.VINParser.Parse(vinTextBox.Text); this.vehicleYearsAutoComplete.Text = carInfo.Year.Value.ToString(); this.vehicleMakeAutoComplete.Text = carInfo.Make; this.vehicleModelComboBox.SelectedValue = carInfo.Model; <TextBox Name="vinTextBox" Text="{Binding SelectedClaim.InsuredVIN, Mode=TwoWay}" TextChanged="vinTextBox_TextChanged" public void GetVehicleMakes(Action > callback, int year) { _getVehicleMakesCallback = callback; this.SearchServiceClient.GetVehicleMakesCompleted += OnGetVehicleMakesCompleted; this.SearchServiceClient.GetVehicleMakesAsync(year); } public void LoadVehicleYears() { this.DataService.GetVehicleYears(GetVehicleYearsCallback); } public void LoadVehicleMakes(Nullable year) { if (year.HasValue) { this.DataService.GetVehicleMakes(GetVehicleMakessCallback, year.Value); … public void LoadVehicleModels(Nullable year, string make) { if (year.HasValue) { this.DataService.GetVehicleModels(GetVehicleModelssCallback, year.Value, make);

<TextBox Name="vinTextBox" Text="{ Binding SelectedClaim.InsuredVIN, Mode=TwoWay}" UpdateSourceTrigger=PropertyChanged}" public void GetVehicleMakes(Action > callback, int year) { _getVehicleMakesCallback = callback; this.SearchServiceClient.GetVehicleMakesCompleted += OnGetVehicleMakesCompleted; this.SearchServiceClient.GetVehicleMakesAsync(year); void OnClaimPropertyChanged (object sender, System.ComponentModel.PropertyChangedEventArgs e) { switch ( e.PropertyName ) { case "InsuredVIN" : ParseVIN(); break; … private void ParseVIN () { Helpers.VinCarInfo carInfo = Helpers.VINParser.Parse(this.SelectedClaim.InsuredVIN); this.SelectedClaim.Insured Year = carInfo.Year; this.SelectedClaim.Insured Make = carInfo.Make; this.SelectedClaim.Insured Model = carInfo.Model; …

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

Complex Types (SP1) Custom Client Code Gen(SP1) Custom Client Code Gen(SP1) DateTimeOffset MVVM Support EF Code First (coming soon) EF Code First (coming soon)

Binding In Style Setters Implicit DataTemplates RelativeSource Ancestor Bindings Databinding Debugging Custom Markup Extensions DataContextChanged Event UpdateSourceTrigger WCF RIA Services Enhancements Text, Printing & Media

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vivamus enim dolor, molestie at auctor id, auctor ultrices nisi. Curabitur urna lorem, luctus hendrerit dapibus quis, facilisis sed orci. Aliquam nunc massa, placerat id pretium eget, luctus sit amet diam. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque fermentum neque at nisl bibendum cursus. Aliquam sollicitudin elit eu nunc placerat et pulvinar mauris condimentum. Donec sed sapien elit, vel condimentum justo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut ut odio nunc. Maecenas vitae quam urna. Nulla a ante imperdiet sem tincidunt porta. Donec est tellus, imperdiet eget ullamcorper eu, laoreet vel lorem. Fusce ornare nisl mollis lacus cursus semper suscipit urna ultricies. Phasellus magna justo, commodo sodales auctor nec, euismod vitae purus. Vivamus dignissim feugiat tristique. Cras aliquet sapien non justo sagittis imperdiet. In a velit mauris, eu sodales magna. Fusce lectus lectus, blandit non semper vitae, cursus ut purus. Vestibulum quis aliquam augue. Morbi id est sed diam imperdiet pretium vitae a turpis. Sed vel sapien arcu. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse ac diam ut ante imperdiet lacinia. Integer sit amet justo sit amet tortor facilisis id sit amet augue. Etiam in risus vel erat molestie viverra. Suspendisse pellentesque bibendum sagittis. Etiam convallis leo at dui ornare eget elementum odio dictum. Integer tempus ultricies lectus. Maecenas dictum ipsum id nisl adipiscing eu iaculis tortor suscipit. Etiam sed sapien neque, in ultricies magna. Aliquam in nisl et lectus bibendum vestibulum. Donec suscipit, velit vitae convallis accumsan, tortor magna dignissim purus, sed convallis orci tortor sed sem. Cras quis est id turpis congue porta. Proin pharetra mattis nulla quis vestibulum. Ut in sapien id mauris egestas rhoncus a eget erat. Vivamus tempor tempus quam facilisis dapibus. Curabitur volutpat ipsum vitae tortor tincidunt sed malesuada urna tincidunt. Quisque porttitor, neque id malesuada faucibus, quam leo auctor nisl, quis aliquet enim ligula ut odio. Etiam vel turpis magna. Cras iaculis est sem. Pellentesque malesuada, libero eu tempor tempor, tellus ipsum dignissim sapien, id facilisis augue ipsum vitae quam. Cras quis imperdiet leo. In orci purus, placerat ac ultricies in, elementum vitae turpis. Nunc lectus sapien, sagittis id luctus ut, hendrerit ut massa. Sed purus sapien, pharetra id faucibus nec, semper id lacus. Phasellus et lectus leo, eget adipiscing lorem. Donec fermentum lacus dolor. Etiam laoreet tristique nisi, sit amet convallis nunc lacinia et. Integer aliquam, magna ac porttitor congue, est libero consectetur lacus, lobortis porta orci risus nec magna. Integer sapien purus, volutpat sit amet vehicula vitae, accumsan a felis. Sed a nulla vel enim laoreet consequat. Nulla ut neque massa, at semper enim. risus nec magna. Integer sapien purus, volutpat sit amet vehicula vitae, accumsan a felis. Sed a nulla vel enim laoreet consequat. Nulla ut neque massa, at semper enim. <RichTextBox OverflowContentTarget="{Binding ElementName=overflow1}">...

Please provide us feedback on the beta!