예제 #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);
        }