Beispiel #1
0
 private void SelectEachTabAndUpdateItsLayout()
 {
     _tabControl.Items.ForEach(delegate(object item)
     {
         FabTabItem tabItem = _tabControl.FindFabTabFromItem(item);
         if (tabItem != null)
         {
             tabItem.IsSelected = true;
             _tabControl.UpdateLayout();
         }
     });
 }
        public void ForceItemsRender()
        {
            //add all the unselected items into the hidden listview that gets stuffed into
            //the hidden content presenter...without this, snapshots of the other views for the contentstab
            //don't work.
            _tabControl.HiddenContent.Items.Clear();
            _tabControl.Items.ForEach(delegate(object item)
            {
                if (item != _tabControl.SelectedItem)
                {
                    _tabControl.HiddenContent.Items.Add(item);
                }
            });

            _tabControl.UpdateLayout();
        }