Commit fb5d364
committed
Enhance data binding and simplify activation logic
- Updated `ListBox` in `ConductorView.axaml` to bind
`SelectedItem` to `ActiveItem` for two-way data binding.
- Removed `OnActivateAsync` method in `ConductorViewModel.cs`
to simplify the activation process.
- Adjusted `Loaded` event handling in `ActionMessage.cs`
for improved clarity.
- Added convention in `ConventionManager.cs` to bind
`ItemsSource` of `ListBox` to `DataContext`.
- Changed `Unloaded` event handler in `View.cs` to use
`RoutedEventArgs` for proper cleanup in Avalon.1 parent 92a47a7 commit fb5d364
File tree
5 files changed
+5
-10
lines changed- samples/features
- Features.Avalonia/Views
- src/Caliburn.Micro.Platform
5 files changed
+5
-10
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| |||
0 commit comments