Last active
March 17, 2016 18:23
-
-
Save EricAtMSFT/9462010361be82bff1f7 to your computer and use it in GitHub Desktop.
Add a logo....
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl | |
x:Class="PhotoSharingApp.Universal.Controls.PageHeader" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:local="using:PhotoSharingApp.Universal.Controls" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:valueConverters="using:PhotoSharingApp.Universal.ValueConverters" | |
VerticalAlignment="Top" | |
VerticalContentAlignment="Top" | |
HorizontalAlignment="Stretch" | |
HorizontalContentAlignment="Stretch" | |
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" | |
Height="88" | |
x:Name="controlRoot" | |
mc:Ignorable="d" | |
d:DesignHeight="300" | |
d:DesignWidth="400"> | |
<UserControl.Resources> | |
<valueConverters:NullToVisibilityConverter x:Key="NullToVisibilityConverter" /> | |
<valueConverters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> | |
</UserControl.Resources> | |
<Grid x:Name="grid" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | |
<Grid x:Name="titleBar"> | |
<Grid HorizontalAlignment="Center" VerticalAlignment="Center"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition /> | |
<ColumnDefinition Width="Auto" /> | |
</Grid.ColumnDefinitions> | |
<Image Source="ms-appx:///Assets/SportsPicsLogo.png" Margin="0,5" /> | |
<local:MyControl Margin="0,0,0,0" Visibility="Collapsed" /> | |
<ContentPresenter x:Name="content" Grid.Column="1" | |
VerticalAlignment="Center" | |
HorizontalAlignment="{Binding HorizontalContentAlignment, ElementName=controlRoot}" | |
Margin="0,0,16,0" | |
Content="{Binding HeaderContent, ElementName=controlRoot}" /> | |
</Grid> | |
... | |
</UserControl> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment