Queue.Enqueue and IndexOutOfRangeException
I have been chasing a strange occasional IndexOutOfRangeException for a while and pinned it on the following line: myQueue.Enqueue(myObject) where: protected Queue<MyObject> myQueue{ get; set; } I don't know how this is possible. The stack…
Occasional "System.Exception: OpenClipboard Failed (Exception from HRESULT: 0x800401D0)"
An app occasionally throws the following exception: System.Exception: OpenClipboard Failed (Exception from HRESULT: 0x800401D0) Stack Trace: at System.Runtime.InteropServices.McgMarshal.ThrowOnExternalCallFailed(Int32, RuntimeTypeHandle) + 0x21 at…
How to disconnect a BLE device after successful connection
I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…
RenderTargetBitmap renders low quality image of the UIElement
Hi, I have a Xamarin.Forms application deployed in UWP, in which I have added Xamarin.Forms.Image to the page and trying to convert the UIElement to image using RenderTargetBitmap, the converted image quality is reduced. Again I have added the converted…
Change Grid Margin Using Visual State | UWP, WinUI3
I have a grid inside a Style. If this grid has a width > 640 I'd like to change its background for red. If the grid width <= 640 I'd like to change the background for yellow. How can I do it only using xaml, without code behind? Obs: It is the grid…
Use same VisualStateGroup in all different ListViewItem style
Hello everyone. I'd like to make my VisualStateGroup unique for all ListViewItem, so that any ListViewItem style, even different, can use the same VisualStateGroup, without repeating in the ListViewItem style. Declare the VisualStateGroup once and all…
VirtualizingStackPanel Scrollviewer height
I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…
How to launch Microsoft default Calendar & Calculator with selected date / calculation from UWP ?
I need to launch Microsoft default app Calendar(outlookcal:) with selected date ( ex. 01/01/2020) and Calculator(ms-calculator:) with expression/calculation (2*3=) from UWP. I am using Windows.System.Launcher.LaunchUriAsync(new Uri()) for app launch…
Using Nuget Package in runtime library
Hello, I have a runtime library, where I have some classes which I use in my apps. One class in the library uses nuget package. I compile the library and attach to my app. Next I try to use the class in the app in Page Loadded event which such…
Opening app from app
Hello, I want to open app from other app. Function should work in this way If app is found as installed, open the app, but if app isnt found open it's page in Windows Store I use such code: private async void btnOpenApp_Click(object sender,…
Checking for TPM 2.0 module in a UWP app
Is it possible to check if a device contains a TPM 2.0 module from a UWP app? If so, how can I implement this check in my app?
How do I make a uwp app like FatMap on visual studio 2022
How do I make a uwp app like FatMap on visual studio 2022 https://fatmap.com/
winrt::create_instance<IDesktopWallpaper> error
I am completely new to C++/WinRT. I read some articles on winrt::capture and tried the following code: #include "pch.h" #include <Shobjidl.h> // EDIT: use winrt::guid_of<IDesktopWallpaper>. // Previously I used…
Impact of Bing Maps for Enterprise retirement to UWP
We received an email about the retirement of Bing Maps for Enterprise, which will affect all applications using Bing Maps. Does retirement also affect UWP apps that include map feature? Any migration procedures can be followed? Thanks.
How to get complete list of theme colors
Hello, I want to style my app in Light and Dark themes. I need a list off all system theme resources with its settings. For example: SystemControlBackgroundAltHighBrush and its color How to get such list?
how to specify WiFiDirect band
I want to create a WiFi Direct go in 5G band using WinRT WifiDirect API with 5G band, but i can't find related api to specify the Wifi Direct Band. I notice that the Mobile hotspot function which provided by window 11(Settings->Network &…
UWP When user click the tab, the focus should shift systematically to enable narrators to read the content displayed on the screen.
<Grid Grid.Row="1"> <TextBlock Height="auto" Style="{StaticResource PageHeadText}" Text="Candidate Test Affidavit" FontSize="{Binding Source={StaticResource…
Integrating a new child UWP exe/app in an existing parent UWP app
How can I integrate a new status updater app, which should be part of an existing parent UWP app project and package? The new status updater app will use WinUI libs and UWP xaml libs and be part of the UWP app store app. The parent UWP app should…
Can't install UWP app, fails with codes 0x800701c5 / 800700B7
Hello everybody. We want to publish our app, that is made with Xamarin Forms, to the Microsoft Store. WACK does not report any problems with the uploaded app. Installation fails for all betatesters, the store app reports error 0x800701c5. So I tried…