|
6 | 6 | xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" |
7 | 7 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
8 | 8 | xmlns:smtx="clr-namespace:ShowMeTheXAML;assembly=ShowMeTheXAML" |
9 | | - xmlns:converters="clr-namespace:MaterialDesignThemes.Wpf.Converters;assembly=MaterialDesignThemes.Wpf" |
10 | 9 | d:DataContext="{d:DesignInstance domain:TreesViewModel}" |
11 | 10 | d:DesignHeight="1080" |
12 | 11 | d:DesignWidth="1920" |
|
19 | 18 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.PopupBox.xaml" /> |
20 | 19 | <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.TextBlock.xaml" /> |
21 | 20 | </ResourceDictionary.MergedDictionaries> |
22 | | - |
23 | | - <converters:TreeListViewIndentConverter x:Key="TreeListViewIndentConverter" /> |
24 | 21 | </ResourceDictionary> |
25 | 22 | </UserControl.Resources> |
26 | 23 |
|
|
218 | 215 | SelectedItem="{Binding SelectedTreeItem}"> |
219 | 216 | <materialDesign:TreeListView.Resources> |
220 | 217 | <HierarchicalDataTemplate DataType="{x:Type domain:TestItem}" ItemsSource="{Binding Items, Mode=OneTime}"> |
221 | | - <StackPanel Orientation="Horizontal"> |
222 | | - <StackPanel.Margin> |
223 | | - <MultiBinding Converter="{StaticResource TreeListViewIndentConverter}"> |
224 | | - <Binding Path="LevelIndentSize" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type materialDesign:TreeListView}}" /> |
225 | | - <Binding Path="Level" RelativeSource="{RelativeSource AncestorType={x:Type materialDesign:TreeListViewItem}}" /> |
226 | | - </MultiBinding> |
227 | | - </StackPanel.Margin> |
228 | | - |
229 | | - <ToggleButton IsChecked="{Binding RelativeSource={RelativeSource AncestorType=materialDesign:TreeListViewItem, Mode=FindAncestor}, Path=IsExpanded}" Style="{StaticResource MaterialDesignTreeListViewToggleButtonStyle}" /> |
230 | | - |
231 | 218 | <TextBlock VerticalAlignment="Center" Text="{Binding Name, Mode=OneTime}" /> |
232 | | - </StackPanel> |
233 | 219 | </HierarchicalDataTemplate> |
234 | 220 |
|
235 | 221 | <HierarchicalDataTemplate DataType="{x:Type domain:MovieCategory}" |
|
258 | 244 | </Style> |
259 | 245 | </materialDesign:TreeListView.ItemContainerStyle> |
260 | 246 |
|
261 | | - <materialDesign:TreeListView.View> |
| 247 | + <!--<materialDesign:TreeListView.View> |
262 | 248 | <GridView> |
263 | 249 | <GridView.Columns> |
264 | 250 | <GridViewColumn Width="250" Header="Name"> |
265 | 251 | <GridViewColumn.CellTemplate> |
266 | 252 | <DataTemplate> |
267 | | - <StackPanel Orientation="Horizontal"> |
268 | | - <StackPanel.Margin> |
269 | | - <MultiBinding Converter="{StaticResource TreeListViewIndentConverter}"> |
270 | | - <Binding Path="LevelIndentSize" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type materialDesign:TreeListView}}" /> |
271 | | - <Binding Path="Level" RelativeSource="{RelativeSource AncestorType={x:Type materialDesign:TreeListViewItem}}" /> |
272 | | - </MultiBinding> |
273 | | - </StackPanel.Margin> |
274 | | - |
275 | | - <ToggleButton IsChecked="{Binding RelativeSource={RelativeSource AncestorType=materialDesign:TreeListViewItem, Mode=FindAncestor}, Path=IsExpanded}" Style="{StaticResource MaterialDesignTreeListViewToggleButtonStyle}" /> |
276 | | - |
277 | | - <TextBlock VerticalAlignment="Center" Text="{Binding Name, Mode=OneTime}" /> |
278 | | - </StackPanel> |
| 253 | + <TextBlock VerticalAlignment="Center" Text="{Binding Name, Mode=OneTime}" /> |
279 | 254 | </DataTemplate> |
280 | 255 | </GridViewColumn.CellTemplate> |
281 | 256 | </GridViewColumn> |
|
289 | 264 | </GridViewColumn> |
290 | 265 | </GridView.Columns> |
291 | 266 | </GridView> |
292 | | - </materialDesign:TreeListView.View> |
| 267 | + </materialDesign:TreeListView.View>--> |
293 | 268 | </materialDesign:TreeListView> |
294 | 269 | <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right"> |
295 | 270 | <Button Command="{Binding AddListTreeItemCommand}" |
|
0 commit comments