Is there any way to use Bluetooth LE from a c# desktop app in windows 10?

You can use C# APIs in C# Desktop applications! I have a sample here in GitHub. In general, to get access to the C# APIS, add two references to your project: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll Note that the #2 version depends on the version of .NET that you’re using. Background tasks … Read more

Handling Back Navigation Windows 10 (UWP)

Windows 10 (UWP) include SystemNavigationManager in Windows.UI.Core namespace for Navigation purpose only. Because SystemNavigationManager is part of Windows Universal Platform, So, it’s supported by all device family running on Windows 10 including Mobile and PC. For Single Page If you just want to handle navigation for single page. Follow the following steps Step 1. Use … Read more

AdaptiveTrigger and DataTemplate

Try wrapping your DataTemplate inside a UserControl like this – <DataTemplate> <UserControl> <Grid> <VisualStateManager.VisualStateGroups> … </Grid> </UserControl> </DataTemplate> Looks like any Control that has got a Content property will work. That’s why UserControl works, so does a ContentControl. So if you replace the UserControl with a ContentControl and give it an empty Style. It should … Read more

Cannot bind to some ports due to permission denied

The reason is that Hyper-V takes over these ports, to prevent it from happening do the following: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V (will have to restart) netsh int ipv4 add excludedportrange protocol=tcp startport=<your port> numberofports=1 dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All The original solution is here. If after that you still can’t bind to the port do the following: … Read more

Can DPI scaling be enabled/disabled programmatically on a per-session basis?

Here’s the answer I was looking for, based on comments by IInspectable and andlabs (many thanks): import ctypes # Query DPI Awareness (Windows 10 and 8) awareness = ctypes.c_int() errorCode = ctypes.windll.shcore.GetProcessDpiAwareness(0, ctypes.byref(awareness)) print(awareness.value) # Set DPI Awareness (Windows 10 and 8) errorCode = ctypes.windll.shcore.SetProcessDpiAwareness(2) # the argument is the awareness level, which can be … Read more