Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8...

53

Transcript of Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8...

Page 1: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 2: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 3: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

• Visual C#

ASP.NET WebForms & MVC, Silverlight, Windows Phone, Windows 8

• SQL Server

• Trainer

www.reflectionit.nl

Page 4: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 5: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 6: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 7: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 8: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 9: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 10: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 11: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 12: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 13: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 14: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 15: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

Motion brings your app to life

Page 16: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 17: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 18: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 19: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 20: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 21: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 22: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

public App() {

...

// Show graphics profiling information while debugging.

if (System.Diagnostics.Debugger.IsAttached) {

// Display the metro grid helper.

MetroGridHelper.IsVisible = true;

Page 23: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 24: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 25: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

new TransitionFrame

<toolkit:TransitionService.NavigationInTransition><toolkit:NavigationInTransition>

<toolkit:NavigationInTransition.Backward><toolkit:TurnstileTransition Mode="BackwardIn" />

</toolkit:NavigationInTransition.Backward><toolkit:NavigationInTransition.Forward>

<toolkit:TurnstileTransition Mode="ForwardIn" /></toolkit:NavigationInTransition.Forward>

</toolkit:NavigationInTransition></toolkit:TransitionService.NavigationInTransition><toolkit:TransitionService.NavigationOutTransition>

<toolkit:NavigationOutTransition><toolkit:NavigationOutTransition.Backward>

<toolkit:TurnstileTransition Mode="BackwardOut" /></toolkit:NavigationOutTransition.Backward><toolkit:NavigationOutTransition.Forward>

<toolkit:TurnstileTransition Mode="ForwardOut" /></toolkit:NavigationOutTransition.Forward>

</toolkit:NavigationOutTransition></toolkit:TransitionService.NavigationOutTransition>

Page 26: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

<Style x:Key="DefaultPage"

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

TargetType="phone:PhoneApplicationPage">

<Setter Property="toolkit:TiltEffect.IsTiltEnabled"

Value="True" />

<Setter Property="toolkit:TransitionService.NavigationInTransition">

<Setter.Value>

<toolkit:NavigationInTransition>

<toolkit:NavigationInTransition.Backward>

<toolkit:SlideTransition Mode="SlideRightFadeIn" />

</toolkit:NavigationInTransition.Backward>

<toolkit:NavigationInTransition.Forward>

<toolkit:SlideTransition Mode="SlideLeftFadeIn" />

</toolkit:NavigationInTransition.Forward>

</toolkit:NavigationInTransition>

</Setter.Value>

</Setter>

<Setter Property="toolkit:TransitionService.NavigationOutTransition">

<Setter.Value>

...

Style="{StaticResource DefaultPage}"

Page 27: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 28: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 29: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 30: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 31: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 32: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

CreateOptions Functional Behavior

None No initialization options are specified. This is the NOT the default value for the BitmapImage.CreateOptions property in Silverlight for Windows Phone (DelayCreation is the default).

DelayCreation Causes a BitmapSource object to delay initialization until it is necessary. This is useful when dealing with collections of images. This is the default value in WP7(and Mango) of the BitmapImage.CreateOptions property in Silverlight.

IgnoreImageCache Loads images without using an existing image cache. This option should only be selected when images in a cache need to be refreshed.

BackgroundCreation Causes object to initialize as soon as declared, uses image cache for same URIs, downloads images in background and decodes them in background.

BackgroundCreation, DelayCreation

Causes object to delay initialization until it is necessary, uses image cache for same URIs, downloads images in background and decodes them in background.

BackgroundCreation, DelayCreation, IgnoreImageCache

Causes object to delay initialization until it is necessary., ignores image cache for same URIs, downloads images in background and decodes them in background.

Page 33: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

<Image Source="{Binding ImageUrl}" />

<Image>

<Image.Source>

<BitmapImage UriSource="{Binding ImageUrl}"

CreateOptions="BackgroundCreation,DelayCreation" />

</Image.Source>

</Image>

http://blogs.msdn.com/b/slmperf/archive/2011/06/13/off-thread-decoding-of-images-on-mango-

how-it-impacts-you-application.aspx

Page 34: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 35: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

<Rectangle Width="100" Height="100" Fill="Red"Tap="Rectangle_Tap" />

Page 36: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

<Image Source="Images/Penguins.jpg"Stretch="None">

<Custom:Interaction.Behaviors><MultiTouch_Behaviors_WP7:MultiTouchBehavior />

</Custom:Interaction.Behaviors></Image>

Stretch Pinch Rotate

http://multitouch.codeplex.com/

Page 37: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 38: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

<StackPanel Orientation="Vertical">

<TextBlock Text="url"

Style="{StaticResource PhoneTextSubtleStyle}"/>

<TextBox InputScope="Url"/>

</StackPanel>

Page 39: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

http://silverlight.codeplex.com/

Page 40: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 41: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 42: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 43: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 44: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 45: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 46: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 47: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

using TombstoneHelper;

public partial class MainPage : PhoneApplicationPage {

protected override void OnNavigatedFrom(NavigationEventArgs e) {

base.OnNavigatedFrom(e);

this.SaveState();

}

protected override void OnNavigatedTo(NavigationEventArgs e) {

base.OnNavigatedTo(e);

this.RestoreState();

}

}

Page 48: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

http://ux.artu.tv/?page_id=190

http://www.riagenic.com/archives/487

http://msdn.microsoft.com/en-us/library/hh202915.aspx

Page 49: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

http://channel9.msdn.com/Blogs/Jaime+Rodriguez/Windows-Phone-Design-Days-Metro

http://channel9.msdn.com/Events/BUILD/BUILD2011/APP-395T

http://channel9.msdn.com/Events/MIX/MIX11/OPN02

Page 50: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

Simple, clean, &impactful text here.

Page 51: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer
Page 52: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer

[email protected]

http://www.twitter.com/fonssonnemans

http://www.linkedin.com/in/fonssonnemans

Page 53: Visual C# - Reflection IT •Visual C# ASP.NET WebForms& MVC, Silverlight, Windows Phone, Windows 8 • SQLServer • Trainer