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.
Related
I'm using xamarin to build an app android and ios and have noticed that some buttons, webviews and some other elements has a kind of shadow while page is being created and then this "shadow" disappears and everything is fine. It seems to occur with transparent elements and I could fix it by giving negative padding or margin, but it's really annoying and not elegant solution. Does anyone here knows what is happening? I almost forget, this tests are being performed on android, I don't know yet if iOs has same issue.
You guys can see below, the "shadow" is at right of the button(it has transparent background):
After Android 5.0, the default button control on the system will have a shadow,if you don't need the shadow .you could define in your activity theme like below :
<item name="buttonStyle">#style/Widget.AppCompat.Button.Borderless</item>
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
All the info i found about page fliping is just source code that i'm having trouble implementing to my code.
this tutorial
kinda explains the logic behind page fliping but the code is for windows form and not WPF.
i dunno how to approach it because as i understood bitmaps are not used the same in WPF.
anyone has a good tutorial or could give me some pointers?
What im trying to do is i have an image that fills entire screen and i want to flip it to to next image ( like a book) that will also take the entire screen.
(Not 2 images on a screen)
Help?
To anybody that suggests using C++ or DirectX, I'm not interesting in learning those skills. Only C# code please.
The WPF bag o'tricks has a page flip sample with code.
The github source
https://github.com/thinkpixellab/bot
Specifically, look at the TransitionPresenter sample in the demo project where there are multiple transitions defined, one being page flipping.
I browsed the web for a simplified keyboard for a project running on windows mobile, but I could not find anything good, so I tried to create one myself.
The basic problem encountered, related to which control use to realize the "keys", was: I need a control that:
- is clickable
- can contain text
- DOES NOT TAKE THE FOCUS
I made some attempt, and I found that the LinkLabel seems to be exactly what I need: it works.
Now, the question is: is that a good idea to use the LinkLabel to realize a touch screen keyboard, or this is the wrong approach?
I would like to avoid developing all the application with this keyboard, and then find some trouble when it will be "too late".
Honestly the "right" approach is to create an actual SIP (there's a sample in the WinMo SDK). Anything else and you have to deal with the focus issues you're already seeing.
I am looking to create a UI experience almost identical to swiping through images in the Camera Roll on the iPhone. I have 5 images that I simply want to be able to swipe through. This view will be the first view of a Tab Bar Controller that I have in place. This is my first iPhone (iOS) app attempt so if anyone feels this question needs to be broken down into smaller chunks, please let me know.
Here's an example of the paging control for MonoTouch I developed some time ago: https://github.com/escoz/monotouch-controls
Take a look at the PagedViewController. That code is actually used in my app, Quicklytics.
Use Pagecontroller.
In this example they have add label, instead of that you add your imageView.
EDIT:
For Monotouch.
The Photos module of Nimbus is exactly what you are looking for.
http://docs.nimbuskit.info/NimbusPhotos.html
The MonoTouch bindings can be found here.
https://github.com/theonlylawislove/MonoTouch.Nimbus