win-universal-app

UWP DatePicker custom strings for month

元气小坏坏 提交于 2020-01-13 19:45:53
问题 I am doing UWP application for non English users. I need to use DatePicker but I don't like that the months' names are written in English, I also dont want to show month with their numeral values. How can I set my own list of string to show it on the months picker? 回答1: If you change the region from english to spanish or someone else region then the months names is to be changed to spanish language or someone else language. This mean the name for months and day like Fri, Mon, etc, Is get the

UWP DatePicker custom strings for month

萝らか妹 提交于 2020-01-13 19:45:32
问题 I am doing UWP application for non English users. I need to use DatePicker but I don't like that the months' names are written in English, I also dont want to show month with their numeral values. How can I set my own list of string to show it on the months picker? 回答1: If you change the region from english to spanish or someone else region then the months names is to be changed to spanish language or someone else language. This mean the name for months and day like Fri, Mon, etc, Is get the

Multiple language support in Universal App

人走茶凉 提交于 2020-01-13 02:43:09
问题 This is not a question about standard localization - I know how to localize the app, use resources, Uid 's and so on - this works perfectly. The problem is that the app comes within a bundle , therefore when the user installs the app it covers only languages that are selected in device/phone settings. But I would like to provide an option in settings that would allow choosing a language regarding the settings. For this purpose, I can use ApplicationLanguages.PrimaryLanguageOverride, which

Can't deploy universal app to phone with Windows 10 Mobile Tech Preview

风流意气都作罢 提交于 2020-01-12 04:48:06
问题 I have a developer unlocked Lumia 635 just yesterday updated to Windows 10 Mobile Technical Preview (OS version: 10.0.12562.84 ). After creating "Blank App (Windows Universal)" targeting Windows Phone 10 in Visual Studio 2015 RC and tried to deploy it to the device (and have changed configuration to ARM for that exactly purpose) I've got this error: Error : DEP0001 : Unexpected Error: A Prerequisite for an install could not be satisfied. (Exception from HRESULT: 0x80073CFD) After quick look

Display local toast notification

北慕城南 提交于 2020-01-12 01:35:26
问题 I want to develop a universal app for Windows Phone 8.1 which contains a local “Notification”. What I want to do is to show all messages to the user (error, information, warnings) in a kink of toast control. Everything is done locally without going through the standard notification system. There are several system that work on Windows Phone 8: TOASTINET (http://www.nuget.org/packages/ToastinetWP/) CONDING4FUN toast prompt (https://coding4fun.codeplex.com/wikipage?title=Toast%20Prompt

Get The Username/User Id Of Currently Logged In User In A UWP App

六月ゝ 毕业季﹏ 提交于 2020-01-11 12:58:32
问题 I want to get the username or user id of the currently logged in user in a UWP app. Below is the code that I am using but it returns null . var current = users.Where(p => p.AuthenticationStatus == UserAuthenticationStatus.LocallyAuthenticated && p.Type == UserType.LocalUser).FirstOrDefault(); var data = await current.GetPropertyAsync(KnownUserProperties.AccountName); Username = (string)data; 回答1: var users = await User.FindAllAsync(UserType.LocalUser); var user = (string) await users

HttpClient fails to authenticate via NTLM on the second request when using the Sharepoint REST API on Windows Phone 8.1

谁都会走 提交于 2020-01-11 12:22:51
问题 Sorry for the long title, but it seems to be the best summary based on what I know so far. We’re currently working on a Universal App that needs to access some documents on a Sharepoint server via the REST API using NTLM Authentication, which proves to be more difficult than it should be. While we were able to find workarounds for all problems (see below), I don’t really understand what is happening and why they are even necessary. Somehow the HttpClient class seems to behave differently on

UWP create VPN connection

旧街凉风 提交于 2020-01-11 06:18:10
问题 Currently I'm trying to figure out, how to add a VPN profile and connect to it from my universal app. I can connect to existing VPN connections with the Windows.Networking.Vpn namespace. I can also add a profile, but can not find a way to set all the required information (PSK for example). There is no documentation about this namespace in the MS docs. I also saw that there are two different profile namespaces available: VpnNativeProfile and VpnPlugInProfile . What is the difference between

How to disable Task Parallel Library's ETW EventSource in a Universal App?

﹥>﹥吖頭↗ 提交于 2020-01-11 03:22:27
问题 Task Parallel Library uses Event Tracing for Windows (ETW) for logging. Apparently, there is a bug related to logging, in either TPL or ETW, surfacing under Windows Phone or Windows Store .NET Runtime. The original issue is described here. A possible workaround would be to disable the TPL's ETW EventSource . How do I disable it from within a Universal Windows app , if I really want to? Reflection works for a Desktop app, but not for a WP/WinRT app. EventCommand.Disable is not recognized as a

Hide Status bar in Windows Phone 8.1 Universal Apps

自古美人都是妖i 提交于 2020-01-09 06:23:27
问题 How to hide the Status bar in Windows Phone 8.1 (C#, XAML)? In Windows Phone 8 it was done by setting shell:SystemTray.IsVisible="False" at any page. But its not available in Windows Phone 8.1 回答1: With the release of Windows Phone 8.1 SDK comes a new StatusBar. The StatusBar replaces the SystemTray from Windows Phone Silverlight Apps. Unlike the SystemTray, the StausBar can only be accessed via code and some functionality has changed. StatusBar statusBar = Windows.UI.ViewManagement.StatusBar