We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68f004c commit 6999402Copy full SHA for 6999402
2 files changed
Desktop/Project/TasksList.xaml
@@ -18,7 +18,7 @@
18
<Button AutomationProperties.AutomationId="AddTask" Content="_Add task" Command="{Binding Add}" />
19
</StackPanel>
20
21
- <ListBox Name="Tasks">
+ <ListBox ItemsSource="{Binding Tasks}">
22
<ListBox.ItemTemplate>
23
<DataTemplate DataType="{x:Type domain:Task}">
24
<StackPanel Orientation="Horizontal">
Desktop/Project/TasksList.xaml.cs
@@ -12,7 +12,6 @@ public TasksList(TaskListViewModel viewModel)
12
DataContext = viewModel;
13
14
InitializeComponent();
15
- Tasks.ItemsSource = viewModel.Tasks;
16
17
viewModel.PopulateTasks();
viewModel.TaskCreationViewCreator = creationViewModel =>
0 commit comments