windows-10-universal

Xamarin Form - How to open documents in uwp desktop application

徘徊边缘 提交于 2019-12-04 18:13:45
I want to open the documents like pdf, office , image, txt, rtf inside the uwp desktop application. is there any control in toolbox which open this type of documents ? :( thanks in advance :) 来源: https://stackoverflow.com/questions/57177253/xamarin-form-how-to-open-documents-in-uwp-desktop-application

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

NTLM authentication using Windows.Web.Http.HttpClient

泄露秘密 提交于 2019-12-04 13:01:59
I am working on a Windows 10 UWP app that needs to talk to a IIS server using NTLM authentication. I am setting the username and password in the HttpBaseProtocolFilter: filter.ServerCredential = new PasswordCredential(uri, UserName, Password); When i view the request in fiddler, it is using Basic Auth. Is there anything I can do to get it to use NTLM, which the server is requiring? Request Headers: Content-Length: 1459 Content-Type: text/xml; charset=utf-8 Host: server Connection: Keep-Alive Cache-Control: no-cache Cookie: ClientId=XXXXXXXXX Authorization: Basic XXXXXXXXX Response Headers:

UWP: BrightnessOverride StartOverride logic

只愿长相守 提交于 2019-12-04 10:01:41
Does anybody know StartOverride method logic? From documentation: The request to start overriding does not mean that the screen brightness level always changes to match the specified override brightness level. It's still up to the system to decide whether or not to honor this override request. I've wrote simple method to debug brightness changes: protected override void ApplyBrightness(double brightness) { var brightnessOverride = BrightnessOverride.GetForCurrentView(); Debug.WriteLine($"Try to change brightness from {brightnessOverride.BrightnessLevel} to {brightness}"); void

Html editing in Windows 10 similar to Mail app?

旧巷老猫 提交于 2019-12-04 09:50:44
I want to read HTML and allow my user to edit HTML by providing him all the formatting options like Bold,Italic,Underline,Bullet points,etc. I also noticed that Microsoft is allowing all such formatting options in their default Outlook Mail app when we click on more in Bottom bar. Can someone please suggest is there any direct API to achieve this in Windows 10 or any third party API available in Nuget ? I want to achieve like below: Got a very good article to achieve my requirement on following RichText Editor Hope it helps someone. 来源: https://stackoverflow.com/questions/36540073/html-editing

In universal windows apps, how to change the background color of a button using xaml and databinding if a property in the view model changes

邮差的信 提交于 2019-12-04 09:29:49
Universal windows apps don't support data triggers. Without data triggers, how can I change the background color of a button using xaml and data binding only when a boolean property in the view model changes? For example given this XAML: <StackPanel> <Button Name="ButtonA" Click="ButtonA_Click" Content="A" /> <Button Name="ButtonB" Click="ButtonB_Click" Content="B" /> <Button Name="ButtonC" Click="ButtonC_Click" Content="C" /> </StackPanel> with this code behind private void ButtonA_Click(object sender, RoutedEventArgs e) { Model.IsOnA = !Model.IsOnA; } private void ButtonB_Click(object sender

Error when uploading UWP app to Windows Store: Failed to merge PRI file \Resources_split.scale-100.pri

我只是一个虾纸丫 提交于 2019-12-04 04:37:15
问题 I am uploading a latest version of my app to the Windows store but my app is throwing the error: Package acceptance validation error: We encountered a fatal error while parsing the package MyApp.UWP_2.33.0.0_x86_x64_ARM_AppStore.appxbundle: Failed to merge PRI file D:\data\Temp\69b5c2ab-3419-4197-839c-2ef13d218413\Resources_split.scale-100.pri: 80070490. Try again or upload a new package. I do not understand where to even begin to look to fix this error. has anyone else seen this error or

How do I change the accent colour of a Xamarin.Forms UWP application?

亡梦爱人 提交于 2019-12-04 04:29:50
问题 I am developing a Xamarin.Forms UWP application. I am struggling to set the accent colour of my application. This is the colour that is used for certain behaviors by default on controls. For example the Entry control has a default blue highlighting on focus shown below: I have tried a few suggestions from this thread: Change Accent Color in Windows 10 UWP but none seemed to work. I am not sure whether it is because I didn't fully understand how changing the colour for UWP differs for Xamarin

How to print in UWP app?

末鹿安然 提交于 2019-12-04 03:23:56
I am trying to print out something from my UWP app. Basically I've used a WebViewBrush to draw some data on to some FrameworkElement 's (Windows.UI.Xaml.Shapes.Rectangle) - and I want to print one of these Rectangles on each page (one rectangle per page) I was really hoping someone could provide a very simple example of how printing in UWP works. I have tried it myself and I am happy to provide my code, but there are honestly thousands of lines - all of which I've taken from the Microsoft GitHub examples and tried tweaking: https://github.com/Microsoft/Windows-universal-samples/tree/master

UWP Deployment Error after deploying to store - Windows 10

假如想象 提交于 2019-12-03 17:07:34
问题 Since deploying my UWP app for windows 10 in the store (beta & private), I can no longer deploy it to my phone (ARM), Tablet Simulator (x86) and my local machine (Surface Pro 3) for testing. I've rebooted both my phone and my SP3 but I'm still getting the same error: Severity Code Description Project File Line Suppression State Error Error : DEP0001 : Unexpected Error: Install failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CF9) I've googled the error and found