示例#1
0
 public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource)
 {
     var hotspotsView = new View.Hotspots();
     var hotspotsViewModel = new ViewModels.Hotspots.Hotspots { Dispatchable = hotspotsView };
     hotspotsViewModel.RegisterHub(hub);
     hotspotsViewModel.SourceLocating = jumpToSource;
     hotspotsView.DataContext = hotspotsViewModel;
     return hotspotsView;
 }
示例#2
0
        public static FrameworkElement CreateHotspots(ViewHub hub, IJumpToSource jumpToSource)
        {
            var hotspotsView      = new View.Hotspots();
            var hotspotsViewModel = new ViewModels.Hotspots.Hotspots {
                Dispatchable = hotspotsView
            };

            hotspotsViewModel.RegisterHub(hub);
            hotspotsViewModel.SourceLocating = jumpToSource;
            hotspotsView.DataContext         = hotspotsViewModel;
            return(hotspotsView);
        }