2020-07-03 00:24:31 -07:00
|
|
|
<Window x:Class="SourceGit.UI.Launcher"
|
|
|
|
x:Name="me"
|
|
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:source="clr-namespace:SourceGit"
|
2020-12-07 02:03:05 -08:00
|
|
|
xmlns:local="clr-namespace:SourceGit.UI"
|
|
|
|
xmlns:converters="clr-namespace:SourceGit.Converters"
|
2020-07-03 00:24:31 -07:00
|
|
|
mc:Ignorable="d"
|
|
|
|
MinWidth="800" MinHeight="600"
|
|
|
|
Title="Source Git"
|
|
|
|
Width="{Binding Source={x:Static source:App.Preference}, Path=UIMainWindowWidth, Mode=TwoWay}"
|
|
|
|
Height="{Binding Source={x:Static source:App.Preference}, Path=UIMainWindowHeight, Mode=TwoWay}"
|
2020-11-30 18:31:46 -08:00
|
|
|
WindowStartupLocation="CenterOwner">
|
2020-07-03 00:24:31 -07:00
|
|
|
|
|
|
|
<!-- Enable WindowChrome Feature -->
|
|
|
|
<WindowChrome.WindowChrome>
|
|
|
|
<WindowChrome UseAeroCaptionButtons="False" CornerRadius="0" CaptionHeight="32"/>
|
|
|
|
</WindowChrome.WindowChrome>
|
|
|
|
|
|
|
|
<!-- Window Layout -->
|
2020-08-06 18:52:40 -07:00
|
|
|
<Border>
|
2020-07-03 00:24:31 -07:00
|
|
|
|
|
|
|
<!-- Fix Maximize BUG -->
|
|
|
|
<Border.Style>
|
|
|
|
<Style TargetType="{x:Type Border}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Maximized">
|
|
|
|
<Setter Property="Margin" Value="6"/>
|
|
|
|
</DataTrigger>
|
|
|
|
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Normal">
|
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Border.Style>
|
2020-08-03 01:23:00 -07:00
|
|
|
|
|
|
|
<!-- Window Content -->
|
2020-08-07 08:40:23 -07:00
|
|
|
<Grid Background="{StaticResource Brush.BG1}">
|
2020-07-03 00:24:31 -07:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="32"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2020-08-06 18:52:40 -07:00
|
|
|
<Grid Grid.Row="0" Background="{StaticResource Brush.BG6}">
|
2020-07-03 00:24:31 -07:00
|
|
|
<Grid.ColumnDefinitions>
|
2020-08-04 19:01:27 -07:00
|
|
|
<ColumnDefinition x:Name="openedTabsColumn" Width="*"/>
|
|
|
|
<ColumnDefinition Width="32"/>
|
2020-07-03 00:24:31 -07:00
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
2020-11-17 22:29:53 -08:00
|
|
|
<Border Grid.ColumnSpan="3" VerticalAlignment="Bottom" Margin="0,0,0,-1" Height="1" Background="{StaticResource Brush.BG1}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect ShadowDepth="0" Opacity="1"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
2020-08-03 01:23:00 -07:00
|
|
|
<!-- Tabs -->
|
2020-08-04 19:01:27 -07:00
|
|
|
<ScrollViewer x:Name="openedTabsScroller" Grid.Column="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled">
|
2020-08-07 08:40:23 -07:00
|
|
|
<TabControl x:Name="openedTabs" Padding="0" SnapsToDevicePixels="True" ItemsSource="{Binding ElementName=me, Path=Tabs}" SizeChanged="OpenedTabsSizeChanged">
|
2020-08-04 19:01:27 -07:00
|
|
|
<TabControl.Style>
|
|
|
|
<Style TargetType="{x:Type TabControl}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TabControl}">
|
2020-12-07 02:03:05 -08:00
|
|
|
<StackPanel Orientation="Horizontal" x:Name="HeaderPanel" Margin="6,4,0,0" IsItemsHost="True" SnapsToDevicePixels="True" KeyboardNavigation.TabIndex="1"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</TabControl.Style>
|
2020-08-03 01:23:00 -07:00
|
|
|
|
2020-12-07 02:03:05 -08:00
|
|
|
<TabControl.Resources>
|
|
|
|
<converters:IntToRepoColor x:Key="IntToRepoColor"/>
|
|
|
|
|
|
|
|
<DataTemplate DataType="{x:Type local:Launcher+ManagerTab}">
|
|
|
|
<Path Width="14" Height="14" Margin="12,0" Fill="#FFF05133" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Home}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
|
|
|
|
<DataTemplate DataType="{x:Type local:Launcher+RepoTab}">
|
2020-12-10 04:30:58 -08:00
|
|
|
<Grid x:Name="BG" MinWidth="80" Margin="8,0" Background="Transparent">
|
2020-12-07 02:03:05 -08:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*" MinWidth="6"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
<Path
|
2020-12-09 01:59:37 -08:00
|
|
|
x:Name="Icon"
|
2020-12-07 02:03:05 -08:00
|
|
|
Grid.Column="0"
|
2020-12-07 03:39:50 -08:00
|
|
|
Width="14" Height="14"
|
2020-12-07 02:03:05 -08:00
|
|
|
Fill="{Binding Color, Converter={StaticResource IntToRepoColor}}"
|
|
|
|
Style="{StaticResource Style.Icon}"
|
2020-12-07 03:39:50 -08:00
|
|
|
Data="{StaticResource Icon.Bookmark}"
|
|
|
|
VerticalAlignment="Center"/>
|
2020-12-07 02:03:05 -08:00
|
|
|
|
|
|
|
<Label
|
2020-12-07 03:39:50 -08:00
|
|
|
x:Name="Title"
|
2020-12-07 02:03:05 -08:00
|
|
|
Grid.Column="1"
|
|
|
|
Content="{Binding Title}"
|
2020-12-07 03:39:50 -08:00
|
|
|
Foreground="{StaticResource Brush.FG2}" FontFamily="Consolas" FontWeight="Bold"/>
|
2020-12-07 02:03:05 -08:00
|
|
|
|
|
|
|
<Button Grid.Column="3" Click="CloseRepo" ToolTip="CLOSE">
|
|
|
|
<Path
|
|
|
|
Width="8" Height="8"
|
|
|
|
Fill="{StaticResource Brush.FG}"
|
|
|
|
Style="{StaticResource Style.Icon}"
|
|
|
|
Data="{StaticResource Icon.Close}"/>
|
|
|
|
</Button>
|
|
|
|
</Grid>
|
2020-12-07 03:39:50 -08:00
|
|
|
|
|
|
|
<DataTemplate.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding IsActive}" Value="True">
|
|
|
|
<Setter TargetName="Title" Property="Foreground" Value="{StaticResource Brush.FG}"/>
|
|
|
|
</DataTrigger>
|
2020-12-09 01:59:37 -08:00
|
|
|
<DataTrigger Binding="{Binding Color}" Value="0">
|
|
|
|
<Setter TargetName="Icon" Property="Data" Value="{StaticResource Icon.Git}"/>
|
|
|
|
<Setter TargetName="Icon" Property="Fill" Value="{StaticResource Brush.FG}"/>
|
|
|
|
</DataTrigger>
|
2020-12-10 04:30:58 -08:00
|
|
|
<MultiDataTrigger>
|
|
|
|
<MultiDataTrigger.Conditions>
|
|
|
|
<Condition Binding="{Binding IsActive}" Value="False"/>
|
|
|
|
<Condition Binding="{Binding ElementName=BG, Path=IsMouseOver}" Value="True"/>
|
|
|
|
</MultiDataTrigger.Conditions>
|
|
|
|
<Setter TargetName="Title" Property="Foreground" Value="{StaticResource Brush.FG}"/>
|
|
|
|
</MultiDataTrigger>
|
2020-12-07 03:39:50 -08:00
|
|
|
</DataTemplate.Triggers>
|
2020-12-07 02:03:05 -08:00
|
|
|
</DataTemplate>
|
|
|
|
</TabControl.Resources>
|
|
|
|
|
2020-08-04 19:01:27 -07:00
|
|
|
<TabControl.ItemContainerStyle>
|
|
|
|
<Style TargetType="{x:Type TabItem}">
|
2020-12-07 02:03:05 -08:00
|
|
|
<Setter Property="AllowDrop" Value="{Binding IsRepo}"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
<Setter Property="IsSelected" Value="{Binding IsActive, Mode=TwoWay}"/>
|
2020-08-07 08:40:23 -07:00
|
|
|
<Setter Property="Margin" Value="0"/>
|
|
|
|
<Setter Property="Padding" Value="0"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
2020-12-07 02:03:05 -08:00
|
|
|
<Grid SnapsToDevicePixels="True" WindowChrome.IsHitTestVisibleInChrome="True" ToolTip="{Binding Tooltip}">
|
|
|
|
<Border x:Name="BG" Margin="-1,0" SnapsToDevicePixels="True" Background="Transparent" BorderThickness="0" BorderBrush="{StaticResource Brush.BG3}" CornerRadius="4,4,0,0">
|
2020-08-04 19:01:27 -07:00
|
|
|
<Border.Effect>
|
2020-12-10 04:30:58 -08:00
|
|
|
<DropShadowEffect ShadowDepth="0" Opacity=".7"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
2020-08-03 01:23:00 -07:00
|
|
|
|
2020-12-07 02:03:05 -08:00
|
|
|
<Rectangle
|
|
|
|
x:Name="Splitter"
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
Width="1" Height="16"
|
|
|
|
Fill="{StaticResource Brush.FG2}"
|
|
|
|
Visibility="Hidden"/>
|
|
|
|
|
2020-08-04 19:01:27 -07:00
|
|
|
<Path
|
|
|
|
x:Name="CornerLeft"
|
2020-08-07 08:40:23 -07:00
|
|
|
Width="6"
|
|
|
|
Height="6"
|
2020-08-04 19:01:27 -07:00
|
|
|
HorizontalAlignment="Left"
|
|
|
|
VerticalAlignment="Bottom"
|
2020-12-07 02:03:05 -08:00
|
|
|
Margin="-6,0,0,0"
|
2020-08-07 08:40:23 -07:00
|
|
|
Data="M 0,6 L 6,6 6,0 C 6,0 6,6 0,6 Z"
|
2020-08-04 19:01:27 -07:00
|
|
|
Fill="Transparent"/>
|
2020-11-17 22:29:53 -08:00
|
|
|
|
2020-08-04 19:01:27 -07:00
|
|
|
<Path
|
|
|
|
x:Name="CornerRight"
|
2020-08-07 08:40:23 -07:00
|
|
|
Width="6"
|
|
|
|
Height="6"
|
2020-08-04 19:01:27 -07:00
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Bottom"
|
2020-12-07 02:03:05 -08:00
|
|
|
Margin="0,0,-6,0"
|
2020-08-07 08:40:23 -07:00
|
|
|
Data="M 0,0 L 0,6 6,6 C 6,6 0,6 0,0 Z"
|
2020-08-04 19:01:27 -07:00
|
|
|
Fill="Transparent"/>
|
2020-10-29 21:05:52 -07:00
|
|
|
|
2020-12-07 02:03:05 -08:00
|
|
|
<ContentPresenter
|
|
|
|
x:Name="ContentSite"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
ContentSource="Header"
|
|
|
|
RecognizesAccessKey="True"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
2020-12-07 02:03:05 -08:00
|
|
|
<Setter Property="Panel.ZIndex" Value="2"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Brush.BG1}"/>
|
|
|
|
<Setter TargetName="BG" Property="BorderThickness" Value="1,1,1,0"/>
|
|
|
|
<Setter TargetName="CornerLeft" Property="Fill" Value="{StaticResource Brush.BG1}"/>
|
|
|
|
<Setter TargetName="CornerRight" Property="Fill" Value="{StaticResource Brush.BG1}"/>
|
|
|
|
</Trigger>
|
2020-12-07 02:03:05 -08:00
|
|
|
|
|
|
|
<Trigger Property="IsSelected" Value="False">
|
|
|
|
<Setter Property="Panel.ZIndex" Value="-1"/>
|
2020-10-29 21:05:52 -07:00
|
|
|
</Trigger>
|
2020-12-07 02:03:05 -08:00
|
|
|
|
2020-08-04 19:01:27 -07:00
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="IsSelected" Value="False"/>
|
|
|
|
<Condition Property="IsMouseOver" Value="True"/>
|
|
|
|
</MultiTrigger.Conditions>
|
2020-12-07 02:03:05 -08:00
|
|
|
<Setter Property="Panel.ZIndex" Value="1"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
<Setter TargetName="BG" Property="Background" Value="{DynamicResource Brush.BG5}"/>
|
2020-11-16 05:06:56 -08:00
|
|
|
<Setter TargetName="CornerLeft" Property="Fill" Value="{StaticResource Brush.BG5}"/>
|
|
|
|
<Setter TargetName="CornerRight" Property="Fill" Value="{StaticResource Brush.BG5}"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
</MultiTrigger>
|
2020-12-07 02:03:05 -08:00
|
|
|
|
|
|
|
<MultiTrigger>
|
|
|
|
<MultiTrigger.Conditions>
|
|
|
|
<Condition Property="IsSelected" Value="False"/>
|
|
|
|
<Condition Property="IsMouseOver" Value="False"/>
|
|
|
|
<Condition Property="AllowDrop" Value="True"/>
|
|
|
|
</MultiTrigger.Conditions>
|
|
|
|
<Setter TargetName="Splitter" Property="Visibility" Value="Visible"/>
|
|
|
|
</MultiTrigger>
|
2020-08-04 19:01:27 -07:00
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
2020-08-03 03:29:48 -07:00
|
|
|
|
2020-08-04 19:01:27 -07:00
|
|
|
<EventSetter Event="MouseMove" Handler="TabsMouseMove"/>
|
|
|
|
<EventSetter Event="Drop" Handler="TabsDrop"/>
|
2020-11-29 23:21:45 -08:00
|
|
|
<EventSetter Event="ContextMenuOpening" Handler="TabsContextMenuOpening"/>
|
2020-08-04 19:01:27 -07:00
|
|
|
</Style>
|
|
|
|
</TabControl.ItemContainerStyle>
|
|
|
|
</TabControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
|
|
<!-- Tab scroller -->
|
|
|
|
<StackPanel x:Name="openedTabsOpts" Grid.Column="1" VerticalAlignment="Bottom" Orientation="Horizontal" Height="28" Margin="4,0,0,0" WindowChrome.IsHitTestVisibleInChrome="True">
|
|
|
|
<Button Click="ScrollToLeft">
|
|
|
|
<Path Width="10" Height="12" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.ScrollLeft}"/>
|
|
|
|
</Button>
|
|
|
|
<Button Click="ScrollToRight">
|
|
|
|
<Path Width="10" Height="12" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.ScrollRight}"/>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
2020-08-03 01:23:00 -07:00
|
|
|
|
|
|
|
<!-- Window Command -->
|
|
|
|
<StackPanel
|
2020-08-04 19:01:27 -07:00
|
|
|
Grid.Column="2"
|
2020-08-03 01:23:00 -07:00
|
|
|
Margin="32,0,0,0"
|
|
|
|
Orientation="Horizontal"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
Height="32"
|
|
|
|
WindowChrome.IsHitTestVisibleInChrome="True">
|
2020-07-03 00:24:31 -07:00
|
|
|
<Button Click="ShowPreference" Width="24" ToolTip="PREFERENCE">
|
|
|
|
<Path Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Preference}"/>
|
|
|
|
</Button>
|
|
|
|
<Rectangle Width="1" Height="18" Margin="6,0" VerticalAlignment="Center" Fill="{StaticResource Brush.Border1}"/>
|
|
|
|
<Button Click="ShowAbout" Width="24" ToolTip="ABOUT">
|
|
|
|
<Path Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Info}"/>
|
|
|
|
</Button>
|
|
|
|
<Rectangle Width="1" Height="18" Margin="6,0" VerticalAlignment="Center" Fill="{StaticResource Brush.Border1}"/>
|
|
|
|
<Button Click="Minimize" Width="32" Style="{StaticResource Style.Button.HighlightHover}">
|
|
|
|
<Path Style="{StaticResource Style.WindowControlIcon}" Data="{StaticResource Icon.Minimize}"/>
|
|
|
|
</Button>
|
|
|
|
<Button Click="MaximizeOrRestore" Width="32" Style="{StaticResource Style.Button.HighlightHover}">
|
|
|
|
<Path>
|
|
|
|
<Path.Style>
|
|
|
|
<Style TargetType="{x:Type Path}" BasedOn="{StaticResource Style.WindowControlIcon}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Maximized">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icon.Restore}"/>
|
|
|
|
</DataTrigger>
|
|
|
|
<DataTrigger Binding="{Binding WindowState, ElementName=me}" Value="Normal">
|
|
|
|
<Setter Property="Data" Value="{StaticResource Icon.Maximize}"/>
|
|
|
|
</DataTrigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Path.Style>
|
|
|
|
</Path>
|
|
|
|
</Button>
|
|
|
|
<Button Click="Quit" Width="32">
|
|
|
|
<Button.Style>
|
|
|
|
<Style TargetType="{x:Type Button}" BasedOn="{StaticResource Style.Button.HighlightHover}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Setter Property="Background" Value="Red"/>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
</Button.Style>
|
|
|
|
|
|
|
|
<Path Width="10" Style="{StaticResource Style.Icon}" Data="{StaticResource Icon.Close}"/>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
|
2020-08-03 01:23:00 -07:00
|
|
|
<!-- Pages -->
|
|
|
|
<ItemsControl Grid.Row="1" ItemsSource="{Binding ElementName=me, Path=Tabs}">
|
|
|
|
<ItemsControl.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<Grid/>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</ItemsControl.ItemsPanel>
|
|
|
|
<ItemsControl.Resources>
|
|
|
|
<BooleanToVisibilityConverter x:Key="Bool2Visible"/>
|
|
|
|
</ItemsControl.Resources>
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<ContentControl Content="{Binding Page}" Visibility="{Binding IsActive, Converter={StaticResource Bool2Visible}}"/>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
2020-07-03 00:24:31 -07:00
|
|
|
|
|
|
|
<!-- Alerts -->
|
2020-08-03 01:23:00 -07:00
|
|
|
<ScrollViewer
|
|
|
|
Grid.Row="1"
|
|
|
|
Margin="0,32,0,0"
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
HorizontalScrollBarVisibility="Disabled"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
Panel.ZIndex="100">
|
2020-08-06 00:41:25 -07:00
|
|
|
<ItemsControl Margin="4" Width="300" Height="Auto" ItemsSource="{Binding Errors, ElementName=me}">
|
2020-07-03 00:24:31 -07:00
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid x:Name="item" Height="Auto" Width="300" Margin="0,8,0,0">
|
|
|
|
<Border Background="{StaticResource Brush.BG1}">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect BlurRadius="8" ShadowDepth="2" Direction="270"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Grid Margin="8">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="26"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2020-08-06 00:41:25 -07:00
|
|
|
<Label Grid.Row="0" Content="ERROR" FontWeight="DemiBold"/>
|
|
|
|
<TextBlock Grid.Row="1" Margin="6,8" Text="{Binding}" Foreground="{StaticResource Brush.FG}" TextWrapping="Wrap"/>
|
2020-07-03 00:24:31 -07:00
|
|
|
<Button
|
|
|
|
Grid.Row="2"
|
|
|
|
Margin="4,0"
|
2020-08-06 00:41:25 -07:00
|
|
|
Click="RemoveError"
|
2020-08-11 17:06:43 -07:00
|
|
|
Height="25"
|
2020-07-03 00:24:31 -07:00
|
|
|
Content="CLOSE"
|
|
|
|
Style="{StaticResource Style.Button.AccentBordered}"
|
|
|
|
BorderBrush="{StaticResource Brush.FG}"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Window>
|