|
@@ -148,28 +148,32 @@
|
|
|
</TabItem>
|
|
|
|
|
|
<TabItem Header="Folders">
|
|
|
- <DataGrid ItemsSource="{Binding FolderSettings}"
|
|
|
- HorizontalAlignment="Stretch" Width="400"
|
|
|
- HeadersVisibility="Column"
|
|
|
- SelectionUnit="FullRow"
|
|
|
- AutoGenerateColumns="False"
|
|
|
- CanUserResizeColumns="False" CanUserSortColumns="False"
|
|
|
- CanUserReorderColumns="False" CanUserAddRows="False"
|
|
|
- CanUserDeleteRows="False">
|
|
|
- <DataGrid.Resources>
|
|
|
- <!--<Style TargetType="{x:Type DataGridRow}">
|
|
|
- <Setter Property="IsHitTestVisible" Value="False" />
|
|
|
- </Style>-->
|
|
|
- <Style TargetType="DataGridCell">
|
|
|
- <Setter Property="BorderThickness" Value="0"/>
|
|
|
+ <ListView ItemsSource="{Binding FolderSettings}">
|
|
|
+ <ListView.View>
|
|
|
+ <GridView>
|
|
|
+ <GridViewColumn Header="Folder" DisplayMemberBinding="{Binding FolderName}"/>
|
|
|
+ <GridViewColumn Header="Watched">
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox IsChecked="{Binding IsWatched}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
+ </GridViewColumn>
|
|
|
+ <GridViewColumn Header="Notifications">
|
|
|
+ <GridViewColumn.CellTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <CheckBox IsChecked="{Binding IsWatched}"/>
|
|
|
+ </DataTemplate>
|
|
|
+ </GridViewColumn.CellTemplate>
|
|
|
+ </GridViewColumn>
|
|
|
+ </GridView>
|
|
|
+ </ListView.View>
|
|
|
+ <ListView.ItemContainerStyle>
|
|
|
+ <Style TargetType="{x:Type ListViewItem}">
|
|
|
+ <Setter Property="Focusable" Value="False"/>
|
|
|
</Style>
|
|
|
- </DataGrid.Resources>
|
|
|
- <DataGrid.Columns>
|
|
|
- <DataGridTextColumn Header="Folder Name" Width="*" Binding="{Binding FolderName}" IsReadOnly="True"/>
|
|
|
- <DataGridCheckBoxColumn Header="Watched" Binding="{Binding IsWatched}"/>
|
|
|
- <DataGridCheckBoxColumn Header="Notifications"/>
|
|
|
- </DataGrid.Columns>
|
|
|
- </DataGrid>
|
|
|
+ </ListView.ItemContainerStyle>
|
|
|
+ </ListView>
|
|
|
</TabItem>
|
|
|
</TabControl>
|
|
|
</DockPanel>
|