![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | WPF custom user control I am in the process of developing a custom user control derived from Control. It has textbox and a button. I managed to catch the button click. To dothis I have implemented dependecy properties and routed commands. Eg: in my generic.xaml <RepeatButton Command="{x:Static local:myInputBox.KeyPressCommand}">Up</RepeatButton> This is work fine. But I cant catch the textbox LostKeyboardFocus evnt. When I try to implement this like the way I did for the button, then getting an error as bellow. "not a valid event handler method name. Only instance methods on the generated or code-behind class are valid." Please help me to over come this problem. Apreciate your early response. Thanks. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exposing contained control properties from within a custom control | Martin Robins | Avalon | 1 | 04-10-2008 09:53 AM |
| Exposing contained control properties from within a custom control | Martin Robins | Avalon | 0 | 04-10-2008 09:52 AM |
| Help with Custom Control | John Lorenzen | Avalon | 0 | 11-27-2006 04:45 PM |
| Custom Control | John Lorenzen | Avalon | 8 | 11-08-2006 08:47 AM |
| How do I use Custom Control Properties in Control Templates? | Joerg Engel | Avalon | 1 | 03-24-2006 10:45 AM |