DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil3: Schönes für Entwickler - (Daniel Meixner)
-
Upload
daniel-meixner -
Category
Software
-
view
55 -
download
1
Transcript of DotNet Cologne 2015 - Windows 10 AppDev, Teil3: Schönes für Entwickler - (Daniel Meixner)
http://windows.Microsoft.comhttp://windows.Microsoft.com
Common behavior, custom design
Your Windows App
http://windows.Microsoft.comhttp://windows.Microsoft.com
SplitView.Content<SplitView>
<SplitView.Pane>
<StackPanel>
<RadioButton />
<RadioButton />
</StackPanel>
</SplitView.Pane>
<SplitView.Content>
<Frame/>
</SplitView.Content>
</SplitView>
http://windows.Microsoft.comhttp://windows.Microsoft.com
SplitView.PaneDisplayModeSplitView.IsPaneOpen
"True"SplitView.IsPaneOpen
"False"
Inline
Overlay
Compact Inline
Compact Overlay
http://windows.Microsoft.comhttp://windows.Microsoft.com
Relative Panel is a XAML layout control. It arranges
children by declaring relationships between them.
Introducing the Relative Panel
Windows XAML layout controls
GridStack
PanelCanvas
Scroll
ViewerBorder View Box
Wrap
GridRelative
Panel
http://windows.Microsoft.comhttp://windows.Microsoft.com
Align with sibling (right)
<RelativePanel>
<Rectangle x:Name="BlueRect" Height="100" Width="100" Fill="Blue" />
<Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red"
RelativePanel.RightOf="BlueRect"RelativePanel.AlignVerticalCenterWith="BlueRect" />
</RelativePanel>
http://windows.Microsoft.comhttp://windows.Microsoft.com
Align with sibling (below, right)
<RelativePanel>
<Rectangle x:Name="BlueRect" Height="100" Width="100" Fill="Blue" />
<Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red"
RelativePanel.Below="BlueRect"RelativePanel.AlignRightWith="BlueRect" />
</RelativePanel>
http://windows.Microsoft.comhttp://windows.Microsoft.com
Simplify the visual tree
<Grid>
<StackPanel>
<StackPanel>
<TextBlock />
<TextBlock />
</StackPanel>
<StackPanel>
<TextBlock />
<TextBlock />
</StackPanel>
</StackPanel>
</Grid>
<RelativePanel>
<TextBlock />
<TextBlock />
<TextBlock />
<TextBlock />
</RelativePanel >
<VisualStateGroup x:Name="WindowSizeStates">
<VisualState x:Name="WideState">
<VisualState.StateTriggers>
<AdaptiveTrigger MinWindowWidth="720" />
</VisualState.StateTriggers>
<!– - more - - !>
</VisualState>
</VisualStateGroup>
<VisualState x:Name="Pressed">
<Storyboard>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"
Storyboard.TargetProperty="Background">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlBackgroundBaseMediumLowBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="BorderBrush">
DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlHighlightTransparentBrush}" />
</ObjectAnimationUsingKeyFrames>
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"
Storyboard.TargetProperty="Foreground">
<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlHighlightBaseHighBrush}" />
</ObjectAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
http://windows.Microsoft.comhttp://windows.Microsoft.com
New/different in UAP Maps
New control: Windows.UI.Xaml.Maps.MapControlThis is the Windows Phone 8.1 WinRT Map control
MapControl.Children -> XAML objects Supports Data Binding
Custom tile source support
http://windows.Microsoft.comhttp://windows.Microsoft.com
await MapRouteFinder
MapRouteFinder
await MapRouteFinder
Maps.MapRouteFinder
Get driving route
Get walking route
Get multi-point driving route
http://windows.Microsoft.comhttp://windows.Microsoft.com
MapLocationFinder
MapLocationFinder
Maps.MapLocationFinder
Latitude, longitude & geopointto postal address
Postal address & free text hint to latitude, longitude
This is not a local/places search.