mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 10:58:31 -05:00
Change error window style
This commit is contained in:
@@ -1,14 +1,16 @@
|
|||||||
<Window x:Class="FeedCenter.FeedErrorWindow"
|
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:my="clr-namespace:FeedCenter.Properties"
|
||||||
|
xmlns:linkControl="clr-namespace:Common.Wpf.LinkControl;assembly=Common.Wpf"
|
||||||
|
xmlns:windows="clr-namespace:Common.Wpf.Windows;assembly=Common.Wpf"
|
||||||
|
x:Class="FeedCenter.FeedErrorWindow"
|
||||||
Title="{x:Static my:Resources.FeedErrorWindow}"
|
Title="{x:Static my:Resources.FeedErrorWindow}"
|
||||||
Height="300"
|
Height="300"
|
||||||
Width="550"
|
Width="550"
|
||||||
WindowStartupLocation="CenterOwner"
|
WindowStartupLocation="CenterOwner"
|
||||||
Icon="/FeedCenter;component/Resources/Application.ico"
|
Icon="/FeedCenter;component/Resources/Application.ico"
|
||||||
xmlns:my="clr-namespace:FeedCenter.Properties"
|
windows:ControlBox.HasMaximizeButton="False"
|
||||||
xmlns:linkControl="clr-namespace:Common.Wpf.LinkControl;assembly=Common.Wpf"
|
windows:ControlBox.HasMinimizeButton="False">
|
||||||
WindowStyle="ToolWindow">
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="225*" />
|
<RowDefinition Height="225*" />
|
||||||
@@ -16,7 +18,7 @@
|
|||||||
<RowDefinition Height="Auto" />
|
<RowDefinition Height="Auto" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<DataGrid AutoGenerateColumns="False"
|
<DataGrid AutoGenerateColumns="False"
|
||||||
Name="FeedDataGrid"
|
x:Name="FeedDataGrid"
|
||||||
CanUserReorderColumns="False"
|
CanUserReorderColumns="False"
|
||||||
GridLinesVisibility="None"
|
GridLinesVisibility="None"
|
||||||
SelectionMode="Single"
|
SelectionMode="Single"
|
||||||
@@ -27,7 +29,7 @@
|
|||||||
Background="{x:Null}"
|
Background="{x:Null}"
|
||||||
CanUserSortColumns="True">
|
CanUserSortColumns="True">
|
||||||
<DataGrid.CellStyle>
|
<DataGrid.CellStyle>
|
||||||
<Style TargetType="DataGridCell">
|
<Style TargetType="{x:Type DataGridCell}">
|
||||||
<Setter Property="BorderThickness"
|
<Setter Property="BorderThickness"
|
||||||
Value="0" />
|
Value="0" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -36,12 +38,10 @@
|
|||||||
<DataGridTextColumn Header="{x:Static my:Resources.FeedNameColumnHeader}"
|
<DataGridTextColumn Header="{x:Static my:Resources.FeedNameColumnHeader}"
|
||||||
Binding="{Binding Name}"
|
Binding="{Binding Name}"
|
||||||
Width="*"
|
Width="*"
|
||||||
SortDirection="Ascending">
|
SortDirection="Ascending" />
|
||||||
</DataGridTextColumn>
|
|
||||||
<DataGridTextColumn Header="{x:Static my:Resources.FeedErrorColumnHeader}"
|
<DataGridTextColumn Header="{x:Static my:Resources.FeedErrorColumnHeader}"
|
||||||
Binding="{Binding LastReadResultDescription}"
|
Binding="{Binding LastReadResultDescription}"
|
||||||
Width="*">
|
Width="*" />
|
||||||
</DataGridTextColumn>
|
|
||||||
<DataGridTextColumn Binding="{Binding LastUpdated, StringFormat=d}"
|
<DataGridTextColumn Binding="{Binding LastUpdated, StringFormat=d}"
|
||||||
Header="{x:Static my:Resources.LastUpdatedColumnHeader}"
|
Header="{x:Static my:Resources.LastUpdatedColumnHeader}"
|
||||||
Width="Auto" />
|
Width="Auto" />
|
||||||
@@ -53,36 +53,31 @@
|
|||||||
BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
|
BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}">
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
|
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
|
||||||
<linkControl:LinkControl Name="EditFeedButton"
|
<linkControl:LinkControl x:Name="EditFeedButton"
|
||||||
Margin="2"
|
Margin="2"
|
||||||
Click="HandleEditFeedButtonClick"
|
Click="HandleEditFeedButtonClick"
|
||||||
Text="{x:Static my:Resources.EditLink}"
|
Text="{x:Static my:Resources.EditLink}"
|
||||||
ToolTip="{x:Static my:Resources.EditFeedButton}">
|
ToolTip="{x:Static my:Resources.EditFeedButton}" />
|
||||||
</linkControl:LinkControl>
|
<linkControl:LinkControl x:Name="DeleteFeedButton"
|
||||||
<linkControl:LinkControl Name="DeleteFeedButton"
|
|
||||||
Margin="2"
|
Margin="2"
|
||||||
Click="HandleDeleteFeedButtonClick"
|
Click="HandleDeleteFeedButtonClick"
|
||||||
Text="{x:Static my:Resources.DeleteLink}"
|
Text="{x:Static my:Resources.DeleteLink}"
|
||||||
ToolTip="{x:Static my:Resources.DeleteFeedButton}">
|
ToolTip="{x:Static my:Resources.DeleteFeedButton}" />
|
||||||
</linkControl:LinkControl>
|
<linkControl:LinkControl x:Name="RefreshCurrent"
|
||||||
<linkControl:LinkControl Name="RefreshCurrent"
|
|
||||||
Margin="2"
|
Margin="2"
|
||||||
Click="HandleRefreshCurrentButtonClick"
|
Click="HandleRefreshCurrentButtonClick"
|
||||||
Text="{x:Static my:Resources.RefreshCurrent}"
|
Text="{x:Static my:Resources.RefreshCurrent}"
|
||||||
ToolTip="{x:Static my:Resources.RefreshCurrent}">
|
ToolTip="{x:Static my:Resources.RefreshCurrent}" />
|
||||||
</linkControl:LinkControl>
|
<linkControl:LinkControl x:Name="OpenPage"
|
||||||
<linkControl:LinkControl Name="OpenPage"
|
|
||||||
Margin="6,2,2,2"
|
Margin="6,2,2,2"
|
||||||
Click="HandleOpenPageButtonClick"
|
Click="HandleOpenPageButtonClick"
|
||||||
Text="{x:Static my:Resources.OpenPage}"
|
Text="{x:Static my:Resources.OpenPage}"
|
||||||
ToolTip="{x:Static my:Resources.OpenPage}">
|
ToolTip="{x:Static my:Resources.OpenPage}" />
|
||||||
</linkControl:LinkControl>
|
<linkControl:LinkControl x:Name="OpenFeed"
|
||||||
<linkControl:LinkControl Name="OpenFeed"
|
|
||||||
Margin="2"
|
Margin="2"
|
||||||
Click="HandleOpenFeedButtonClick"
|
Click="HandleOpenFeedButtonClick"
|
||||||
Text="{x:Static my:Resources.OpenFeed}"
|
Text="{x:Static my:Resources.OpenFeed}"
|
||||||
ToolTip="{x:Static my:Resources.OpenFeed}">
|
ToolTip="{x:Static my:Resources.OpenFeed}" />
|
||||||
</linkControl:LinkControl>
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
<Grid DockPanel.Dock="Right"
|
<Grid DockPanel.Dock="Right"
|
||||||
|
|||||||
Reference in New Issue
Block a user