Click here to Skip to main content
16,006,594 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Integrating a Windows Forms control in WPF using Silverlight (Visual Studio 2008 and Expression Blend) Pin
Insincere Dave6-May-08 10:54
Insincere Dave6-May-08 10:54 
QuestionRe: Integrating a Windows Forms control in WPF using Silverlight (Visual Studio 2008 and Expression Blend) Pin
Mr. Accident6-May-08 11:40
Mr. Accident6-May-08 11:40 
QuestionSilverLight video time slider slow response Pin
shefali_sinha5-May-08 9:16
shefali_sinha5-May-08 9:16 
AnswerRe: SilverLight video time slider slow response Pin
AlanDiskin14-May-08 23:45
AlanDiskin14-May-08 23:45 
Question'Heroes Happen Here' Hands-On Lab Pin
David Veeneman5-May-08 5:34
David Veeneman5-May-08 5:34 
AnswerRe: 'Heroes Happen Here' Hands-On Lab Pin
geekgirrrl1-Jul-08 9:54
geekgirrrl1-Jul-08 9:54 
QuestionTabControl: WinForms Vs WPF Pin
yanairon4-May-08 21:30
yanairon4-May-08 21:30 
AnswerRe: TabControl: WinForms Vs WPF Pin
User 2710097-May-08 13:29
User 2710097-May-08 13:29 
Read up on Preview events and the cancelling of them. This code in effect cancels the mouse click so that the tab selection will not take place.

You can get access to the tabitem that was click from the e.OriginalSource and then perform you logic to cancel the mouse click or not.

Private Sub tcOpenPages_PreviewMouseLeftButtonDown(ByVal sender As Object, _
           ByVal e As System.Windows.Input.MouseButtonEventArgs) _
           Handles tcOpenPages.PreviewMouseLeftButtonDown

    Dim bolCancelTabSelection As Boolean = False

    'write some code to set bolCancelTabSelection

    If bolCancelTabSelection Then
        e.Handled = True
    End If

End Sub


Cheers, Karl

» CodeProject 2008 MVP
» Microsoft MVP - Client App Dev

My Blog | Mole's Home Page | MVP Profile

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

AnswerRe: TabControl: WinForms Vs WPF Pin
Ajay.k_Singh9-May-08 12:13
Ajay.k_Singh9-May-08 12:13 
GeneralRe: TabControl: WinForms Vs WPF Pin
yanairon11-May-08 1:12
yanairon11-May-08 1:12 
QuestionHow to develop 3D virtual environment online using C#.net? Pin
katelva3-May-08 16:38
katelva3-May-08 16:38 
AnswerRe: How to develop 3D virtual environment online using C#.net? Pin
Michael Sync5-May-08 17:09
Michael Sync5-May-08 17:09 
QuestionHow to develop virtual environment online using C# with Managed DirectX? Pin
katelva3-May-08 8:21
katelva3-May-08 8:21 
AnswerRe: How to develop virtual environment online using C# with Managed DirectX? Pin
Christian Graus3-May-08 13:31
protectorChristian Graus3-May-08 13:31 
QuestionReusable Animation Class Pin
Jammer2-May-08 7:32
Jammer2-May-08 7:32 
AnswerRe: Reusable Animation Class [modified] Pin
Insincere Dave2-May-08 11:42
Insincere Dave2-May-08 11:42 
GeneralRe: Reusable Animation Class Pin
Jammer2-May-08 12:53
Jammer2-May-08 12:53 
GeneralRe: Reusable Animation Class Pin
Jammer2-May-08 13:15
Jammer2-May-08 13:15 
QuestionExpander Control Pin
Jammer2-May-08 4:24
Jammer2-May-08 4:24 
AnswerRe: Expander Control Pin
Jammer2-May-08 4:35
Jammer2-May-08 4:35 
QuestionError on Starting Sliver lights in VS 2008 Pin
Abhijit Jana2-May-08 0:25
professionalAbhijit Jana2-May-08 0:25 
AnswerRe: Error on Starting Sliver lights in VS 2008 Pin
Abhijit Jana2-May-08 7:36
professionalAbhijit Jana2-May-08 7:36 
NewsSource and Unit Tests available now for Silverlight 2 Beta 1 Controls Pin
brucedkyle1-May-08 11:49
brucedkyle1-May-08 11:49 
GeneralRe: Source and Unit Tests available now for Silverlight 2 Beta 1 Controls Pin
Michael Sync5-May-08 16:47
Michael Sync5-May-08 16:47 
QuestionTargetInvocationException [modified] Pin
Ian Grech1-May-08 10:39
Ian Grech1-May-08 10:39 

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.