windows-10-universal

UWP DataTransferManager ShowShareUI() Opens Sharing Dialog with “This app can't share right now” and Closes it Immediately After

喜欢而已 提交于 2019-12-11 16:03:12
问题 I am trying to share a file from my UWP app sandbox running on Windows 10 desktop. Following MS documentation on this page, the implementation seem to be fairly straight forward; however, I am having issues https://docs.microsoft.com/en-us/windows/uwp/app-to-app/share-data I created DataTransferManager and attached DataRequested event in c-tor of my class as per explanation in the article: DataTransferManager dataTransferManager; public MainPage() { this.InitializeComponent(); ...

Call a function from UserControl - UWP C#

ⅰ亾dé卋堺 提交于 2019-12-11 15:55:19
问题 I'm using below code for rotate an image in my app (using UserControl). But it shows an error ConvertToBitmapImage was not found in type ImageControl . How can I resolve it? The ImageControl XAML: <UserControl x:Class="App1.ImageControl" ...> <Image RenderTransformOrigin="0.5,0.5" Source="{x:Bind ConvertToBitmapImage(UriPath), Mode=OneWay}" Stretch="UniformToFill"> <Image.RenderTransform> <CompositeTransform Rotation="{x:Bind Angle, Mode=OneWay}" /> </Image.RenderTransform> </Image> <

How to launch javascript universal windows application from another UWP app in windows IoT?

戏子无情 提交于 2019-12-11 15:13:57
问题 My requirement is to launch UWP app from another UWP app.And i made it but its working in windows 10 desktop system not on Windows IoT OS,Kindly help me to fix this. $(document).on('click', '.openTAT', function () { var testAppUri = new Windows.Foundation.Uri("test-app2app:"); var options = new Windows.System.LauncherOptions(); options.TargetApplicationPackageFamilyName = "TATApp_ehke6zp0mbebr"; Windows.System.Launcher.launchUriAsync(testAppUri, options).then( function (success) { if (success

How can I reconnect to BLE device? - UWP

淺唱寂寞╮ 提交于 2019-12-11 14:58:49
问题 Both the device id and the address are random that I CANNOT re-use them for bleDevice = await BluetoothLEDevice.FromIdAsync or bleDevice = await BluetoothLEDevice.FromBluetoothAddressAsync . I came up with 2 possible solutions: (1)ConnectionStatusChange & (2)Pairing, but both cases I have problems. (1) MAIN QUESTION Before I disconnect, I first save the bleDevice as bleDeviceReconnect . Then I unsubscribe, dispose characteristics & service & bluetooth le device, and set them to null. In the

Windows 10 UWP XAML stowed_exception_802b000a_my_app.dll!windows::ui::xaml::iapplicationstatics__impl::stubclass.loadcomponent

笑着哭i 提交于 2019-12-11 14:47:28
问题 I have a problem with a Windows 10 UWP Store App. In the app are two pages (Page1 and Page2) with similar xaml controls, but one page (Page1) cause a lot of problems while testing the app by microsoft. If they try to start the app the initialization of Page1 throw an exception. When I remove one specific xaml control all is fine, but Page2 contains exactly the same controls and works perfectly. On my local machine I have no exceptions, no warnings, the windows certification kit say the app

Route media audio to speakereven if headset is connect (UWP)

冷暖自知 提交于 2019-12-11 14:46:53
问题 In scenario 2 of this Audio Creation uwp project i noticed it capture audio from microphone and give output to selected output device in real time. So in this scenario i selected speaker as output device and start record so it start capture audio from microphone and give output to speakers even if my earphones is connected. as shown in image it route audio to media instead of headphones so similarly i want to route media, mp3,FM audio to speaker even if headset is connected. 回答1: This is a

Ignoring duplicate tile updates in Windows 10 Universal App

﹥>﹥吖頭↗ 提交于 2019-12-11 13:42:10
问题 I'm implementing queuing in medium, wide and large tiles in my universal app to show top 5 news headlines. In large tile, I'm showing 2 headlines at a time, so if there are 5 headlines, there will be 5 medium and wide tiles, but 3 large tiles in the queue. Since while updating tiles, we need to provide payload for all tile sizes, I need to specify to ignore the large tile payload from the 4th and 5th update. There is a contentId attribute in binding element, that we can (theoreticaly) use for

Incorrect Byte[] from WriteableBitmap in C# UWP10

别说谁变了你拦得住时间么 提交于 2019-12-11 13:08:45
问题 I want to get the base64 string from WriteableBitmap. I believe the byte[] to be incorrect. Because: The code for creating image from base64 is working. Tested this when sending base64 string from file. However i can't see anything when i'm using my function for WriteableBitmap to base64. My attempts so far. public static string GetByteArrayFromImage(WriteableBitmap writeableBitmap) { Stream stream = writeableBitmap.PixelBuffer.AsStream(); MemoryStream memoryStream = new MemoryStream();

Call MediaCapture.InitializeAsync from UWP BackgroundTask

依然范特西╮ 提交于 2019-12-11 11:37:58
问题 I am trying to take a photo during a BackgroundTask at an UWP application. I read at documentation that InitializeAsync should be on the STA thread but is there some approach to achieve that from a MTA? I don't known, something like Dispatchers or others workarounds. In my actual scenario, when I call CapturePhotoToStreamAsync just after the InitializeAsync, the following exception occurs: System.Runtime.InteropServices.COMException (0xC00D3E82): A media source cannot go from the stopped

“Access is denied” In UWP (C#) when trying to run desktop extension App

扶醉桌前 提交于 2019-12-11 09:34:27
问题 I'm trying to run a tutorial code for FullTrustProcessLauncher, In order to run desktop Application from UWP (As I asked in Run python script from UWP). The source code is found here: UWP-FullTrust. Im running the first example: UWP_FullTrust_1. It's compiles all ok but when I run the console command (Click the button) I get in the line await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync(); this exeption: "Access is denied. (Exception from HRESULT: 0x80070005 (E