Inheritance: System.Windows.Controls.UserControl
Example #1
0
        private void ShowLocationPopup()
        {
            // Show the popup only if the user has not confirmed the use
            if (!App.ViewModel.UseLocationServices)
            {
                Popup locationServicesPopup = new Popup();

                LocationServicesPopup popupContent = new LocationServicesPopup();
                locationServicesPopup                  = new Popup();
                locationServicesPopup.Opacity          = 1.0;
                locationServicesPopup.VerticalOffset   = 0;
                locationServicesPopup.HorizontalOffset = 0;
                locationServicesPopup.Child            = popupContent;
                locationServicesPopup.IsOpen           = true;
                locationServicesPopup.Closed          += (s1, e1) =>
                {
                    // Add you code here to do something
                    // when the Popup is closed
                };
            }
        }
Example #2
0
        private void ShowLocationPopup()
        {
            // Show the popup only if the user has not confirmed the use
              if (!App.ViewModel.UseLocationServices)
              {
            Popup locationServicesPopup = new Popup();

            LocationServicesPopup popupContent = new LocationServicesPopup();
            locationServicesPopup = new Popup();
            locationServicesPopup.Opacity = 1.0;
            locationServicesPopup.VerticalOffset = 0;
            locationServicesPopup.HorizontalOffset = 0;
            locationServicesPopup.Child = popupContent;
            locationServicesPopup.IsOpen = true;
            locationServicesPopup.Closed += (s1, e1) =>
            {
              // Add you code here to do something
              // when the Popup is closed
            };
              }
        }