How do you get a WPF ItemsControl item to fire a command upon pressing the spacebar?

Add a KeyDown event handler to the textblock. In it check if pressed key is space and if so execute the command. If I understand your code correctly, the data context of the textblock contains the command.

Yeah I went with a KeyUp handler on the Hyperlink element which works pretty well. – Keith .

The most simple way which I see is to build a simple custom control, which encapsulates the logic you would like to invoke. The functionality of the Enter button is the default command invocation for the hyperlink and it is not easy to change this. Simply build a custom control which inherits from TextBlock.It's style holds the textblock with the hyperlink.

Use TemplateBinding to the TextProperty for the DisplayName and TemplateBinding to a new Command Dependency property in your custom control. Also register a preview key down event in the public constructor of your custom control, in which you check for your intended invocation keys (space,enter, etc.), and invoke the command if the pressed key fits your desires. Jan.

The functionality of the Enter button is the default command invocation for the hyperlink and it is not easy to change this. Simply build a custom control which inherits from TextBlock. It's style holds the textblock with the hyperlink.

Use TemplateBinding to the TextProperty for the DisplayName and TemplateBinding to a new Command Dependency property in your custom control. Also register a preview key down event in the public constructor of your custom control, in which you check for your intended invocation keys (space,enter, etc.), and invoke the command if the pressed key fits your desires.

1 schelli-thank you so much your ords of wisdom has helped so much! Iv spoken to my bf and ere getting credit reports today to see where we stand. Hopefully in 5 years we will be better off and hopefully all this will help.

We both are the typical young americans. Liveing check to check and barely scrapeing by. And woundering how in the heck we will ever git the chash flow togeather to pay for school and finish our educations so we can have a better brighter life.

Thank you so much .

Your credit score is like your reputation - once you trash it, it takes a while to rebuild that trust. The first thing you need to do is sit down and create a budget, including your income and expenses, and start trimming everything you don’t need (such as cable TV, beer/alcohol, cigarettes, sodas, illicit drugs, cell phones, subscription services, etc - start using public transportation if it is available, rather than your car) hint, a *NEED* is something you need to survive - everything else is a want/luxury. Clip coupons, buy clothing from second hand stores - anything to save money.

That having been said, to start down the road to recovery, the first thing you need to do is get a credit report so you can find out exactly where your credit sits. You can get a free one from all three credit bureaus (sp) every year at freecreditreport.com. After you see what’s on your credit report, you need to start fixing it.

If there are recent (within the last year) negatives on your report, try to fix them by bringing them current and paying them off. You might try a credit counseling service to set up payments. Be careful here.

Look for a local credit counseling service that is a member of the Better Business Bureau (sp) and not one of the national chains that are just out to make a buck from your unfortunate choices Anything over a year old you have to make a decision on - is it OK to let it just drop off your credit report after 7 years from when it was first reported, or do you want to pay the debt off (hint, if you pay it off, the 7 years restarts from the point that you pay off that debt. Then, start a savings account. Get the account balance to 1000 and place it in a CD.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions