uwp

Can't enter enter text in TextBox control inside Flyout

萝らか妹 提交于 2019-12-04 16:43:07
问题 I want to use the CommandBar and a Flyout to build something like this. The user should click the button in the CommandBar ( Flyout opens), then enter text in the TextBox and then click the button on the right of TextBox to start the search request. The problem is, that when I click at the TextBox I can't enter text. It seems that it loses the focus, before I can write something. Below is the sample code. Whats wrong? <Page.Resources> <DataTemplate x:Key="Search"> <Grid> <Grid

How to get Unicast, Dns and Gateway Address in UWP?

徘徊边缘 提交于 2019-12-04 16:25:34
问题 I'm trying to find Unicast, Dns and Gateway Address in windows IOT. Normally I can access these values with NetworkInterface.GetAllNetworkInterfaces() method. But in UWP, that method is missing. Is there any alternative for getting these values? 回答1: You could try to PInvoke methods from Iphlpapi.dll . There are several methods that may contain the Unicast, Dns and Gateway info you're looking for, like GetInterfaceInfo() , GetAdaptersInfo() , GetAdaptersAdresses() , etc. Please see a complete

Why does UWP continuous speech recognition stop

大憨熊 提交于 2019-12-04 16:01:35
I have a Windows 10 UWP app that I am enabling voice recognition for a text box. Yes, I know that I can also leverage Cortana for this. However, Cortana comes with some cons as well, mainly that you have little to no control over Cortana from within the app. This is where the Continuous Recognition of the SpeechRecognizer namespace comes in. I like the amount of control I have. However, it seems to randomly stop listening after some seconds. Here is how I have it implemented. Note that I also tried to set every possible timeout to 0 which should mean no timeout. Properties on page: private

App or Code to Suspend Resume UWP app without Visual Studio

我的未来我决定 提交于 2019-12-04 15:45:32
My question is similar to How to make UWP app to suspend and resume state , but I need an application that I can give to my QA team so that they can more easily invoke Suspend and Resume in my app. Since Visual Studio has a "LifeCycle Events" toolbar that lets you suspend and resume your App, I figure that there must be an app that ships with Visual Studio that does this. However, perusing through the Visual Studio files, I was not able to find such an executable. Does anyone know of a stand-alone application (installed with Visual Studio or not) that can suspend or resume a windows store app?

Splash screen for universal windows 10 apps

本小妞迷上赌 提交于 2019-12-04 15:36:08
问题 I am creating a windows 10 universal app targeted for both Windows Phones and Windows Desktop, the problem I am facing on is when adding splash screen through the package.manifest file to the app, there is no option to add splash screen which fits the phone's portrait orientation (see the image below), And when I deploy the app on the phone the splash screen appears like shown below. 回答1: In this case, you will also want to specify the Background color , on your first screenshot. Read this -

Can UWP apps be ported to Windows 7?

白昼怎懂夜的黑 提交于 2019-12-04 15:05:47
问题 Can a Windows 10 app built on the Universal Windows Platform (UWP) be ported back to Windows 7 customers? In particular, one made using XAML? 回答1: The UWP platform is only available for Windows 10 devices. We can't port it back. If you want to use it on Windows 7 device. You can make a WPF, which use XAML, the same as UWP. And WPF can run on Window 7. Particular XAML and C# code can be reused. 来源: https://stackoverflow.com/questions/34059267/can-uwp-apps-be-ported-to-windows-7

System.Threading.Thread replacement in UWP / Windows 10 mobile

自作多情 提交于 2019-12-04 15:03:11
In UWP, how can I access the thread object? I want to change the name of the main thread and additional thread that I will manage. I also want to check if the current thread is the main thread afterwards. I'm targeting to windows 10 mobile. The following code example works for desktop, but not for phone (getting 'System.DllNotFoundException'): [DllImport("kernel32.dll")] static extern IntPtr GetCurrentThread(); Thanks. You should use Tasks instead of threads. https://msdn.microsoft.com/en-us/library/system.threading.tasks.task%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 As about renaming of

UWP suspend disable with ExtendedExecutionSession or ExtendedExecutionForegroundSession

偶尔善良 提交于 2019-12-04 15:01:27
UWP, I can not be disable to suspend. I need your knowledge. Here is my simple example to know issue. It's counter increase/decrease application. Actually, I want to monitor temperatures from device for 356 x 24 hours without any stopping. I expect to increase value++ during Suspend mode. but UWP does not work during supending.. Why ?? Uploaded code is here at Github.com. You can test My simple application. https://github.com/bidasknakayama/Basic here is my environment. It's desktop PC. Desktop PC or Plugged Note PC ( no battery mode ) Outputed as Sideloaded application Package.appxmanifest <

C# Detect Accent Colour Changes WinRT XAML

眉间皱痕 提交于 2019-12-04 14:50:59
I am trying to detect changes in the Application.Resources Resource dictionary, so I can automatically change the Titlebar to the Accent Colour when it updates. All of the XAML controls and elements change automatically, and when setting a solid colour brush to the address of the DSDFS brush, its internal value changes. This is the code I have tried to use to detect the change: public static DependencyProperty accent = DependencyProperty.Register("DictChange", typeof(ResourceDictionary), typeof(Shell), new PropertyMetadata(Application.Current.Resources, new PropertyChangedCallback(accent

Show device usage consent dialog in Unity app for Hololens

僤鯓⒐⒋嵵緔 提交于 2019-12-04 14:28:14
I'm working on application for Hololens built on Unity. My need is to get some information from phone(android or wp - doesn't really matter) using Bluetooth Service Port Profile . The chosen approach is to make a Hololens act as Bluetooth Host. So I'm using RfcommServiceProvider for this. The simplified sample: _rfcommProvider = await RfcommServiceProvider.CreateAsync(RfcommServiceId.SerialPort); _socketListener = new StreamSocketListener(); _socketListener.ConnectionReceived += OnConnectionReceived; await _socketListener.BindServiceNameAsync(_rfcommProvider.ServiceId.AsString(),