novosti v razvoju za windows 8.1 s primeri uporabe

Post on 30-May-2015

931 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Slides from my session on changes in Windows Store apps development in Windows 8.1 at NT conference 2014 autumn

TRANSCRIPT

Damir Arh, Adacta d.o.o.Arhitekt programske opremeMVP – Visual C#@DamirArh, damirscorner.com

Novosti v razvoju za Windows 8.1 s primeri uporabe

2

AgendaPodpora spremembam v OSNovi in izboljšani kontrolnikiDopolnjeni programski vmesnikiNove funkcionalnostiIzboljšave v orodjih

Podpora spremembam v OS

5

VelikaŠirokaSrednjaMajhna

Več dimenzij ploščic

6

Iskanje znotraj aplikacije

7

Spremembe uporabniške izkušnje

Novi in izboljšani kontrolniki

9

FlyoutMenuFlyoutMenuFlyoutItemToggleMenuFlyoutItemMenuFlyoutSeparator

SettingsFlyout

Pojavna okna

10

Aplikacijska vrstica v Windows 8<AppBar> <StackPanel Orientation="Horizontal"> <Button Style="{StaticResource SaveAppBarButtonStyle}" /> </StackPanel></AppBar>

<Style x:Key="SaveAppBarButtonStyle" TargetType="ButtonBase" BasedOn="{StaticResource AppBarButtonStyle}"> <Setter Property="AutomationProperties.Name" Value="Save"/> <Setter Property="Content" Value="&#xE105;"/></Style>

11

Aplikacijska vrstica v Windows 8.1<CommandBar> <CommandBar.SecondaryCommands> <AppBarButton Label="Refresh"> <AppBarButton.Icon> <SymbolIcon Symbol="Refresh" /> </AppBarButton.Icon> </AppBarButton> </CommandBar.SecondaryCommands></CommandBar>

12

WebView

13

WebView – druge izboljšavePodpora začetnim zahtevkom tipa POSTIzboljšana podpora lokalnim vsebinamProtokol ms-appdata:///IUriToStreamResolver

Razširjen nabor dogodkovPodpora deljenju vsebin

14

WebView

15

Izboljšan binding<TextBlock Text="{Binding NullProperty, TargetNullValue='&lt;null&gt;'}" /><TextBlock Text="{Binding MissingProperty, FallbackValue='&lt;undefined&gt;'}" /><TextBox Text="{Binding TextProperty, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />

16

Napisi za kontrolnike<TextBox PlaceholderText="Enter text..." Header="TextBox Label"> <TextBox.HeaderTemplate> <DataTemplate> <TextBlock Text="{Binding}" Foreground="Red" /> </DataTemplate> </TextBox.HeaderTemplate></TextBox>

17

Dostop do navigacijskega skladaBackStackForwardStackPageStackEntrySourcePageTypeParameterNavigationTransitionInfo

18

Izrisovanje v slikovar renderTargetBitmap = new RenderTargetBitmap();await renderTargetBitmap.RenderAsync(myElement);

var encoder = await BitmapEncoder.CreateAsync( BitmapEncoder.PngEncoderId, stream);

encoder.SetPixelData( BitmapPixelFormat.Bgra8, BitmapAlphaMode.Ignore, (uint)renderTargetBitmap.PixelWidth, (uint)renderTargetBitmap.PixelHeight, 96, 96, (await renderTargetBitmap.GetPixelsAsync()).ToArray());await encoder.FlushAsync();

19

Zajem slike v datoteko

Dopolnjeni programski vmesniki

21

Delo z datotekamivar folder = ApplicationData.Current.LocalFolder;var item = await folder.TryGetItemAsync(@"dir\filename.txt");if (item == null){ // file doesn't exists }

var file = (StorageFile) item;var parentFolder = await file.GetParentAsync();if (parentFolder == null){ // no access to parent folder }

22

Izboljšave na področju varnostiPrstni odtisiPametne karticeCertifikati„Temeljito“ izničevanje datotekUpravljanje z računi

23

Domorodni razred HttpClientNa voljo v vseh jezikihIHttpContentHttpBaseProtocolFilterIHttpFilter

Aplikacijska koda

HttpClient

IHttpFilter

HttpBaseProtocolFilter

Spletna storitev

24

HttpClient in IHttpFilter

Nove funkcionalnosti

26

Podpora napravamPoSHIDUSBBluetoothRFCOMMGATT

3D tiskanje

27

GeofencingGeoshapeGeocircleGeoposition

MonitoredStatesEnteredExited

DwellTimeSingleUseStartTime, Duration

28

Geofencing v praksi

29

Podpora za PDFvar pdfDocument = await PdfDocument.LoadFromFileAsync(pdfFile);

var pdfPage = pdfDocument.GetPage(pageNo);

await pdfPage.RenderToStreamAsync(stream, pdfPageRenderOptions);

30

Izrisovanje dokumentov PDF

Izboljšave v orodjih

32

Ključne novostiEdit and Continue za 64-bitne aplikacijeRazhroščevanje asinhronih aplikacijIntelliSense za XAMLWACK

33

Testiranje uporabniškega vmesnika

34

ZaključekDozorevanje platformeŠtevilne spremembeIzid pred vrati

Q&A.

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

top related