How to make UWP MediaElement to be loop mode when casting to a TV?
I find that when using UWP MediaElement (component name: video), it works well to be in loop mode when set as below: video.IsLooping = true; // method 1 video.MediaEnded -= Video_MediaEnded; video.MediaEnded += Video_MediaEnded; // method 2 private…
Switching Between System Power Saving Mode in UWP app ,makes the app non-responded for a while
My UWP app was not responding for sometime, when switching between power Saving mode(windows settings) while App was running. To Reproduce the issue , Run the app Open Windows System Battery Settings -> Enable/Disable Power Saving Mode Now try to…
What different other types of Azure maps are there for a Hybrid aerial view with roads and a search bar with more functions like google earth on visual studio 2022
What other different types of Azure maps are there for a Hybrid aerial view with roads and a search bar with more functions like google earth on visual studio 2022
![](https://techprofile.blob.core.windows.net/images/JNJleaYm4Uijg51nX4dRAA.png?8DC3AC)
![](https://techprofile.blob.core.windows.net/images/JNJleaYm4Uijg51nX4dRAA.png?8DC3AC)
In UWP or WinUI3, how to use AutoSuggestBox as the search box and highlight the matching keywords in red in the search result list
AutoSuggestBox is a good control in WinUI3. I use it as a search box and display search results. But how to achieve more advanced functions, such as highlighting keywords in the results ( ex, one of the result is 'powered by Microsoft', and only…
Set cover image to MediaPlayerElement in C# uwp for audio files
In my C# uwp project, i want to set a cover image to my MediaPlayerElement object, when an mp3 (or other audio file) loaded. I have tried the PosterSource property, but after i have been loaded a file in my mediaplayer, the postersource disappeared. I…
App testing error
Hello, I attached my app with Windows Store (using option in VS). Next, I made a package. Next, I try to validate It (runing test in VS). I get such error. How to solve such problem. I think that my app is already signed, and I dont know how to sign it…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
UWP NavigationView Selected Item as CommandParameter in MVVM Community Toolkit
UWP/XAML experts , How to set the selecteditem tag value as the CommandParameter in NavigationView SelectionChanged? Using community MVVM toolkit here. In example below the tag value is 3456 and would change dynamically . CommandParameter="{Binding…
Setup app for website without using msix installer (e.g. using .exe installer)
Our application supports apps for websites using app URI handlers. However some older computers or domain computers with certain policies cannot install apps packaged in msix installer. Is there a way to register your app to handle links…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
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…
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…
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…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
Access Denied When Using StorageProviderSyncRootManager
if (StorageProviderSyncRootManager.IsSupported()) { var syncRoots = StorageProviderSyncRootManager.GetCurrentSyncRoots(); foreach(StorageProviderSyncRootInfo syncRootInfo in syncRoots) { var cloudStorageItem = new DriveItem() …
![](https://techprofile.blob.core.windows.net/images/x1Xw3gAAAwAAAAAAAAAAAA.png?8DC386)
![](https://techprofile.blob.core.windows.net/images/rywYCd-aJkqHDa8iO4VaiQ.png?8DC93A)
PSA Universal print class driver, how to get a job status for the Universal print job? can we contact the printer using printer-uri?
How to get a job status for the Universal print job from UWP app?. Can we contact the printer using printer-uri? Please note that get printer attributes don't have any valid Printer IP. We can able to get the printer attributes, Is there anyway can we…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
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…
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 &…
How to Utilize SetColor(Windows::UI::Colors::Red) from a Non-UWP and Non-C++/WinRT DLL File
Hi, I have developed a C++ DLL without utilizing UWP or C++/WinRT. Within this DLL, I am employing Windows::Devices::Lights::LampArray^ lamp to retrieve information about the lamp, such as lamp->IsConnected, lamp->LampCount, and…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
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…
![](https://techprofile.blob.core.windows.net/images/P9lwKcAJKUWy1Mb_13eoDw.png?8DB035)
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…
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…
![](https://techprofile.blob.core.windows.net/images/bpqI_wINOUGg4BYYipkUVA.png?8D827C)
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…