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