Repository navigation
Expand file tree
/
Copy pathProgram.cs
More file actions
78 lines (41 loc) · 2.4 KB
/
Copy pathProgram.cs
File metadata and controls
78 lines (41 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved.
// ReactiveUI and Contributors licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using ReactiveUI.Binding.Documentation.Setup;
using ReactiveUI.Binding.Documentation.Todo;
BuilderExamples.CreateBuilder();
BuilderExamples.CreateBuilderForResolver();
BuilderExamples.EnsureInitializedNeedsBuildApp();
TodoItemObservableForProperty provider = new();
ButtonCommandBinder binder = new();
ReactiveUI.Binding.Builder.IReactiveUIBindingInstance app = BuilderExamples.BuildTodoApplication(provider, binder);
BuilderExamples.EnsureInitializedAfterBuildApp(app);
ServiceRegistrationExamples.ListObservationProviders(app);
ServiceRegistrationExamples.ResolveMauiViewThreadInvoker(app);
ITodoStore store = ServiceRegistrationExamples.ResolveModuleService(app);
TodoListViewModel viewModel = new(store);
await viewModel.LoadAsync();
TodoView view = new() { ViewModel = viewModel };
ServiceRegistrationExamples.ObserveThroughRegisteredProvider(viewModel.Items[0], provider);
ServiceRegistrationExamples.ConvertTagsWithRegisteredConverter(viewModel, view);
ServiceRegistrationExamples.ConvertPriorityWithRegisteredFallbackConverter();
ServiceRegistrationExamples.SetIndexedTagWithRegisteredSetMethodConverter();
ServiceRegistrationExamples.AttachCommandWithRegisteredBinder(viewModel, view, binder);
ServiceRegistrationExamples.ResolveMappedView(viewModel);
ServiceRegistrationExamples.RegisterCoreObservationModule();
ServiceRegistrationExamples.RegisterConvertersThroughAppBuilder();
ServiceRegistrationExamples.RegisterFallbackAndSetMethodConvertersThroughAppBuilder();
ServiceRegistrationExamples.ConfigureThroughAppBuilder();
BuilderExamples.BuildWithBuilderMembers();
BuilderExamples.BuildThroughAppBuilder();
AnalyzerPatternExamples.WritePathInTheCall();
AnalyzerPatternExamples.ObservePublicProperty();
await AnalyzerPatternExamples.ObservePathOfProperties();
AnalyzerPatternExamples.ObserveNotifyingType();
await AnalyzerPatternExamples.ObserveMirroredProperty();
AnalyzerPatternExamples.ObserveBeforeChange();
AnalyzerPatternExamples.BindCommandToButton();
AnalyzerPatternExamples.BindValidationSummary();
await AnalyzerPatternExamples.BindInteractionProperty();
await AnalyzerPatternExamples.ImportThePackageNamespace();
await AnalyzerPatternExamples.ObserveFromRootNamespace();