示例#1
0
        private void OnDismissClick(object sender, RoutedEventArgs e)
        {
            var shellPage = this.FindAscendant <Shell>();

            PickedPlacesPane.Visibility = Visibility.Collapsed;
            PickedPlacesPane
            .Fade(0.95f)
            .Scale(scaleX: 0.95f, scaleY: 0.95f, centerX: (float)shellPage.ActualWidth / 2, centerY: (float)shellPage.ActualHeight / 2)
            .Start();
        }
示例#2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var shellPage = this.FindAscendant <Shell>();

            PickedPlacesPane.Visibility = Visibility.Visible;
            PickedPlacesPane
            .Fade(1.0f)
            .Scale(scaleX: 1.0f, scaleY: 1.0f, centerX: (float)shellPage.ActualWidth / 2, centerY: (float)shellPage.ActualHeight / 2)
            .Start();
        }