Click here to Skip to main content
15,909,953 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: What is the Exact use of WF??? Pin
Kevin McFarlane24-Mar-09 7:08
Kevin McFarlane24-Mar-09 7:08 
AnswerRe: What is the Exact use of WF??? Pin
snowwolfchicago27-Mar-09 13:11
snowwolfchicago27-Mar-09 13:11 
GeneralRe: What is the Exact use of WF??? Pin
Narendra Reddy Vajrala30-Mar-09 5:39
Narendra Reddy Vajrala30-Mar-09 5:39 
QuestionWPF Setup Pin
GomathiR24-Mar-09 1:21
GomathiR24-Mar-09 1:21 
AnswerRe: WPF Setup Pin
Pete O'Hanlon24-Mar-09 1:28
mvePete O'Hanlon24-Mar-09 1:28 
GeneralRe: WPF Setup Pin
GomathiR24-Mar-09 19:18
GomathiR24-Mar-09 19:18 
GeneralRe: WPF Setup Pin
Pete O'Hanlon25-Mar-09 22:43
mvePete O'Hanlon25-Mar-09 22:43 
AnswerRe: WPF Setup Pin
Michael Bookatz24-Mar-09 5:32
Michael Bookatz24-Mar-09 5:32 
AnswerRe: WPF Setup Pin
ramz_g25-Mar-09 20:33
ramz_g25-Mar-09 20:33 
Questionproblem in scroll Pin
amer shammout24-Mar-09 0:40
amer shammout24-Mar-09 0:40 
QuestionXmlWriter Pin
Ranger4923-Mar-09 22:28
Ranger4923-Mar-09 22:28 
AnswerRe: XmlWriter Pin
Ranger4923-Mar-09 23:42
Ranger4923-Mar-09 23:42 
GeneralRe: XmlWriter Pin
Ranger4924-Mar-09 4:02
Ranger4924-Mar-09 4:02 
GeneralRe: XmlWriter Pin
Mark Salsbery24-Mar-09 6:17
Mark Salsbery24-Mar-09 6:17 
GeneralRe: XmlWriter Pin
Ranger4924-Mar-09 6:22
Ranger4924-Mar-09 6:22 
GeneralRe: XmlWriter Pin
Mark Salsbery24-Mar-09 6:34
Mark Salsbery24-Mar-09 6:34 
GeneralRe: XmlWriter Pin
Ranger4924-Mar-09 6:41
Ranger4924-Mar-09 6:41 
QuestionRoutingStrategy doesn't work:confused: Pin
mildred-frontfree23-Mar-09 21:04
mildred-frontfree23-Mar-09 21:04 
AnswerRe: RoutingStrategy doesn't work:confused: Pin
ABitSmart23-Mar-09 22:44
ABitSmart23-Mar-09 22:44 
mildred-frontfree wrote:
But the RoutingStrategy doesn't work.

No, it works.

When you set it as bubbling, it starts from itself and ends at the root.
When you set it as Tunneling, it starts from the root and ends at itself.

mildred-frontfree wrote:
(sender as Canvas).RaiseEvent(newEventArgs);

Remember, you are raising the event from the Canvas.

In your case, when you set it as bubble, it started from Canvas and searched upto the root. It only found OuterButton, which is correct.
When you set it tunneling, it started from the root. It found Outerbutton fired event for it. Continued upto the Canvas and never found anymore MyButtonSimple.

If instead you had raised it from InnerButton, you would have got your desired output.

Try this,
<local:MyButtonSimple Width="100" Height="100" Tag="OuterButton">
    <Canvas Width="80" Height="80">
        <local:MyButtonSimple Width="60" Height="60" Tag="InnerButton">
            <Canvas Width="40" Height="40" PreviewMouseDown="Canvas_PreviewMouseDown">
                <local:MyButtonSimple Width="20" Height="20" Tag="MoreInnerButton"/>
            </Canvas>
        </local:MyButtonSimple>              
    </Canvas>
</local:MyButtonSimple>


When you set the event as Bubbling, it will print InnerButton and then OuterButton.
When you set the event as Tunneling, it will print OuterButton and then InnerButton.
GeneralRe: RoutingStrategy doesn't work:confused: Pin
mildred-frontfree23-Mar-09 23:10
mildred-frontfree23-Mar-09 23:10 
QuestionCreating button in SL using createFromXaml() Pin
hxxbin23-Mar-09 11:48
hxxbin23-Mar-09 11:48 
AnswerRe: Creating button in SL using createFromXaml() Pin
Mark Salsbery23-Mar-09 17:50
Mark Salsbery23-Mar-09 17:50 
GeneralRe: Creating button in SL using createFromXaml() Pin
hxxbin26-Mar-09 17:55
hxxbin26-Mar-09 17:55 
QuestionListbox items - how to "owner draw" Pin
#realJSOP23-Mar-09 11:08
professional#realJSOP23-Mar-09 11:08 
AnswerRe: Listbox items - how to "owner draw" Pin
Christian Graus23-Mar-09 15:20
protectorChristian Graus23-Mar-09 15:20 

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.