Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

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.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

WPF custom user control

Closed Thread
 
Thread Tools Display Modes
Old 03-04-2007   #1 (permalink)
Krish_xx
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.





Closed Thread

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








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50