Click here to Skip to main content
15,901,736 members
Home / Discussions / WPF
   

WPF

 
QuestionCapture mouse event on slider track [modified] Pin
Christian Graus15-Jun-09 0:19
protectorChristian Graus15-Jun-09 0:19 
So, I have a custom slider.   The body of the slider is all buttons, and these are at the top of the Z order.   However, my tracker hangs below the slider, so it has a main tracking area, which is not on top of these buttons, in the sense of z, it's below them, in the sense of y.

This is my template:

                                                <Track.Thumb>
                                                      <Thumb >
                                                            <Thumb.Template>
                                                                  <ControlTemplate>
                                                                        <Grid Margin="0,0,0,0">
                                                                              <Grid.RowDefinitions>
                                                                                    <RowDefinition Height="*" />
                                                                              </Grid.RowDefinitions>
                                                                              <Image Grid.Row="0" Width="30" Margin="-8,0,-8,-25">

Where-ever in this tree I place an event for mouse up, it fires only for the right button, not the left.   How do I catch the left button ? What I am doing is, I have a slider which moves smoothly, but when the user stops scrolling, I want to animate to one of a number of fixed positions.   I am also animating a slide up when the user clicks one of the buttons ( this part works fine ).

Christian Graus

Driven to the arms of OSX by Vista.

"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.

I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

modified on Monday, June 15, 2009 6:28 AM

AnswerRe: Capture mouse event on slider track Pin
Pete O'Hanlon15-Jun-09 0:21
mvePete O'Hanlon15-Jun-09 0:21 
GeneralRe: Capture mouse event on slider track Pin
Christian Graus15-Jun-09 0:30
protectorChristian Graus15-Jun-09 0:30 
AnswerRe: Capture mouse event on slider track Pin
Pete O'Hanlon15-Jun-09 1:33
mvePete O'Hanlon15-Jun-09 1:33 
QuestionBitmapImage Constructor Overloads Pin
#realJSOP15-Jun-09 0:11
professional#realJSOP15-Jun-09 0:11 
AnswerRe: BitmapImage Constructor Overloads Pin
Christian Graus15-Jun-09 0:16
protectorChristian Graus15-Jun-09 0:16 
GeneralRe: BitmapImage Constructor Overloads Pin
Pete O'Hanlon15-Jun-09 0:19
mvePete O'Hanlon15-Jun-09 0:19 
GeneralRe: BitmapImage Constructor Overloads Pin
Christian Graus15-Jun-09 0:45
protectorChristian Graus15-Jun-09 0:45 
AnswerRe: BitmapImage Constructor Overloads Pin
Pete O'Hanlon15-Jun-09 0:16
mvePete O'Hanlon15-Jun-09 0:16 
GeneralRe: BitmapImage Constructor Overloads Pin
#realJSOP15-Jun-09 1:04
professional#realJSOP15-Jun-09 1:04 
QuestionSilverlight 3, WPF will be thrown away then?? Pin
Seraph_summer15-Jun-09 0:03
Seraph_summer15-Jun-09 0:03 
AnswerCross post. Please ignore. Pin
Pete O'Hanlon15-Jun-09 0:13
mvePete O'Hanlon15-Jun-09 0:13 
QuestionWPF Image List viewer problem Pin
ruellm14-Jun-09 23:58
ruellm14-Jun-09 23:58 
AnswerRe: WPF Image List viewer problem Pin
Pete O'Hanlon15-Jun-09 1:19
mvePete O'Hanlon15-Jun-09 1:19 
Questionabout Silverlight 3!! Pin
Seraph_summer14-Jun-09 23:48
Seraph_summer14-Jun-09 23:48 
AnswerCross post. Pin
Pete O'Hanlon15-Jun-09 0:20
mvePete O'Hanlon15-Jun-09 0:20 
GeneralRe: Cross post. Pin
Seraph_summer15-Jun-09 0:25
Seraph_summer15-Jun-09 0:25 
AnswerRe: about Silverlight 3!! Pin
Michael Sync23-Jul-09 20:25
Michael Sync23-Jul-09 20:25 
QuestionAnimation timelines Pin
Christian Graus14-Jun-09 23:20
protectorChristian Graus14-Jun-09 23:20 
AnswerRe: Animation timelines Pin
Pete O'Hanlon14-Jun-09 23:56
mvePete O'Hanlon14-Jun-09 23:56 
GeneralRe: Animation timelines Pin
Christian Graus15-Jun-09 0:14
protectorChristian Graus15-Jun-09 0:14 
GeneralRe: Animation timelines Pin
Pete O'Hanlon15-Jun-09 0:18
mvePete O'Hanlon15-Jun-09 0:18 
GeneralRe: Animation timelines Pin
Christian Graus15-Jun-09 0:32
protectorChristian Graus15-Jun-09 0:32 
GeneralRe: Animation timelines Pin
Pete O'Hanlon15-Jun-09 1:13
mvePete O'Hanlon15-Jun-09 1:13 
GeneralRe: Animation timelines Pin
Christian Graus15-Jun-09 14:48
protectorChristian Graus15-Jun-09 14:48 

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.