Floating helper dialogue - c#

So far I've been unable to find an answer to my question. I might be blind, or just Googling the completely wrong words, I don't know, but here's the question.
In many apps (Both on iPhone and Android) they have these floating tips that assists the user in using the app. For instance "Touch here to open notifications", and "Touch here to access settings", etc.
Now I'm looking for a solution that would hopefully work for both iPhone, Android and Windows Phone, but an answer to any one platform would be appreciated nonetheless, as I'll presumably be able to translate it into the respective Xamarin code.
Mockup (Taken from some other thread here on SO, that was never answered)

if you want a tip floating on your view you may use PopUpWindow in android. It pretty easy to implement as well

Related

is it possible to organize the display of all the notifications on the smartphone using a button without leaving the application?

first of all I want to apologize for the lack of code, since I have never come across this at all, and I almost did not find material on this topic ... I use C # + Unity 2020, and I had the task of reproducing all notifications that are on the phone by clicking on a button in the application - it should look something like this: you press the button, and you are shown all the notifications that are on the smartphone (while you are still in the application), you can look at them and then do something else .. ...
Please, who knows, I will be very grateful: is this even possible? and how best to organize it? If it's not difficult, you would help me a lot ...
Because you are looking at an OS-specific feature you would have to write your own native plugin(s) to get the notification data.
See: Building and using plug-ins for Android / Building plug-ins for iOS
At least on Android the feature to get the Notification information does exist, I'm not sure about iOS:
NotificationListenerService.getActiveNotifications()

Trying to Understand Windows Forms and Threading in C#

Recently I’ve been working on a windows wallpaper manager. It will scan multiple directories for images and have a settings window to customize. In addition, I want to bypass the built-in wallpaper and instead use a windows form based off the ideas discussed here: Setting a Windows form to be bottommost to allow for greater control over image placement. I have built the file operations to find the wallpapers, and various other support operations.
However, I am stumped on how to implement a windows form properly. Not just the one in the Stack Overflow post above. So far none of my CompSci classes (7 so far) have discussed GUIs, and thus I have no knowledge to work from. I turned to the internet to learn how to work with GUIs. While I learned plenty to start a thread, or show a form, I was never able to find anything that described the proper way to engineer an application with a GUI. All I have learned in respect to engineering the application is to limit the number of threads, and try to separate the GUI from the non-GUI related code (if that makes sense).
Like I have said, I have no clue what I am doing. If someone would be willing to give me pointers or even a link to something on this subject, that would be amazing!
EDIT: I have been using this as a learning exercise, and I have mostly been learning from trial and error, probably mostly error
To draw on the true desktop, you need to get a handle to it: GetDesktopWindow is the function to use. But to change the wallpaper you do not draw on the desktop, but instead you use the dedicated API for handling the desktop wallpaper: SystemParametersInfo(SPI_SETDESKWALLPAPER, ...). There is also the legacy COM Shell interface, IActiveDesktop and IActiveDesktop::SetWallpaper.
As you can see, none of the APIs to manipulate the desktop and the wallpaper are managed (C#, .Net) so you will have to jump through some hoops to get this working from C#. If your goal is to learn C# style UI, I would recommend to stick to the 'blessed' way of doing this (winforms, WPF etc) and do not try to jump straight to p-Invoke and COM interop. Perhaps you can pick another project, eg. display the images/pictures in a carousel in a form.
If you're curious still, Google for C# and SystemParametersInfo or IActiveDesktop and you'll find examples of how to do this from managed C#, many examples right here on StackOverflow.
Bonus: of course Raymond Chen has a blog on this topic: How do I put a different wallpaper on each monitor?.

Exclusive App on Android with monodroid

I'm new in Android programation and Monodroid.
I would like to know if is possible and how to make one application that exlusively run in full screen and enable to use the device only across itself.
Best regards
Piercarlo
for the full screen mode see this
For the device only, i really have no clue what you mean.
Edit: you should really try to search a bit before posting question, it was really easy to find.

.net 3.5 windows form application, using webcam

Having searched high and low for native c# hook to webcam, I found 5 basic ways to interact with the camera.
Video for Windows (VFW)
DirectX
avicap32.dll
WIA
3rd party tools
My requirement is to take a photo. The application will be used on some legacy windows XP and Vista machines, but going forward Windows 7 and greater will be required. So what might the best approach be with the broad install base? Just reading WIA looked like the way to go but looks like some changes were made so it works a little different now (I don't know for sure). I understand that some people have done combos.
Might need to crop photo, but that is really about it.
For school visitor monitoring.
I think the best thing is to use the WIA. I know a third party toolkit that could help you doing your requirements which is leadtools. You can check this Tutorial
I would always try to pick up something already on the web and tweak it to my own needs... some open source project or an example where the mainly portion of my app is already made.
on Codeplex you can find a nice library to work with webcams and it's simply called
WebCam Library for WinForm and WPF with C# and VB.NET
Give that a try, maybe you can even help the project, by contributing your own findings, and everyone is a winner... isn't Open Source a great idea?!

Flash ActiveX API documentation?

I am trying to put a Flash ActiveX control into a Windows Form but I am running into a problem: a lack of documentation. The best I have found is a site called "F-IN-BOX" that has some documentation but much of the API is still a black box. For example, some property will take an integer or a string and provide no clue about what it wants. Another exanple is the FlashVersion() function that inexplicably returns 655361 on version 10.
Incidentally I'm having the same problem with Apple's Quicktime OCX. I've searched both sites and Google and I'm starting to wonder if either of these companies provide documentation for any of their products. Does anybody know where I can find documentation for either of them, even if it's the unofficial variety?
Well once i worked with flash on a windows form, I took this example to get started, and the second link its a flash game being loaded to a winform
http://www.codeproject.com/KB/audio-video/flashexternalapi.aspx
http://www.csharphelp.com/archives/files/archive81/cSharpFlash.zip
Hope this helps anyone, about documentation i didn't find any when working on that project i reached Adobe but i never got an answer from them :/
Alex
Adobe help take a look at this sample. It's very simple and nice to use.
You should stick with ExternalInterfaceProxy all time because it simplifies communication 100x times.

Categories

Resources