uwp

Windows Mobile 10 Background Task DNS Fails

早过忘川 提交于 2019-12-11 05:59:52
问题 I am running into a problem with my background task on Windows Mobile 10 (build 10.0.14393.82). In my background task, HTTP client is sometimes throwing an Exception with the error (note it seems to happen when the phone is locked): The server name or address could not be resolved The phone shouldn't have an issue resolving the address, since it resolves it fine when running in the foreground. Has anyone else seen this issue, or have any ideas? 回答1: check the IsNetworkRequested property when

How to rotate image placed on a Mapcontrol

坚强是说给别人听的谎言 提交于 2019-12-11 05:56:56
问题 The issue I've got an application that tracks vehicles on a map. However I cannot get the little buggers to rotate in the direction of their motion. Basically, all of them are going sideways! Ugh! The code Image vehicleImage = new Image { //Set image size and source }; RenderTransform rotation= new RotateTransform{Angle = X}; vehicleImage.RenderTransfrom = rotation; _mainMap.Children.Add(vehicleImage); MapControl.SetLocation(vehicleImage, _position); The Image, placed on the map, seems to

UWP - bind element to main window size AND also update the value as window size changes

前提是你 提交于 2019-12-11 05:56:54
问题 I want to bind to a text block the current size of the window. In the current implementation the size of the main window is set at run time BUT if I resize the window after the application has launched the new size is not updated in the text block. <Grid x:Name="grid" Background="#FFE8E8E8"> <TextBox x:Name="textBoxSample" Width="300" Height="200" Text="{Binding ActualWidth, ElementName=grid}"></TextBox> </Grid> 回答1: In UWP, the Grid controls normally automatically resize to fit its parent

Using DeviceID from Windows.Devices.Enumeration to find the Drive Letter of a Removable Drive (USB) in C# Windows 10 IoT Core?

折月煮酒 提交于 2019-12-11 05:52:33
问题 I am trying to scan a USB drive that is inserted into a Raspberry Pi running Windows 10 IoT Core for a specific file in a specific folder. I am currently able to detect when a USB drive is added or removed from the device using Windows.Devices.Enumeration.DeviceWatcher and can find the DeviceId using that as well. I did this using the DeviceEnumerationAndPairing demo project. I am aware that StorageDevice.FromId() would work for this usually but it seems to not agree with Windows 10 IoT Core.

Is it possible to change SplashScreen background at runtime - or to change color visible when user resize app window?

做~自己de王妃 提交于 2019-12-11 05:49:57
问题 On Package.Appmanifest we can define SplashScreen background color that is used for: 1) SplashScreen background - pretty obvious 2) to fit the space between new window border and not (yet) resized content when user is resizing the app window If you don't know what I am writing about under 2) - just run Xbox app (or any other written with UWP), grab window border and then quickly move the window border back and forward. The problem is that I would like to have two separate colors for that.

UWP and HoloLens Unet [Command]

僤鯓⒐⒋嵵緔 提交于 2019-12-11 05:47:30
问题 I have two different Unity projects, one is a HoloLens application and the other is the desktop application. My goal is to manipulate an object in the HoloLens application through the desktop application. At the moment I have Unet working when the HoloLens is the host and the desktop acting as the client. Manipulating through the HoloLens and transferring that to the desktop application works, but it doesn't vice versa. I am unable to connect to the desktop application when it serves as the

Cannot connect UWP app. to SQL Server 2017 instance:

北慕城南 提交于 2019-12-11 05:45:43
问题 UWP app. returns A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 25 - Connection string is not valid)" Trying to connect to a SQL Server 2017 instance. This is all on a local dev. machine, Windows 10 (no remote). Have followed advice in SO to no avail:

Visual Studio 2015 Update 2: Registration of the app failed. (0x80073cf6)

ⅰ亾dé卋堺 提交于 2019-12-11 05:40:07
问题 I'm experiencing the Registration of the app failed. (0x80073cf6) error. What I've tried so far: Delete the package in AppData (I can't find it anymore there, the package family name has been changed to my associated store listing). Repair Visual Studio Acquire developer license Make a new project (that works, for the 1st time, after that same error). It happens on my phone (950XL, developer unlocked) and on my machine. I can't debug my app in anyway now. I'm on Update 2 of VS 2015 回答1: In

Microsoft advertising ad units - Device family

独自空忆成欢 提交于 2019-12-11 05:39:56
问题 I'm developing a uwp app, and I finished it and was preparing to submit my app in the store, through the dev center. My application has AdControl advertising, which is presented in the desktop version (Windows 10) and the mobile version (Windows 10 Mobile) through VisualStateManager In the Desktop version I have: <Setter Target="Ad.Height" Value="90"/> <Setter Target="Ad.Width" Value="728"/> In the Mobile version I have: <Setter Target="Ad.Height" Value="50"/> <Setter Target="Ad.Width" Value=

Unable to refresh a CalendarView with UpdateLayout() [UWP]

a 夏天 提交于 2019-12-11 05:36:19
问题 In my UWP app, I'm trying to refresh the density bars on a calendarview if the user clicks a button, the problem is that, although calendarView.UpdateLayout(); should re-run the CalendarViewDayItemChanging event, it runs only when the CalendarView is loaded the first time. Am I doing something wrong? public MainPage() { this.InitializeComponent(); densityColors.Add(Colors.Green); } private void CalendarView_CalendarViewDayItemChanging(CalendarView sender, CalendarViewDayItemChangingEventArgs