public static void SetupHeader(this ISupportHeader viewModel, string displayName = null, string uri = null) { var headerViewModel = new HeaderViewModel { DisplayName = displayName, ImageName = uri }; viewModel.SetupHeader(headerViewModel); }
public static void SetupHeader(this ISupportHeader viewModel, IDispatcherSchedulerProvider scheduler, string displayName = null, string uri = null) { var headerViewModel = new HeaderViewModel(scheduler) { DisplayName = displayName, ImageName = uri }; viewModel.SetupHeader(headerViewModel); }