Is it possible to send a Windows Store Notification using Windows Forms? If so, is there any available documentation for this I could read through?
If you are asking about sending a Toast notification (the rectangular popup in the corner of the screen) then this can be done from a desktop app like your WinForms app. See Quickstart: Sending a toast notification from the desktop and the Sending toast notifications from desktop apps sample
From your question, I understand that you require Message to be thrown in the style of Windows Store Apps. However this is not possible AFAIK - You can design a usercontrol to show Windows Store kinda notification from inside Win Forms application.
Related
Using the Win32 API it is possible to subscribe to clipboard events (Clipboard event C#).
Is it possible to do this from within an Active X Control or SilverLight within a web page?
My scenario is that I would like to know when something new has arrived in the clipboard but I am in a web page within Internet Explorer (min version 8).
In Silverlight 5 you can enable trusted applications in browser:
http://msdn.microsoft.com/en-us/library/gg192793(v=vs.95).aspx
In trusted applications you can use p/invoke to call WinAPI.
The answer is no you cannot #Vlad I was looking to be notifed when something new has arrived - it doesn't seem possible
I'm trying to create a new UI for an app I developed for the Windows Store using the Windows Runtime API. This new client is going to be a WPF Desktop App. I'm trying to reuse as much code as I can but I'm facing several issues.
Fortunately there's a way to use WinRT in a WPF Desktop app (see this and this)
Now I'm blocked by the following issue:
The MediaCapture class has a method to start the preview of a device, after I've started the preview I can create a CaptureElement to display the preview.
CaptureElement is part of Windows.UI.Xaml.Controls and cannot be used in containers from System.Windows.Controls in which the WPF UI is built.
Am I going anywhere with this approach? what would you recommend? How can I display the preview of a device in the WPF app?
Thanks in advance
CaptureElement can't be used in desktop applications - the documentation says "[Windows Store apps only]". In general - the UI controls from WPF and WinRT/XAML can't be used outside of their respective domains (desktop/immersive UI). In a WPF app you need to use WPF controls - e.g. DirectShow for camera capture,
I'm rather noob for WP7 developing, and I've got some questions for my new app:
Is it possible to send some information from time to time to my server while the app is hidden (running at background) ? If it is possible, won't it be rejected by Microsoft (my app will say to user about this, of course) ? I want to watch user's location and send it to server, to be honest:)
Is it possible to draw overlays for MapViews? I know, that for iOS apps it is possible
Is it a bad practice for Silverlight apps to put my own images under all buttons and controls on page, and to redefine controls' style? I don't want to support native themes
Thanks!
1.Yes. Background Agent can run every 30 minutes and send location to a server
2.Yes. Microsoft.Maps.MapControl has all you need. For example draw lines with MapPolyline class:
MapPolyline polyline = new MapPolyline();
polyline.Locations = new LocationCollection();
map.Children.Add(polyline);
3.You can do anything. Buttons can be Metro style with images also. But try to keep applications look in consistency with a system
I'd like to use the Notification API to create toast notifications for a Silverlight app designed to run both in and out of the browser, but the NotificationWindow class is only available OOB.
Does there exist anything that can replicate the behaviour inside the app? My idea is to have a container in the bottom right of the screen overlaying all other content. Then, create a wrapper which detects OOB-mode, passing params to the Notification API if possible, or populating and showing my own container if not. Is there anything that does this available?
It seems strange that MS chose not to implement something like this, as has been pointed out before.
Displaying a notification in browser is simple. You just need to use a popup and make it appear in the right place. See the following post as an example.
Now the difference with that approach is that the notification will show inside the browser. In OOB it shows outside the window and it's visible even if the windows is minimized. Due to security reasons it's not possible to directly do this.
Out of interest, Chrome Applications like Tweetdeck and Gmail, are able to display notifications outside of the browser. I think this might be a possiblity, but not exactly a Silverlight and cross browser solution.
I haven't been able to find an explanation, or think of a reason why it's not available in non-OOB apps. So why is the toast notification only available in OOB apps?
Silverlight 4 Out-Of-Browser apps can operate in full trust. This is necessary to open a window separate from the primary window. Toast notifications are separate windows.