Xaml novinky ve Windows 10

  • View
    589

  • Download
    1

Embed Size (px)

Text of Xaml novinky ve Windows 10

XAML novinky ve Windows 10

XAML novinky ve Windows 10Ji DanihelkaMsFest 2015

1

New contairnesin Windows 10

SplitPane

SplitView

SplitView

IsPaneOpen="True"IsPaneOpen="False"DisplayMode="Inline"DisplayMode="Overlay"DisplayMode="CompactInline" DisplayMode="CompactOverlay"

RelativePanel

RelativePanel

Pivot

Hub element

Hub element

......

New controlsin Windows 10

AppBar a CommandBar

Vektorov ikony

AutoSuggestBox

AutoSuggestBoxprivatestring[]boxitems=newstring[]{"January","February","March","April","May","June","July","August","September","October", "November","December"};varautoSuggestBox=(AutoSuggestBox)sender;varfiltered=boxitems.Where(p=>p.StartsWith(autoSuggestBox.Text,StringComparison.OrdinalIgnoreCase)).ToArray();autoSuggestBox.ItemsSource=filtered;

Date and Time Pickers

MapControl

PasswordBoxpasswordBox.PasswordRevealMode = PasswordRevealMode.Peek;passwordBox.PasswordRevealMode = PasswordRevealMode.Hidden;passwordBox.PasswordRevealMode = PasswordRevealMode.Visible;

New dialogsin Windwos 10

ContentDialog

Nastaven barev zhlav oknavar v = Windows.UI.ViewManagement.ApplicationView.getForCurrentView();v.titleBar.buttonBackgroundColor = Windows.UI.Colors.green;v.titleBar.buttonForegroundColor = Windows.UI.Colors.yellow;v.titleBar.backgroundColor = Windows.UI.Colors.indianRed;v.titleBar.foregroundColor = Windows.UI.Colors.cyan;

var v = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView();var allProperties = v.GetType().GetRuntimeProperties();var titleBar = allProperties.FirstOrDefault(x => x.Name == "TitleBar");if (titleBar == null) return;dynamic titleBarInst = titleBar.GetMethod.Invoke(v, null);titleBarInst.BackgroundColor = Colors.CornflowerBlue;titleBarInst.ForegroundColor = Colors.Red;titleBarInst.ButtonBackgroundColor = Colors.DimGray;titleBarInst.ButtonForegroundColor = Colors.Orange;

Vypnut zhlav oknatitleBarInst.ExtendViewIntoTitleBar = true;

General XAML improvements

Compiled data bindingsUmouj kombinovat XAML a C#

Siln typov kontrolaVyhodnot se bhem kompilaceJe mon debugovat za bhu

XAML perspektivn transformace

Dal zdroje informacMVA: A Developer's Guide to Windows 10 verze Ahttps://mva.microsoft.com/en-US/training-courses/a-developer-s-guide-to-windows-10-12618

MVA: Designing Your XAML UI with Blend verze Bhttps://mva.microsoft.com/training-courses/a-developers-guide-to-windows-10

Channel 9: Windows 10 development for absolute beginnershttps://channel9.msdn.com/Series/Windows-10-development-for-absolute-beginners

EdX: Developing Windows 10 Universal Appshttps://www.edx.org/course/developing-windows-10-universal-apps-microsoft-dev209-1x

Microsoft Engineering ExcellenceMicrosoft Confidential26

Dotazy?

Microsoft Engineering ExcellenceMicrosoft Confidential27