示例#1
0
        void MainGangMenu_NewGang()
        {
            GangEntry ie = new GangEntry();
            TabItem ti = new TabItem();
            ti.Header = "New Gang";
            
            ti.Content = ie;
            ie.Visibility = Visibility.Visible;

            GangTabControl.Items.Add(ti);
            GangTabControl.SelectedItem = ti;

            ie.Width = Double.NaN;
            ie.Height = Double.NaN;
        }
示例#2
0
        void MainGangMenu_NewGang()
        {
            GangEntry ie = new GangEntry();
            TabItem   ti = new TabItem();

            ti.Header = "New Gang";

            ti.Content    = ie;
            ie.Visibility = Visibility.Visible;

            GangTabControl.Items.Add(ti);
            GangTabControl.SelectedItem = ti;

            ie.Width  = Double.NaN;
            ie.Height = Double.NaN;
        }