Exemplo n.º 1
0
        /// <summary>
        /// when change tab item reload the others- to get "clean" data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.RemoveTabItem.Content = null;
            RemoveChildUserControl r = new RemoveChildUserControl();

            this.RemoveTabItem.Content = r;

            this.UpdateTabItem.Content = null;
            UpdateChildUserControl u = new UpdateChildUserControl();

            this.UpdateTabItem.Content = u;
        }
Exemplo n.º 2
0
        /// <summary>
        /// when change tab item reload the others- to get "clean" data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpdateTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.AddTabItem.Content = null;
            AddChildUserControl a = new AddChildUserControl();

            this.AddTabItem.Content = a;

            this.RemoveTabItem.Content = null;
            RemoveChildUserControl r = new RemoveChildUserControl();

            this.RemoveTabItem.Content = r;
        }