|
-
Jul 3rd, 2011, 05:24 PM
#1
Tabless Tabcontrol or Something Similar
In the WPF app I'm making at the moment, I need a method that will allow me to click a button and a different "page" in the middle of the window is changed based on button click.
So, if button 1 is clicked, page 1 is shown and so forth. In WinForms, I'd just make a tabless tabcontrol like so:
VB.NET Code:
Public Class TabLessTabControl
Inherits TabControl
Protected Overrides Sub WndProc(ByRef m As Message)
'Hide tabs by trapping the TCM_ADJUSTRECT message
If m.Msg = &H1328 Then
m.Result = CType(1, IntPtr)
Else
MyBase.WndProc(m)
End If
End Sub
End Class
But, that doesn't work in WPF. Does anyone have any ideas on how to duplicate this in WPF or if there's a better method?
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|