Click here to Skip to main content
15,905,071 members
Home / Discussions / WPF
   

WPF

 
QuestionUsing Multiple User Controls Pin
jayvee102216-Oct-08 16:14
jayvee102216-Oct-08 16:14 
AnswerRe: Using Multiple User Controls Pin
Pete O'Hanlon16-Oct-08 23:07
mvePete O'Hanlon16-Oct-08 23:07 
GeneralRe: Using Multiple User Controls Pin
Jammer16-Oct-08 23:20
Jammer16-Oct-08 23:20 
GeneralRe: Using Multiple User Controls Pin
Pete O'Hanlon16-Oct-08 23:46
mvePete O'Hanlon16-Oct-08 23:46 
GeneralRe: Using Multiple User Controls Pin
Jammer17-Oct-08 0:43
Jammer17-Oct-08 0:43 
GeneralRe: Using Multiple User Controls Pin
Pete O'Hanlon17-Oct-08 1:09
mvePete O'Hanlon17-Oct-08 1:09 
GeneralRe: Using Multiple User Controls Pin
Jammer17-Oct-08 1:41
Jammer17-Oct-08 1:41 
AnswerRe: Using Multiple User Controls Pin
Jammer16-Oct-08 23:19
Jammer16-Oct-08 23:19 
Rough and dirty!!!

<Window x:Class="AddTabItem.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <Grid>
     <Grid.RowDefinitions>
         <RowDefinition Height="*" />
         <RowDefinition Height="25" />
     </Grid.RowDefinitions>
     <TabControl x:Name="TabControl1" 
                 VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                 Grid.Column="0" Grid.Row="0" Grid.RowSpan="1" />
        <Button x:Name="btnAddTab" Content="Add Tab" Click="btnAddTab_Click"
                Grid.Row="1" Grid.RowSpan="1"/>
     </Grid>
</Window>


namespace AddTabItem
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1 : Window
    {
        public Window1()
        {
            InitializeComponent();
        }

        private void btnAddTab_Click(object sender, RoutedEventArgs e)
        {
            AddTabs();
        }

        private void AddTabs()
        {
            TabItem tabitem = new TabItem();
            Button button = new Button();
            button.Content = "Added Button!";
            tabitem.Content = button;
            TabControl1.Items.Add(tabitem);
            TabControl1.SelectedIndex = TabControl1.Items.Count;
        }
    }
}



AnswerRe: Using Multiple User Controls Pin
jayvee102217-Oct-08 8:05
jayvee102217-Oct-08 8:05 
NewsQuicker way to make Silverlight animations! Pin
OTUTO15-Oct-08 21:28
OTUTO15-Oct-08 21:28 
GeneralRe: Quicker way to make Silverlight animations! Pin
Michael Sync18-Oct-08 21:48
Michael Sync18-Oct-08 21:48 
GeneralRe: Quicker way to make Silverlight animations! Pin
User 2710091-May-09 4:50
User 2710091-May-09 4:50 
QuestionListView In WPF Pin
resna.s15-Oct-08 18:03
resna.s15-Oct-08 18:03 
AnswerRe: ListView In WPF Pin
Pete O'Hanlon15-Oct-08 23:46
mvePete O'Hanlon15-Oct-08 23:46 
QuestionXAML Power Toys 3.3 Released With New Class Browser Pin
User 27100914-Oct-08 0:22
User 27100914-Oct-08 0:22 
QuestionDynamically setting textbox/listbox background and isTabStop Pin
John Hanlon13-Oct-08 11:01
John Hanlon13-Oct-08 11:01 
AnswerRe: Dynamically setting textbox/listbox background and isTabStop Pin
User 27100913-Oct-08 14:00
User 27100913-Oct-08 14:00 
QuestionWPF idle application freezes Pin
Camilo Sanchez13-Oct-08 10:19
Camilo Sanchez13-Oct-08 10:19 
AnswerRe: WPF idle application freezes Pin
User 27100914-Oct-08 5:03
User 27100914-Oct-08 5:03 
GeneralRe: WPF idle application freezes Pin
Camilo Sanchez14-Oct-08 11:43
Camilo Sanchez14-Oct-08 11:43 
QuestionWPF Ready for LOB Apps??? Pin
Jammer13-Oct-08 9:35
Jammer13-Oct-08 9:35 
AnswerRe: WPF Ready for LOB Apps??? Pin
Pete O'Hanlon13-Oct-08 9:39
mvePete O'Hanlon13-Oct-08 9:39 
GeneralRe: WPF Ready for LOB Apps??? Pin
Jammer13-Oct-08 9:42
Jammer13-Oct-08 9:42 
GeneralRe: WPF Ready for LOB Apps??? Pin
Scott Dorman13-Oct-08 9:45
professionalScott Dorman13-Oct-08 9:45 
GeneralRe: WPF Ready for LOB Apps??? Pin
Pete O'Hanlon13-Oct-08 10:18
mvePete O'Hanlon13-Oct-08 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.