-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
288 additions
and
135 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,93 @@ | ||
<UserControl | ||
x:Class="Chat.Controls.TitlebarControl" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Chat.Controls" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400"> | ||
|
||
<Grid x:Name="CustomTitleBar"> | ||
<Canvas | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Background="Transparent" /> | ||
|
||
<Grid Visibility="Collapsed" | ||
Width="48" | ||
HorizontalAlignment="Left"> | ||
<Rectangle | ||
x:Name="BackButtonBg" | ||
Fill="{ThemeResource SystemControlForegroundAccentBrush}" | ||
Visibility="Collapsed" /> | ||
<TextBlock | ||
x:Name="Arrow" | ||
Width="13" | ||
Margin="-1,0,0,0" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
FontFamily="Segoe MDL2 Assets" | ||
FontSize="16" | ||
FontStretch="ExtraCondensed" | ||
Opacity="0.5" | ||
Text="" /> | ||
<UserControl x:Class="Chat.Controls.TitlebarControl" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="using:Chat.Controls" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400" | ||
mc:Ignorable="d"> | ||
|
||
<Grid x:Name="CustomTitleBar" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> | ||
<Grid.ColumnDefinitions> | ||
<!-- Back Button --> | ||
<ColumnDefinition Width="Auto" /> | ||
<!-- App Icon --> | ||
<ColumnDefinition Width="48" /> | ||
<!-- Title --> | ||
<ColumnDefinition Width="Auto" /> | ||
<!-- Main Area --> | ||
<ColumnDefinition Width="*" /> | ||
<!-- Title --> | ||
<ColumnDefinition Width="Auto" /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Grid Grid.ColumnSpan="5" Height="4" VerticalAlignment="Top"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Rectangle x:Name="RedIndicator" | ||
Grid.Column="0" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Fill="Red" | ||
Opacity="0.5" | ||
Visibility="Collapsed" /> | ||
|
||
<Rectangle x:Name="OrangeIndicator" | ||
Grid.Column="1" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Fill="Orange" | ||
Opacity="0.5" | ||
Visibility="Collapsed" /> | ||
|
||
<Rectangle x:Name="YellowIndicator" | ||
Grid.Column="2" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Fill="Yellow" | ||
Opacity="0.5" | ||
Visibility="Collapsed" /> | ||
</Grid> | ||
<TextBlock | ||
x:Name="WindowTitle" | ||
Margin="12,0,0,0" | ||
VerticalAlignment="Center" | ||
FontSize="12" | ||
TextTrimming="CharacterEllipsis"/> | ||
|
||
<Image x:Name="AppFontIcon" | ||
Grid.Column="1" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center" | ||
Source="ms-appx:///Assets/ApplicationLogos/AppIcon/Square44x44Logo.png" | ||
Width="16" | ||
Height="16" /> | ||
|
||
<TextBlock x:Name="WindowTitle" | ||
Grid.Column="2" | ||
VerticalAlignment="Center" | ||
Margin="12,0,0,0" | ||
Style="{StaticResource CaptionTextBlockStyle}"/> | ||
|
||
<Canvas x:Name="TitlebarCanvas" | ||
Grid.ColumnSpan="5" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Stretch" | ||
Background="Transparent" /> | ||
|
||
<Button x:Name="BackButton" | ||
Grid.Row="0" | ||
Style="{ThemeResource NavigationBackButtonNormalStyle}" | ||
Width="48" | ||
Click="Back_Click" | ||
Visibility="Collapsed" /> | ||
|
||
<Button x:Name="AttachDebuggerButton" | ||
Grid.Column="4" | ||
Click="AttachDebuggerButton_Click" | ||
Background="Transparent" | ||
Visibility="Collapsed" | ||
BorderBrush="Transparent"> | ||
<FontIcon FontFamily="{ThemeResource SymbolThemeFontFamily}" Glyph="" FontSize="14" /> | ||
</Button> | ||
</Grid> | ||
</UserControl> | ||
</UserControl> |
Oops, something went wrong.