File tree Expand file tree Collapse file tree 5 files changed +13
-63
lines changed
MaterialDesignDemo.Shared/Domain Expand file tree Collapse file tree 5 files changed +13
-63
lines changed Original file line number Diff line number Diff line change 1
- using MaterialDesignDemo . Domain ;
1
+ using MaterialDesignDemo . Shared . Domain ;
2
2
using Screen = System . Windows . Forms . Screen ;
3
3
using DrawingPoint = System . Drawing . Point ;
4
4
Original file line number Diff line number Diff line change 129
129
<smtx : XamlDisplay Margin =" 0" UniqueKey =" comboboxes_5" >
130
130
<ComboBox MinWidth =" 72"
131
131
materialDesign:HintAssist.Hint=" Virtualisation"
132
- ItemsSource =" {Binding LongListToTestComboVirtualization }"
132
+ ItemsSource =" {Binding LongIntegerList }"
133
133
SelectedValue =" {Binding SelectedValueOne}" >
134
134
135
135
<ComboBox .SelectedItem>
155
155
<ComboBox MinWidth =" 72"
156
156
materialDesign:HintAssist.Hint=" (editable)"
157
157
IsEditable =" True"
158
- ItemsSource =" {Binding LongListToTestComboVirtualization }" >
158
+ ItemsSource =" {Binding LongIntegerList }" >
159
159
<ComboBox .Text>
160
160
<Binding Mode =" TwoWay"
161
161
Path =" SelectedTextTwo"
174
174
</smtx : XamlDisplay >
175
175
<smtx : XamlDisplay UniqueKey =" comboboxes_7" >
176
176
<ComboBox materialDesign:HintAssist.Hint=" (float hint)"
177
- ItemsSource =" {Binding LongListToTestComboVirtualization }"
177
+ ItemsSource =" {Binding LongIntegerList }"
178
178
Style =" {StaticResource MaterialDesignFloatingHintComboBox}" >
179
179
<ComboBox .ItemsPanel>
180
180
<ItemsPanelTemplate >
187
187
<ComboBox MinWidth =" 72"
188
188
materialDesign:HintAssist.FloatingScale=" 1.5"
189
189
materialDesign:HintAssist.Hint=" (large float hint)"
190
- ItemsSource =" {Binding LongListToTestComboVirtualization }"
190
+ ItemsSource =" {Binding LongIntegerList }"
191
191
Style =" {StaticResource MaterialDesignFloatingHintComboBox}" >
192
192
<ComboBox .ItemsPanel>
193
193
<ItemsPanelTemplate >
200
200
<ComboBox MinWidth =" 72"
201
201
materialDesign:HintAssist.FontFamily=" Verdana"
202
202
materialDesign:HintAssist.Hint=" (Change fontfamily float hint)"
203
- ItemsSource =" {Binding LongListToTestComboVirtualization }"
203
+ ItemsSource =" {Binding LongIntegerList }"
204
204
Style =" {StaticResource MaterialDesignFloatingHintComboBox}" >
205
205
<ComboBox .ItemsPanel>
206
206
<ItemsPanelTemplate >
Original file line number Diff line number Diff line change 1
- using MaterialDesign3Demo . Domain ;
1
+ using MaterialDesignDemo . Shared . Domain ;
2
2
3
3
namespace MaterialDesign3Demo ;
4
4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- using MaterialDesignDemo . Shared . Domain ;
1
+ using System . IO ;
2
2
3
- namespace MaterialDesignDemo . Domain ;
3
+ namespace MaterialDesignDemo . Shared . Domain ;
4
4
5
5
public class ComboBoxesViewModel : ViewModelBase
6
6
{
@@ -12,17 +12,17 @@ public class ComboBoxesViewModel : ViewModelBase
12
12
public ComboBoxesViewModel ( )
13
13
{
14
14
LongIntegerList = new List < int > ( Enumerable . Range ( 0 , 1000 ) ) ;
15
- ShortStringList = new [ ]
16
- {
15
+ ShortStringList =
16
+ [
17
17
"Item 1" ,
18
18
"Item 2" ,
19
19
"Item 3"
20
- } ;
20
+ ] ;
21
21
22
22
SelectedValueOne = LongIntegerList . Skip ( 2 ) . First ( ) ;
23
23
SelectedTextTwo = null ;
24
24
25
- LongStringList = new List < string > ( ) ;
25
+ LongStringList = [ ] ;
26
26
27
27
for ( int i = 0 ; i < 1000 ; i ++ )
28
28
{
You can’t perform that action at this time.
0 commit comments