OUR NETWORK:MediaSmart Home Sansa Community Explore3DTV TechLore RoboCommunity Dijit Community About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 109718.0
January 6, 2010 03:39 PM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Rada

Member
Joined: 12/29/2009

Hi,

I have a task given and I am new to WPF application. I tried out the HelloTouchSmart app and its working great. Let me tell about my task in few lines.

1. The application should have 2 images.

2. On clicking the first image, it should take me to a website and I should be able to navigate through the website. Kind of a browser must be opened and the url address bar should not be displayed. I should have a back and forward button, home button which takes me to the home page of the app with 2 images.

(for this I guess I should create my own browser, which is an application by itself. How do I call one application from another application?)

3. On clicking on the second image, it should open a pdf file with vertical and horizontal scroll bar and shuld have a home button which takes me to the home page of the app with 2 images.

It seems to be simple. Since I am new to WPF application, I would need some help to proceed on it.

Can someone help me out.

Any help is appreciated.
~Rada

Discussion:    Add a Comment | Comments 1-8 of 8 | Latest Comment

January 6, 2010 4:10 PM updated: January 6, 2010 4:18 PM

I would suggest you to go to MS MSDN for more help. As you are new to WPF (so I am !!!:) ) I would suggest you to move forward in baby steps.
First create UI in XAML, Use WebBrowser control to launch web-content, wire-up with the touch event of first Image.
Similarly for second image touch event you can do it in two ways, one is WebBrowser control itslef and another is WindowsFormHost control ( http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application )

* While desigining your application do not forget TS SDK guidelines in your mind (e.g. no popups etc.) because you have to port your application in TS shell later.

If you need more info about WPF learning material send me PM with your email. I can send you some tutorials on WPF.

January 6, 2010 4:23 PM

Thank you Shuk.

January 28, 2010 12:38 PM

I have some 3 to 4 pages in my application. If the application is idle for about 3 mins on the page3, I need to return to page1(home page) of my application.

How do I compare the idle time of application with the 3 mins and return to homepage? I tried Win32.GetIdleTime(), Application.idle but it dint work. Is there any sample code available for WPF app?

Any help is greatly appreciated.

January 28, 2010 1:16 PM

Rada said: I have some 3 to 4 pages in my application. If the application is idle for about 3 mins on the page3, I need to return to page1(home page) of my application. How do I compare the idle time of application with the 3 mins and return to homepage? I tried Win32.GetIdleTime(), Application.idle but it dint work. Is there any sample code available for WPF app? Any help is greatly appreciated.
Did you check SDK?? SDK includes WPF samples. HelloWorld and HelloMole both are WPF samples.
 

January 28, 2010 1:26 PM

Are you talking about SDK development Doc? I need a sample for getting the idle time of application. I do not see any example related to my concern.

January 28, 2010 1:27 PM

Try using CommandManager.RequerySuggested handler. This handler is called once in the beginning of idle time, after every user action. Exactly like Application.Idle in the Windows forms.
[This handler can be also called indirectly from the code using CommandManager.InvalidateRequerySuggested method.]

MSDN Details

January 28, 2010 1:30 PM updated: January 28, 2010 1:33 PM

Thank you.

January 28, 2010 1:31 PM

Rada said: Are you talking about SDK development Doc? I need a sample for getting the idle time of application. I do not see any example related to my concern.

SDK doc talks more about TouchSmart integration. Full WPF or .Net development is beyond the scope of TouchSmart SDK. Please see my post above and see the MSDN too; MSDN carries almost everything we need to implement on WPF (or any .Net Technology) framework.

Discussion:    Add a Comment | Back to Top | Comments 1-8 of 8 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window