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