public FeatureTourPopup(IPlacementAware viewModel) { myViewModel = viewModel; myPopup = new Popup(); myPopup.AllowsTransparency = true; myPopup.Child = new TourControl(); (myPopup.Child as FrameworkElement).DataContext = myViewModel; myPopup.Placement = PlacementMode.Custom; myPopup.CustomPopupPlacementCallback += CustomPopupPlacementCallback; myPopup.Opened += (s, e) => UpdatePopupPosition(); }
public void StartTour(IPlacementAware viewModel) { ViewModel = viewModel as TourViewModel; }
public void StartTour(IPlacementAware viewModel) { myPopup?.Release(); myPopup = new FeatureTourPopup(viewModel); }