Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - [beginner] ApplicationCommands.Copy, I don't get it!

 
 
Old 05-15-2007   #1 (permalink)
Lloyd Dupont


 
 

[beginner] ApplicationCommands.Copy, I don't get it!

I try to discover and play with WPF.
I "designed" a very simple GUI with Orcas C# express, with 1 button and 1
text box.
then, in the windows constructor, after InitializeComponent() I added:

butPaste.Command = ApplicationCommands.Paste;


now I don't get it, the button is always gray.
I have a book which tell me to bind delegate to the Execute(), CanExecute()
method but.. how do I know that the focused text change has changed or such
things?

I though that one benefit of action was automatic tracking of the focused
component and its parent to automatically enable / disbale actions....

if it doesn't how do I track it?



My System SpecsSystem Spec
Old 05-15-2007   #2 (permalink)
Lloyd Dupont


 
 

Re: [beginner] ApplicationCommands.Copy, I don't get it!

I guess I can try something with the bubbling
GotFocusEvent

at the top level form.....

any idea?

"Lloyd Dupont" <net.galador@ld> wrote in message
news:OjoFw0ulHHA.208@TK2MSFTNGP05.phx.gbl...
>I try to discover and play with WPF.
> I "designed" a very simple GUI with Orcas C# express, with 1 button and 1
> text box.
> then, in the windows constructor, after InitializeComponent() I added:
>
> butPaste.Command = ApplicationCommands.Paste;
>
>
> now I don't get it, the button is always gray.
> I have a book which tell me to bind delegate to the Execute(),
> CanExecute() method but.. how do I know that the focused text change has
> changed or such things?
>
> I though that one benefit of action was automatic tracking of the focused
> component and its parent to automatically enable / disbale actions....
>
> if it doesn't how do I track it?
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Beginner Vista mail
Cmdlets a beginner should know about PowerShell
Help networking for beginner... Vista General
prospective beginner Vista installation & setup


Vista Forums 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 Ltd

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