Updated form design a little to make it cleaner and fix a bug for ignore not changing
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Grid.RowSpan="1" Grid.Row="3"
|
Grid.RowSpan="1" Grid.Row="3"
|
||||||
CanUserResizeColumns="False"
|
CanUserResizeColumns="False"
|
||||||
x:Name="dgrdIgnore" ItemsSource="{Binding StreamersToIgnore}" SelectionChanged="dgrdIgnore_SelectionChanged" AutoGenerateColumns="False" CanUserAddRows="False">
|
x:Name="dgrdIgnore" ItemsSource="{Binding StreamersToIgnore}" AutoGenerateColumns="False" CanUserAddRows="False">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridCheckBoxColumn Header="Ignore" Binding="{Binding IsIgnored}" IsReadOnly="False" Width="50">
|
<DataGridCheckBoxColumn Header="Ignore" Binding="{Binding IsIgnored}" IsReadOnly="False" Width="50">
|
||||||
</DataGridCheckBoxColumn>
|
</DataGridCheckBoxColumn>
|
||||||
@@ -42,6 +42,11 @@
|
|||||||
</DataGridHyperlinkColumn.ElementStyle>
|
</DataGridHyperlinkColumn.ElementStyle>
|
||||||
</DataGridHyperlinkColumn>
|
</DataGridHyperlinkColumn>
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}"
|
||||||
|
Color="#FFF"/>
|
||||||
|
<SolidColorBrush Color="#000" x:Key="{x:Static SystemColors.HighlightTextBrushKey}" />
|
||||||
|
</DataGrid.Resources>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
<Button Content="Close" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Width="100" Grid.Row="5" Click="CloseBtn_Click" />
|
<Button Content="Close" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Width="100" Grid.Row="5" Click="CloseBtn_Click" />
|
||||||
<TextBlock Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Text="Changes to the ignore list are automatically saved." VerticalAlignment="Top"/>
|
<TextBlock Grid.Column="1" Grid.Row="1" TextWrapping="Wrap" Text="Changes to the ignore list are automatically saved." VerticalAlignment="Top"/>
|
||||||
|
|||||||
@@ -25,11 +25,6 @@ namespace TwitchDesktopNotifications
|
|||||||
this.Close();
|
this.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void dgrdIgnore_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
|
||||||
{
|
|
||||||
Dispatcher.BeginInvoke(DispatcherPriority.Render, new Action(() => dgrdIgnore.UnselectAll()));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void HyperLink_Click(object sender, RoutedEventArgs e)
|
private void HyperLink_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
string link = ((Hyperlink)e.OriginalSource).NavigateUri.OriginalString;
|
string link = ((Hyperlink)e.OriginalSource).NavigateUri.OriginalString;
|
||||||
|
|||||||
Reference in New Issue
Block a user