예제 #1
0
 public void Clean()
 {
     if (s != null)
     {
         s.Dispose();
     }
 }
예제 #2
0
        /// <summary>
        ///     Setup the page
        /// </summary>
        public SearchView()
        {
            // Initialize XAML Components
            InitializeComponent();

            Unloaded += (s, e) =>
            {
                ViewModel?.Dispose();
            };
        }
예제 #3
0
        /// <summary>
        ///     Setup the page
        /// </summary>
        public SearchView()
        {
            // Initialize XAML Components
            InitializeComponent();
            // Set the data context
            DataContext = ViewModel;

            Unloaded += (s, e) =>
            {
                ViewModel.Dispose();
            };
        }