Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Windows 7 Forum 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

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

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-15-2007   #1 (permalink)
Lloyd Dupont
Guest


 

[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
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
beginner trying to use briefcase magpiefound Vista General 4 03-12-2008 12:46 PM
Cmdlets a beginner should know about Marco Shaw [MVP] PowerShell 11 01-22-2008 08:20 AM
WPF beginner question lallous Avalon 13 08-17-2007 03:19 AM
prospective beginner FireBrick Vista installation & setup 4 02-17-2007 09:48 PM
Beginner questions Etienne Boucher Avalon 6 01-10-2006 03:53 PM


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 51