File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -104,18 +104,17 @@ public ViewModelViewHost()
104104 var view = viewLocator . ResolveView ( x . ViewModel , x . Contract ) ?? viewLocator . ResolveView ( x . ViewModel , null ) ;
105105
106106 if ( view == null ) {
107- throw new Exception ( String . Format ( "Couldn't find view for '{0 }'." , x . ViewModel ) ) ;
107+ throw new Exception ( $ "Couldn't find view for '{ x . ViewModel } '.") ;
108108 }
109109
110110 view . ViewModel = x . ViewModel ;
111111 Content = view ;
112112 } ) ) ;
113- } ) ;
114113
115- this
116- . WhenAnyObservable ( x => x . ViewContractObservable )
117- . ObserveOn ( RxApp . MainThreadScheduler )
118- . Subscribe ( x => this . viewContract = x ) ;
114+ d ( this . WhenAnyObservable ( x => x . ViewContractObservable )
115+ . ObserveOn ( RxApp . MainThreadScheduler )
116+ . Subscribe ( x => viewContract = x ) ) ;
117+ } ) ;
119118 }
120119
121120 static void somethingChanged ( DependencyObject dependencyObject , DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs )
You can’t perform that action at this time.
0 commit comments