uwp

Google APIs for UWP not playing nice with custom redirect scheme

≯℡__Kan透↙ 提交于 2019-12-06 09:28:25
I'm writing a UWP application that will work with the Google Drive APIs. My issue seems to be out of poor documentation from Google for UWP applications. In the documentation it states: Additionally, you can use the reverse DNS notion of the client ID as the custom URI scheme (e.g. com.googleusercontent.apps.123). ...And right below that, it states: For UWP apps, the scheme cannot be longer than 39 characters. The problem here is that the client IDs are already above 39 characters. There is no remedy for this issue, and there is no way to create a credential specifically for UWP apps within

How do you do Impersonation in UWP?

牧云@^-^@ 提交于 2019-12-06 09:18:35
I am working on UWP application. A scenario came where i want to change the current context user(current login user).For that i am trying to implement Impersonation in UWP. In general windows or web application I am able to change the current context user by using sample code available on following link: http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User But i am unable to implement this in UWP. I want to implement impersonation in UWP. Impersonation is not available for UWP applications. They are all tied to the current session user with only a restricted set

How do I allow a UWP ListView to scroll past the last item?

泄露秘密 提交于 2019-12-06 09:16:47
问题 I have a ListView with a bunch of irregularly sized items. As you scroll the ListView, the bottom of the last item will end up at the bottom of the control: you can't keep scrolling. If the last item is smaller than the control, I want the top of the last item to be able to scroll to the top of the control (if the item is larger than the control, I am fine with the default behavior; in this case, the top of the item will have scrolled past the top of the ListView control which satisfies my

Sending and receiving images via a socket

允我心安 提交于 2019-12-06 09:15:37
I have a C# desktop app. It connects to another PC on my network which is a UWP C# app. I am trying to send an image or 2 to my listening socket and to test this I get the listening socket to send me the image back. The trouble is that even though my server recieves all the bytes that were orginally sent the recieved image back to the client is not of the same size. To make this even more weird is sometimes the returned bytes are correct and I get the whole image and when I attempt to send 2 images the 1st one is OK and the 2nd one is not. Then it will/can revert back to no images being sent

Detect which APIs are present in UWP app

回眸只為那壹抹淺笑 提交于 2019-12-06 08:59:07
Understanding why it's not recommended to detect the device type to perform run-time functionality, best practices dictate detecting which APIs are present instead. This way, users running their tablet in desktop mode, for instance, will not experience undesired behavior. Also, since hardware is so dynamic, checking for user interactions like touch capability is not a good approach either. On our project, we have decided to identify the APIs we'll need for three different screen widths - small, medium, and large. Microsoft has listed these APIs here . But this list is rather long and checking

Show device usage consent dialog in Unity app for Hololens

自作多情 提交于 2019-12-06 08:49:17
问题 I'm working on application for Hololens built on Unity. My need is to get some information from phone(android or wp - doesn't really matter) using Bluetooth Service Port Profile . The chosen approach is to make a Hololens act as Bluetooth Host. So I'm using RfcommServiceProvider for this. The simplified sample: _rfcommProvider = await RfcommServiceProvider.CreateAsync(RfcommServiceId.SerialPort); _socketListener = new StreamSocketListener(); _socketListener.ConnectionReceived +=

Download and save a picture from a url Universal windows app

廉价感情. 提交于 2019-12-06 08:13:38
问题 I am using the below code to downlaod the picture form a remote url and save to Local storage folder try { var rootFolder = await ApplicationData.Current.LocalFolder.CreateFolderAsync( "MyAppName\\CoverPics", CreationCollisionOption.OpenIfExists); var coverpic_file = await rootFolder.CreateFileAsync(filename, CreationCollisionOption.FailIfExists); try { var httpWebRequest = HttpWebRequest.CreateHttp(coverUrl); HttpWebResponse response = (HttpWebResponse)await httpWebRequest.GetResponseAsync()

Drawing editable and selectable shapes with Win2D?

对着背影说爱祢 提交于 2019-12-06 08:13:29
问题 I've used System.Windows.Shapes before to add Shapes to Canvas -controls. They can be used like objects and the visuals change as I edit the fields. I can also add event handlers for clicks etc. I'd need this kind of functionality by using Win2D . Is there any easy way? I'm trying to create a simple app like this: User can draws shapes to canvas Shapes can be selected and highlighted by clicking Selected shapes's can be manipulated (color, opacity, width, height, position etc) Shapes can be

Change size & spacing of UWP RatingControl

扶醉桌前 提交于 2019-12-06 07:38:27
There's a new RatingControl in UWP that allows you to show ratings as a series of stars. I was wondering how I can change the size of the stars and also the spacing between them. FontSize does not work like it did on the Telerik version for UWP. I hope this is possible without restyling the whole control. For example, Microsoft explicitly states "Spacing customization" as a feature : The rating control has many additional features which can be used. Details for using these features can be found in our MSDN reference documentation. Here is a non-comprehensive list of additional functionality:

Button VisualState Focused not working

眉间皱痕 提交于 2019-12-06 07:34:56
I'm trying to change the font color of a button when the button is clicked. I have tried many different things but none have worked. This is the latest thing I tried and what I believe should be the answer but its not working. Can someone help? PointerOver isworking fine, but Focused is not doing anything when the button is clicked. <Style x:Key="ButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent" /> <Setter Property="Foreground" Value="Black" /> <Setter Property="FontWeight" Value="Normal" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate