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

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

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