Results 1 to 4 of 4

Thread: Custom TabPage/TabItem

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2010
    Posts
    26

    Custom TabPage/TabItem

    Hello,

    I have a TabControl on my main window and I would like it to have two types of tabs. One tab will have several textboxes on them. How do I create a general Tab Page. i.e. create an XAML file to go with my tab:
    Code:
    Public Class MyTab : Inherits TabItem
      CustomText_TextChanged(...)
    End Class
    
    Public Class CustomText : Inherits TextBox
    End Class

    Code:
    <Resource>
      <Type:MyTab>
         <CustomText Name="CT1"/>
         <CustomText Name="CT2"/>
      </Type:MyTab>
    </Resource>
    
    <MainTabControl>
      <MyTab Header="Custom Tab" />
    </MainTabControl>

    I am really bad at XAML, so the XAML part will have to be explained.
    Last edited by UWGRAD; Jun 7th, 2011 at 04:28 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width