Skip to content

Commit 0f468bb

Browse files
committed
fix: IoC
1 parent 6140131 commit 0f468bb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Caliburn.Micro.Platform/Platforms/netcore-avalonia/BootstrapperBase.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ protected virtual void PrepareApplication()
127127
/// <c>singleViewPlatform.MainView</c>. Use the provided helper DisplaySingleViewFor(...) for convenience.
128128
/// </remarks>
129129
/// <example>
130-
/// // Example usage in an override:
131-
/// // DisplaySingleViewFor<MainViewModel>(singleViewPlatform);
130+
/// Example usage in an override:
131+
/// <code>
132+
/// DisplaySingleViewFor&lt;MainViewModel&gt;(singleViewPlatform);
133+
/// </code>
132134
/// </example>
133135
protected virtual void OnSingleViewPlatformStartup(ISingleViewApplicationLifetime singleViewPlatform)
134136
{
@@ -236,7 +238,7 @@ protected async Task DisplayRootViewFor<TViewModel>(IDictionary<string, object>
236238
protected void DisplaySingleViewFor(ISingleViewApplicationLifetime singleViewPlatform, Type viewModelType, object context = null, IDictionary<string, object> settings = null)
237239
{
238240
//Log.Info("Displaying SingleView: {0}", viewModelType.FullName);
239-
var rootModel = _container.GetInstance(viewModelType, null);
241+
var rootModel = IoC.GetInstance(viewModelType, null);
240242
Control view = ViewLocator.LocateForModel(rootModel, null, context);
241243
ApplySettings(view, settings);
242244
ViewModelBinder.Bind(rootModel, view, context);

0 commit comments

Comments
 (0)