|
41 | 41 | IsChecked="{Binding ElementName=MenuToggleButton, Path=IsChecked, Mode=TwoWay}" />
|
42 | 42 | <ListBox x:Name="DemoItemsListBox" Margin="0 16 0 16" SelectedIndex="0"
|
43 | 43 | PreviewMouseLeftButtonUp="UIElement_OnPreviewMouseLeftButtonUp">
|
44 |
| - <ListBox.ItemTemplate> |
45 |
| - <DataTemplate DataType="domain:DemoItem"> |
| 44 | + <ListBox.ItemTemplate> |
| 45 | + <DataTemplate DataType="domain:DemoItem"> |
46 | 46 | <TextBlock Text="{Binding Name}" Margin="32 0 32 0" />
|
47 |
| - </DataTemplate> |
48 |
| - </ListBox.ItemTemplate> |
49 |
| - <domain:DemoItem Name="Home"> |
50 |
| - <domain:DemoItem.Content> |
51 |
| - <wpfExample:Home /> |
52 |
| - </domain:DemoItem.Content> |
53 |
| - </domain:DemoItem> |
54 |
| - <domain:DemoItem Name="Palette"> |
55 |
| - <domain:DemoItem.Content> |
56 |
| - <wpfExample:PaletteSelector> |
57 |
| - <wpfExample:PaletteSelector.DataContext> |
58 |
| - <wpfExample:PaletteSelectorViewModel /> |
59 |
| - </wpfExample:PaletteSelector.DataContext> |
60 |
| - </wpfExample:PaletteSelector> |
61 |
| - </domain:DemoItem.Content> |
62 |
| - </domain:DemoItem> |
63 |
| - <domain:DemoItem Name="Buttons & Toggles"> |
64 |
| - <domain:DemoItem.Content> |
65 |
| - <wpfExample:Buttons /> |
66 |
| - </domain:DemoItem.Content> |
67 |
| - </domain:DemoItem> |
68 |
| - <domain:DemoItem Name="Fields"> |
69 |
| - <domain:DemoItem.Content> |
70 |
| - <wpfExample:TextFields /> |
71 |
| - </domain:DemoItem.Content> |
72 |
| - </domain:DemoItem> |
73 |
| - <domain:DemoItem Name="Cards"> |
74 |
| - <domain:DemoItem.Content> |
75 |
| - <wpfExample:Cards /> |
76 |
| - </domain:DemoItem.Content> |
77 |
| - </domain:DemoItem> |
78 |
| - <domain:DemoItem Name="Colour Zones"> |
79 |
| - <domain:DemoItem.Content> |
80 |
| - <wpfExample:ColorZones /> |
81 |
| - </domain:DemoItem.Content> |
82 |
| - </domain:DemoItem> |
83 |
| - <domain:DemoItem Name="Lists"> |
84 |
| - <domain:DemoItem.Content> |
85 |
| - <wpfExample:Lists> |
86 |
| - <wpfExample:Lists.DataContext> |
87 |
| - <domain:ListsAndGridsViewModel /> |
88 |
| - </wpfExample:Lists.DataContext> |
89 |
| - </wpfExample:Lists> |
90 |
| - </domain:DemoItem.Content> |
91 |
| - </domain:DemoItem> |
92 |
| - <domain:DemoItem Name="Trees"> |
93 |
| - <domain:DemoItem.Content> |
94 |
| - <wpfExample:Trees /> |
95 |
| - </domain:DemoItem.Content> |
96 |
| - </domain:DemoItem> |
97 |
| - <domain:DemoItem Name="Grids"> |
98 |
| - <domain:DemoItem.Content> |
99 |
| - <wpfExample:Grids> |
100 |
| - <wpfExample:Grids.DataContext> |
101 |
| - <domain:ListsAndGridsViewModel /> |
102 |
| - </wpfExample:Grids.DataContext> |
103 |
| - </wpfExample:Grids> |
104 |
| - </domain:DemoItem.Content> |
105 |
| - </domain:DemoItem> |
106 |
| - <domain:DemoItem Name="Expander"> |
107 |
| - <domain:DemoItem.Content> |
108 |
| - <wpfExample:Expander /> |
109 |
| - </domain:DemoItem.Content> |
110 |
| - </domain:DemoItem> |
111 |
| - <domain:DemoItem Name="Menus & Tool Bars"> |
112 |
| - <domain:DemoItem.Content> |
113 |
| - <wpfExample:MenusAndToolBars /> |
114 |
| - </domain:DemoItem.Content> |
115 |
| - </domain:DemoItem> |
116 |
| - <domain:DemoItem Name="Progress Indicators"> |
117 |
| - <domain:DemoItem.Content> |
118 |
| - <wpfExample:Progress /> |
119 |
| - </domain:DemoItem.Content> |
120 |
| - </domain:DemoItem> |
| 47 | + </DataTemplate> |
| 48 | + </ListBox.ItemTemplate> |
| 49 | + <domain:DemoItem Name="Home"> |
| 50 | + <domain:DemoItem.Content> |
| 51 | + <wpfExample:Home /> |
| 52 | + </domain:DemoItem.Content> |
| 53 | + </domain:DemoItem> |
| 54 | + <domain:DemoItem Name="Palette"> |
| 55 | + <domain:DemoItem.Content> |
| 56 | + <wpfExample:PaletteSelector> |
| 57 | + <wpfExample:PaletteSelector.DataContext> |
| 58 | + <wpfExample:PaletteSelectorViewModel /> |
| 59 | + </wpfExample:PaletteSelector.DataContext> |
| 60 | + </wpfExample:PaletteSelector> |
| 61 | + </domain:DemoItem.Content> |
| 62 | + </domain:DemoItem> |
| 63 | + <domain:DemoItem Name="Buttons & Toggles"> |
| 64 | + <domain:DemoItem.Content> |
| 65 | + <wpfExample:Buttons /> |
| 66 | + </domain:DemoItem.Content> |
| 67 | + </domain:DemoItem> |
| 68 | + <domain:DemoItem Name="Fields"> |
| 69 | + <domain:DemoItem.Content> |
| 70 | + <wpfExample:TextFields /> |
| 71 | + </domain:DemoItem.Content> |
| 72 | + </domain:DemoItem> |
| 73 | + <domain:DemoItem Name="Sliders"> |
| 74 | + <domain:DemoItem.Content> |
| 75 | + <wpfExample:Sliders /> |
| 76 | + </domain:DemoItem.Content> |
| 77 | + </domain:DemoItem> |
| 78 | + <domain:DemoItem Name="Cards"> |
| 79 | + <domain:DemoItem.Content> |
| 80 | + <wpfExample:Cards /> |
| 81 | + </domain:DemoItem.Content> |
| 82 | + </domain:DemoItem> |
| 83 | + <domain:DemoItem Name="Colour Zones"> |
| 84 | + <domain:DemoItem.Content> |
| 85 | + <wpfExample:ColorZones /> |
| 86 | + </domain:DemoItem.Content> |
| 87 | + </domain:DemoItem> |
| 88 | + <domain:DemoItem Name="Lists"> |
| 89 | + <domain:DemoItem.Content> |
| 90 | + <wpfExample:Lists> |
| 91 | + <wpfExample:Lists.DataContext> |
| 92 | + <domain:ListsAndGridsViewModel /> |
| 93 | + </wpfExample:Lists.DataContext> |
| 94 | + </wpfExample:Lists> |
| 95 | + </domain:DemoItem.Content> |
| 96 | + </domain:DemoItem> |
| 97 | + <domain:DemoItem Name="Trees"> |
| 98 | + <domain:DemoItem.Content> |
| 99 | + <wpfExample:Trees /> |
| 100 | + </domain:DemoItem.Content> |
| 101 | + </domain:DemoItem> |
| 102 | + <domain:DemoItem Name="Grids"> |
| 103 | + <domain:DemoItem.Content> |
| 104 | + <wpfExample:Grids> |
| 105 | + <wpfExample:Grids.DataContext> |
| 106 | + <domain:ListsAndGridsViewModel /> |
| 107 | + </wpfExample:Grids.DataContext> |
| 108 | + </wpfExample:Grids> |
| 109 | + </domain:DemoItem.Content> |
| 110 | + </domain:DemoItem> |
| 111 | + <domain:DemoItem Name="Expander"> |
| 112 | + <domain:DemoItem.Content> |
| 113 | + <wpfExample:Expander /> |
| 114 | + </domain:DemoItem.Content> |
| 115 | + </domain:DemoItem> |
| 116 | + <domain:DemoItem Name="Menus & Tool Bars"> |
| 117 | + <domain:DemoItem.Content> |
| 118 | + <wpfExample:MenusAndToolBars /> |
| 119 | + </domain:DemoItem.Content> |
| 120 | + </domain:DemoItem> |
| 121 | + <domain:DemoItem Name="Progress Indicators"> |
| 122 | + <domain:DemoItem.Content> |
| 123 | + <wpfExample:Progress /> |
| 124 | + </domain:DemoItem.Content> |
| 125 | + </domain:DemoItem> |
121 | 126 | <domain:DemoItem Name="Dialogs">
|
122 | 127 | <domain:DemoItem.Content>
|
123 | 128 | <wpfExample:Dialogs>
|
|
132 | 137 | <wpfExample:Shadows />
|
133 | 138 | </domain:DemoItem.Content>
|
134 | 139 | </domain:DemoItem>
|
135 |
| - </ListBox> |
| 140 | + </ListBox> |
136 | 141 | </StackPanel>
|
137 | 142 | </wpf:DrawerHost.LeftDrawerContent>
|
138 | 143 | <DockPanel>
|
|
144 | 149 | <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="22">Material Design In XAML Toolkit</TextBlock>
|
145 | 150 | </DockPanel>
|
146 | 151 | </wpf:ColorZone>
|
147 |
| - <ContentControl Margin="16" Content="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.Content}" /> |
148 |
| - </DockPanel> |
| 152 | + <ContentControl Margin="16" Content="{Binding ElementName=DemoItemsListBox, Path=SelectedItem.Content}" /> |
| 153 | + </DockPanel> |
149 | 154 | </wpf:DrawerHost>
|
150 | 155 | </wpf:DialogHost>
|
151 | 156 | </Window>
|
0 commit comments