Click here to Skip to main content
15,887,135 members
Home / Discussions / WPF
   

WPF

 
QuestionCreate event in UserControl Pin
jadughar30-Jun-11 10:55
jadughar30-Jun-11 10:55 
AnswerRe: Create event in UserControl Pin
Mark Salsbery30-Jun-11 13:43
Mark Salsbery30-Jun-11 13:43 
GeneralRe: Create event in UserControl Pin
jadughar30-Jun-11 21:12
jadughar30-Jun-11 21:12 
GeneralRe: Create event in UserControl Pin
Mark Salsbery1-Jul-11 6:26
Mark Salsbery1-Jul-11 6:26 
GeneralRe: Create event in UserControl Pin
jadughar1-Jul-11 7:59
jadughar1-Jul-11 7:59 
GeneralRe: Create event in UserControl Pin
Mark Salsbery1-Jul-11 8:09
Mark Salsbery1-Jul-11 8:09 
GeneralRe: Create event in UserControl Pin
jadughar1-Jul-11 10:45
jadughar1-Jul-11 10:45 
GeneralRe: Create event in UserControl Pin
Mark Salsbery1-Jul-11 12:04
Mark Salsbery1-Jul-11 12:04 
jadughar wrote:
My sample is giving error.


At compile time or runtime? I would think that should work too, and it compiles.


jadughar wrote:
what's the difference between RoutedEvent and the Event(that u used in ur sample) ??


Routed events are a WPF/Silverlight thing: "A routed event is an event that is potentially passed on (routed) from a child object to each of its successive parent objects in the object tree." The only real difference I saw with your code is you used a RoutedEvent delegate which takes a different eventargs parameter than a simple C# event, which is what I used.

See Events Overview for Silverlight[^]

I only meant I wouldn't use RoutedEvent because RoutedEvents get routed by the framework and that may cause confusion in your code if it's not really an event that gets routed.
Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Create event in UserControl Pin
jadughar2-Jul-11 0:11
jadughar2-Jul-11 0:11 
GeneralRe: Create event in UserControl Pin
Mark Salsbery2-Jul-11 6:19
Mark Salsbery2-Jul-11 6:19 
GeneralRe: Create event in UserControl Pin
jadughar3-Jul-11 22:15
jadughar3-Jul-11 22:15 
QuestionTwo-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 6:46
SledgeHammer0130-Jun-11 6:46 
AnswerRe: Two-way binding requires Path or XPath error Pin
Pete O'Hanlon30-Jun-11 6:56
mvePete O'Hanlon30-Jun-11 6:56 
GeneralRe: Two-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 7:08
SledgeHammer0130-Jun-11 7:08 
GeneralRe: Two-way binding requires Path or XPath error Pin
SledgeHammer0130-Jun-11 9:20
SledgeHammer0130-Jun-11 9:20 
QuestionRuntime Error 4008... Layout Cycle Detected... Layout Could Not Complete. Pin
NTheOne30-Jun-11 1:59
NTheOne30-Jun-11 1:59 
AnswerRe: Runtime Error 4008... Layout Cycle Detected... Layout Could Not Complete. Pin
Pete O'Hanlon30-Jun-11 2:34
mvePete O'Hanlon30-Jun-11 2:34 
QuestionIs this possible with HierarchicalDataTemplates? Pin
SledgeHammer0129-Jun-11 11:47
SledgeHammer0129-Jun-11 11:47 
QuestionShift path Pin
Lutosław27-Jun-11 22:37
Lutosław27-Jun-11 22:37 
AnswerRe: Shift path Pin
Mark Salsbery28-Jun-11 10:21
Mark Salsbery28-Jun-11 10:21 
GeneralRe: Shift path Pin
Lutosław28-Jun-11 10:48
Lutosław28-Jun-11 10:48 
GeneralRe: Shift path Pin
Mark Salsbery28-Jun-11 10:59
Mark Salsbery28-Jun-11 10:59 
QuestionHow to keep two Combo Boxes in sync with WPF [modified] Pin
Member 297299227-Jun-11 9:42
Member 297299227-Jun-11 9:42 
AnswerRe: How to keep two Combo Boxes in sync with WPF Pin
SledgeHammer0127-Jun-11 11:22
SledgeHammer0127-Jun-11 11:22 
AnswerRe: How to keep two Combo Boxes in sync with WPF Pin
Mycroft Holmes27-Jun-11 12:59
professionalMycroft Holmes27-Jun-11 12:59 

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.