Exemple #1
0
        private async void CheckDialogHasBeenGarbageCollected()
        {
            // Ensure control has time to be unloaded
            await Task.Delay(100);

            var resultsTextBox = new TextBox();

            ObjectTracker.GarbageCollect(resultsTextBox);
            await new MessageDialog(resultsTextBox.Text).ShowAsync();
        }
Exemple #2
0
 private void Image_PointerPressed_1(object sender, PointerRoutedEventArgs e)
 {
     ObjectTracker.GarbageCollect();
 }
Exemple #3
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     ObjectTracker.GarbageCollect();
 }