UWP: No MouseDown event on Ellipse? (Windows 10 IoT | C#) - c#

Currently I am working on an application in C# for my Raspberry Pi 3 with Windows 10 IoT. I selected "Blank App (Universal Windows)" when I created the program (I was following a tutorial of the Microsoft Dev Center). Since then I ran into some problems.
First the timer directive wasn't available. (using System.Timers)
I tried to import a new System.dll but VS won't let me do that, because there is already one implemented. So i thought maybe this is just a thing for this kind of application I choose at the beginning. Does anybody know why I can't find the timer class?
But know to my main problem:
I would like to click on the ellipses on my user interface. While googling I noticed there is no click event for the ellipses, but there must be a MouseUp or MouseDown, but it looks like my program doesn't know these events...
If anybody knows an answer for my problem, thanks in advance.
(I would like to bypass the solution with creating a button and then shape it like an ellipse because I would have to do that for 72 ellipses in my application and I am to lazy to do that ;-) . But if there is no other way i will have to do it that way)
And if anybody needs more information, please feel free to ask.
Thanks,
Heenne

Related

Hand cursor not showing up in windows 10 using kinect 2

i am using xbox one to developo my app in windows 10 using kinect sdk 2.0 .The problem is Hand cursor not showing up.
After a couple hour of research on internet, found nothing :(
but finally I solved the solution posted on many forum. Guys here is the solution.
"Controls Basics-WPF" code run without showing any problem on windows 8, we can move around the hand cursor and so on.. but the problem was in windows 10. no hand cursor no fun at all... just extra work to solved out the problem. i was about to install windows 8 as i am working at Kinect Fitting Room APP in WPF.
but thank God finally I solved out the problem and thought to help out you guys.
A little Magic trick. Its already in the app but we never tried it :D
In Debug or Release mode select either x86 or any cpu, no problem at all.
Just go to "Engagement and Cursor Setting" in the app. leave just first option of Engagement style which is set by default. the first option for Engagement style is not working at all in windows 10 (system hand open/ still).
select option Manual (hand over head) or (hand on screen) and there we can get our hand cursor working exactly as in windows 8.
and the magic works :D
Glad to help who are still stuck.

C# UWP MedieElement MediaTransportControlsHelper.DropoutOrder

Trying to figure out how MediaTransportControlsHelper.DropoutOrder works when attaching a custom MediaTransportControl to a MediaElement in C# UWP and having a little trouble.
I assumed that if say, I had 4 buttons in my custom MediaTransportControl and I resized the app so that only 3 fit, the last (MediaTransportControlsHelper.DropoutOrder="4") button would 'drop out' to some overflow menu (CommandBar.SecondaryCommands?) - but I'm not seeing this is the case.
Anyone have any idea how to achieve this? Or any samples on hand to guide me?
Thanks.

Windows Form Application Touch Gesture

We are developing a C#, .NET 4.5 application. On Windows 8.1, whenever a user does touch scrolling on one of the panels in the form, the entire screen application moves just a bit, even if maximized.
Found questions asked where people having similar issues fixed it in WPF by turning off the boundary feedback event, and people who fixed it in Windows 7 by just turning off boundary feedback for all of Windows. However, I can't find anything for disabling this in a standard C# windows form application, and the boundary feedback setting option doesn't seem to exist in the Windows 8 settings.
Any suggestions?
Thanks
I haven't tried this, but I believe you can override the WM_GESTURE message (specifically GID_PAN) and not send it on.
The default code is likely very similar to the example code in UpdatePanningFeedback .

How to make a start tile reference the desktop AND modern mode of an app?

I've made an app for the Windows desktop and also created it for the modern (metro) interface in Windows 8.1. I wanted to group them under the same start tile and have a setting that allowed the user to open the app in the chosen mode by clicking the start tile. I got this idea from Chrome, which has both modes referenced by the same tile in the start menu or the link on the taskbar. I thought that maybe when the setting was changed I would delete the current one and replace it with one that referenced the other mode, but positioning is a problem, as a new tile always appears at the far right of the start screen. How would I resize the tile correctly and how would I delete and replace a link on the taskbar? I am using VB right now, but I can write C# and C++ so feel free to post code or links to code that are written in these languages.
If you have any suggestions, please post a reply or a ask a question in the comments.
I also should note that I prefer to use native libraries only and do not like using third-party dlls.
Thanks in advance for the help.
P.S. I've already tried Google.
I've figured it out!
The best way to do this is to create two registry keys referencing the two interfaces but make both the desktop and modern version not have a start tile! Then create a third app that has a tile and make it open the files, check for the active interface, and send the data to that interface with the file as a param.
Thanks for everyone's help, though :)

Windows 7 SystemEvents catch Logon/Logoff service application

first of all I want to tell you that I've searched a lot, and this is not Duplicate question.
My problem is that I want to capture windows events (SystemEvents) when triggered but from windows service application. I've followed this example http://msdn.microsoft.com/en-us/library/microsoft.win32.systemevents.aspx. It says that services need to have message loop (MessagePump in the above example) to process all of these events (Login, logout, power events etc.). The problem is that this example is working great under Windows XP, but for Windows 7 none of these events is caught.
Does anyone have solution to this problem ? I read somewhere that I need to use SENS (System event notification services). Can you point me into the right direction? Thanks.
I've found the solution myself. SENS is unusable under Windows 7. WTS Api is the key. If someone is interested i can post the solution. Thanks anyway :).

Categories