public MyPinCreationDetailsView(IntPtr nativeCallerPointer)
        {
            m_nativeCallerPointer = nativeCallerPointer;

            m_currentWindow = (MainWindow)Application.Current.MainWindow;
            m_currentWindow.MainGrid.Children.Add(this);

            Visibility = Visibility.Hidden;
        }
        public SearchResultPoiViewBase(IntPtr nativeCallerPointer)
        {
            m_nativeCallerPointer = nativeCallerPointer;

            m_currentWindow = (MainWindow)Application.Current.MainWindow;
            m_currentWindow.MainGrid.Children.Add(this);

            HideAll();
        }
        public SearchResultPoiViewBase(IntPtr nativeCallerPointer)
        {
            m_nativeCallerPointer = nativeCallerPointer;

            m_currentWindow = (MainWindow)Application.Current.MainWindow;
            m_currentWindow.MainGrid.Children.Add(this);

            Application.Current.MainWindow.SizeChanged += OnWindowResized;

            Visibility = Visibility.Hidden;

            m_isOpen = false;

            Panel.SetZIndex(this, 100);
        }
        public MyPinCreationConfirmationView(IntPtr nativeCallerPointer)
        {
            m_nativeCallerPointer = nativeCallerPointer;
            m_active = false;

            m_currentWindow = (MainWindow)Application.Current.MainWindow;
            m_currentWindow.MainGrid.Children.Add(this);

            m_currentWindow.SizeChanged += UpdatePositionOnWindowResize;

            m_yPosActive = 0.0f;
            m_yPosInactive = Height;

            Visibility = Visibility.Hidden;
        }
        public WorldPinOnMapView(IntPtr nativeCallerPointer, float offset)
        {
            Width = Double.NaN;
            Height = Double.NaN;

            m_nativeCallerPointer = nativeCallerPointer;

            m_currentWindow = (MainWindow)Application.Current.MainWindow;
            m_currentWindow.MainGrid.Children.Add(this);

            Background = new SolidColorBrush(Colors.Cyan);
            UseLayoutRounding = true;
            SnapsToDevicePixels = true;

            Visibility = Visibility.Hidden;
        }