Exemplo n.º 1
0
            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();
            }
Exemplo n.º 2
0
 public void StartTour(IPlacementAware viewModel)
 {
     ViewModel = viewModel as TourViewModel;
 }
Exemplo n.º 3
0
 public void StartTour(IPlacementAware viewModel)
 {
     myPopup?.Release();
     myPopup = new FeatureTourPopup(viewModel);
 }