we are popping up a childwindow in a timer.we would like to show the popup on top of all other applications if the user is working on any other apps.Is there any way to get any user notification that the popup is behind ? Any way to bring the silverlight app to the front ? we are using silverlight 4.0
Not possible.
I think your only hope is notifying them with a sound.
Related
I have a chat application written in VB.net which is used to chat between users who are connected in LAN inside a office . The application popups whenever user gets new chat message. It works fine in windows XP. But sometimes in windows 8 the application fails to popup the chat window. So my chat window is not appearing at the top when popup occurs for new messages.
I have tried using setwindowspos, form.Show(), form.BringToFront() which can bring the form to topmost. But sometimes this will not work properly.
So is there any other method other than those three(which i have mentioned above) i have used which can make the form popup and bring it to front.
Your WinForms app is a desktop application, so it's likely that the reason the pop-up is not being displayed in Windows 8 is because the desktop is not visible.
Remember that Windows 8 brings with it a whole new Start Screen interface and relegates the desktop to an alternate mode. All desktop applications still run, but they run in this separate mode and cannot interact with the new Metro applications (or whatever they're calling them nowadays). Yes, it's too bad that the usability folks at Microsoft didn't listen to Larry Tesler and have decided instead to mode us in, but c'est la vie.
So anyway, the pop-up is still being displayed, but it's being displayed on the desktop, which is not visible. Bringing it to the top isn't doing any good because it's already at the top of all the other windows on the desktop. If you click on the "Desktop" tile in the Start Screen, you should see your window.
Fixing this problem is going to take some work. Forcing a focus switch to the desktop mode is a horrible idea from a usability perspective, and I'm not sure it's even possible. A better solution would be to look into using Toast notifications instead, which can be done from a desktop application.
I am implementing a simple webview application with only one url. I have over ridden back button function for webview navigation (which is working fine). Now my app has only one screen with webview and user visits the links inside main url and navigates using back button.
I want to know that, What is Microsoft Certification Policy as my application has only one screen so should it Close when user press back button anytime? Or Microsoft allows implementing of webview with over ridden back button functionality.
If question is still unclear Kindly tell me. I'll explain more but I need to know answer to this question.
Thanks.
You shoulld be fine, I have submitted applications which works like that myself which passed certification.
As long as the application quits when pressing the back button when there is no more "history" for the webbrowser control it shouldn't be a problem because the user still get the experience of moving "backward" in his use and can finally quit the app.
Regarding WebBrowser control and content of the app please consider this requirement:
"Your app and metadata must have distinct, substantial and legitimate content and purpose. Your app must provide functionality other than launching a webpage."
So, the application's sole functionality must not be only to launch a website.
This is not releated to back button but very important thing that need to be considered!
Best regard
I have silverlight control hosted on web page. When I explore this control and go to some other web page, when I come back to same page using back button I want to maintain the same state of the control as before I went to another page.
How this be done?
Thanks in advance.
Regards,
-Shwetank
You can use IsolatedStorage to create persistent data for your control in client's computer.
If there a way to display a normal Notification/Toast/Popup in Windows Phone 7, which is not a Push Notification?
All I want to do is to be able to give the user a message when something occurs...
I assume you wish to display something while your application is not running in the foregorund. Because, when your application runs in the foreground, you can do whatever you want.
Your application can't run in the background, therefore you don't really have any means of invoking anything. This means you can't really display a message when somethien occurs.
What exectly occurs on the phone that you need to notify the user? Is that really not back-end related?
There are two great sample chapters on Windows Phone and Silverlight for Windows Phone on the LearningWindosPhone.com site. There is great Windows Phone Trainng material , and dont forget the Windows Phone Develoeprs Blog
You can use MessageBox.Show(), though this creates a modal dialog box.
If you want to display the notification while your app is not running (but when you're doing some background work) then I believe this is what you want:
ShellToast toast = new ShellToast();
toast.Title = "My app";
toast.Content = "Hello from my app's background task!";
toast.Show();
For some reason, this doesn't display anything if your app is already running. If you want to display a message then, you can use MessageBox.Show() (if you're OK forcing the user to click OK), or you can use the Coding4Fun Tools that Haider links to.
It would be fairly straight forward to reproduce the visual effect of a toast from within your app. You could use a fixed height, full width canvas with a TextBlock control and animate it's appearance using a storyboard.
How to bind toast notification with schedule in windows phone
Is there a way to make a "makeKeyAndOrderToFront" without beeing in the Application?
If I am in Safari and in the Menu Bar there is a MenuItem to my App, after I press this, i want to show a window of my App in the Front (makeKeyAndOrderToFront makes this just if you are in the Application).
Which way can I use? And how can I animate this Window (like Tweeties Add new Tweet -> atebits.com).
Thank you!
As you've discovered, changing the window order within your application does not have any impact on which application is active. You can bring your application to the foreground by activating it:
[NSApp activateIgnoringOtherApps:YES];
If your application had a dock icon the behavior would be similar to the user clicking on it.
Applescript would be a trivially easy way to make your app frontmost. It won't be doing any animation, though.
tell application "System Events" to set frontmost of process "My Application" to true
Perhaps the best way to accomplish what you want, if I understand the question correctly, is to have your application respond to an Apple event which you send to it after your menu item is selected which will bring your application and desired window to the front.
Provided your application has a connection to the window server (which it will if it's using AppKit or Carbon), you can use the Core Services function SetFrontProcess() to bring it to the fore. SetFrontProcessWithOptions() can be used to bring only the frontmost non-floating window of your app to the fore. These functions appear to be available to 64-bit applications, but if you're targeting 10.6+, you're likely better off using the NSRunningApplication class. Something like
[[[NSRunningApplication
runningApplicationsWithBundleIdentifier:ident] lastObject]
activateWithOptions:0]
should do the trick.