windows-10-mobile

Why CurrentApp::AppId take so long in Windows Phone 10?

雨燕双飞 提交于 2019-12-11 09:43:28
问题 I have a windows 8 universal project and have a function to get APP ID, The following function works well in Windows Phone 8.1 Platform::Guid appId = Windows::ApplicationModel::Store::CurrentApp::AppId; however, it spent around 40s in Windows Phone 10. From MSDN, only the Metadata is different, May I know is it caused by the metadata? And how to solve it? 回答1: To instead of using AppID , you might use the following code, Windows::ApplicationModel::Package^ package = Windows::ApplicationModel:

[UWP]: Alarm notification audio when system volume is set to off

谁说我不能喝 提交于 2019-12-11 08:33:50
问题 Hi all :) We are coding an app for the local fire departements since they plan to remove one of two pager frequencies and replace it with an app (they have two alert channels then, classic pager and mobile phone). In case of an incoming alert, the phone creates an alarm-scenario ToastNotification with audio. So far so good, the problem is that the audio file isn't played if the user has set the system master volume to zero. I know it's not possible so far to change the system volume from an

Can merged resource dictionaries access resources from App.xaml?

浪子不回头ぞ 提交于 2019-12-11 06:10:40
问题 Can merged resource dictionaries access resources from App.xaml ? The goal is to split the style to have it more readable. This is what I'm looking for, but doesn't work in that way: App.xaml in UWP project <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles\DefaultButtonStyle.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> <!-- other custom styles, definitions, ThemeDictionaries, ... --> <Color x:Key=

how to access “application data” folder in windows 10 phone?

∥☆過路亽.° 提交于 2019-12-11 04:27:55
问题 I need access to raw files (hidden and system) stored on my phone, how to do it ? Do I need to 'root' it, download a special file explorer ? I cannot find it on google because all I get are answers for win 10 destkop. 来源: https://stackoverflow.com/questions/41075781/how-to-access-application-data-folder-in-windows-10-phone

Remove Margin Button ContentDialog Windows 10 Mobile - XAML

你说的曾经没有我的故事 提交于 2019-12-11 03:54:16
问题 In my ContentDialog. On focus any element, type TextBox, the keyboard appear. When Keyboard appear, have a big margin above( so 20-30 px maybe). This space is the same height of the space allocated for Primary and Secondary Buttons. If have this margin, my content have a scrollbar and I do not want it. I have space sufficient to show all content of my dialog if remove this margin/padding of course. This topic is related with: ContentDialog Windows 10 Mobile XAML - FullScreen - Padding

Inspect dump files from UWP app

余生长醉 提交于 2019-12-11 01:43:56
问题 First I enabled saving of dump files on a Windows 10 Mobile phone: Settings > Update & Security > For developers > Save this many crash dumps: 3 Then I debugged an app which throwed an exception. I continued the debugging after stop. After disconnecting and connecting the mobile phone again, I was able to access the dump file stored under Windows phone\Phone\Documents\Debug directory. The file is called FPCL.WIndows - a736c773-c105-4b30-a799-4bf317872f5e with exception C000027B on 5-03-2016

Updating ListView's ItemsSource via INotifyPropertyChanged

删除回忆录丶 提交于 2019-12-10 18:28:01
问题 While answering other question I've stepped into one thing I try to understand. I've a ListView , which ItemsSource is bound to a property of my page. The page implements INotifyPropertyChanged , the DataContext is set, evrything works, I can see my list rendered on the screen. But if I change something inside one of the elements and raise property changed on the whole collection, the change is not visible on the screen, the getter is called, so the binding works, but nothing changes. Why is

The project needs to be deployed before it can be started

╄→гoц情女王★ 提交于 2019-12-10 16:29:23
问题 Whenever I am starting to test an Windows Phone app (even a blank app) on emulator, I am getting error " The project needs to be deployed before it can be started ". The emulator will be started & run successfully, still no luck in deploying app on emulator. Getting error DEP6100 & DEP6200. These are the stuffs I tried till now: Checked "deploy" option in 'Configuration Manager'. Tried deploying Windows 10 Mobile, Windows Phone 8.1 & Windows Phone 8 blank apps on different types of emulators.

Event on returning to app, after exiting by Windows key [UWP][Win10 Mobile]

狂风中的少年 提交于 2019-12-10 12:16:04
问题 I have big trouble finding right event for me - user during browsing files in my app [UWP Windows 10 Mobile app] can tap on it and then I launch it in default app by Windows.System.Launcher.LaunchFileAsync my app is 'minimzed' (just like by pressing Windows key) and user can interact with file in whatever app he wants. Now by pressing back-key he is returning to my app. Do you know any event which is trigerred now? I want to update the file (if it was changed) but I cannot find any event to

UWP: icon size in app bar/command bar

江枫思渺然 提交于 2019-12-10 11:09:19
问题 What icon sizes should I use for the app bar/command bar? I couldn't find something in Guidelines for tile and icon assets or in UWP App Visual Assets. Other names: navigation bar (iOS), app bar/action bar (Android), toolbar (Xamarin.Forms) 回答1: Image size The default icon size should be 20 pixels for app bar image at 100% scaling, but you should also provide additional image assets to ensure it looks great on all screens: appbaricon.scale-100.png - 20 px appbaricon.scale-125.png - 25 px