示例#1
0
        public static void SetupHeader(this ISupportHeader viewModel, string displayName = null, string uri = null)
        {
            var headerViewModel = new HeaderViewModel
            {
                DisplayName = displayName,
                ImageName   = uri
            };

            viewModel.SetupHeader(headerViewModel);
        }
示例#2
0
        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);
        }