windows-10-mobile

Windows 10 Mobile height of soft keyboard

流过昼夜 提交于 2021-02-07 09:23:36
问题 Does anybody know how to move content of the page (maybe set relative margins or something like that) when soft keyboard is shown. Here is the example page from my application. So I want when the user starts typing a phone number in the text box the bottom button will be shown above the soft keyboard. As a result I want something like that: P.S: Sorry about Russian language on the screens. 回答1: It's kind of tricky, but as I've tried should work. I've used InputPane's showing and hiding events

No suitable transform was found to encode or decode the content error

≯℡__Kan透↙ 提交于 2021-01-28 23:30:50
问题 I am working with audio recording in windows 10 universal app, i found code here when i run that code it showing "No suitable transform was found to encode or decode the content" error, in phone any one please help me to resolve this issue. 回答1: when i run that code it showing "No suitable transform was found to encode or decode the content" error If you refer to MediaEncodingProfile.CreateMp3, you will see the following paragraph. Note While it is technically possible to call CreateMp3, you

UWP Check If File Exists

Deadly 提交于 2020-12-30 04:54:23
问题 I am currently working on a Windows 10 UWP App. The App needs to Check if a certain PDF File exists called "01-introduction", and if so open it. I already have the code for if the file does not exist. The Code Below is what i currently have: try { var test = await DownloadsFolder.CreateFileAsync("01-Introduction.pdf", CreationCollisionOption.FailIfExists); } catch { } This code Does not work correctly because to check if the file exists here, I attempt to create the file. However if the file

ListView ManipulationCompleted event doesn't work on phone

元气小坏坏 提交于 2020-02-14 02:48:30
问题 I have this code in a Windows 10 UWP application: MyListView.ManipulationMode = ManipulationModes.TranslateX; MyListView.ManipulationStarted += (s, e) => x1 = (int)e.Position.X; MyListView.ManipulationCompleted += (s, e) => { x2 = (int)e.Position.X; if (x1 > x2) { DataController.PaneOpen(false); }; if (x1 < x2) { DataController.PaneOpen(true); }; }; The ManipulationCompleted event doesn't work on phone in ListView . The code inside the handler never gets called. It's working fine on PC, but

Install an appx or appxbundle in a Windows Phone 10?

早过忘川 提交于 2020-01-30 08:27:05
问题 I'm developing an UWP app which is running without any troubles when it's being debugged using VS2015 but when it's installed using an appx or appxbundle. I've read many packaging and installation guides and it doesn't seem I'm leaving steps out (I just need to deploy the app in a device for testing purposes only), but this behavior makes me wonder if maybe I am... I'm not sure if I've let enough information but I really don't know what else to explain :( Could anyone tell me what should I do

CachedFileUpdater doesn't work in OneDrive app on mobile?

落花浮王杯 提交于 2020-01-23 09:14:22
问题 There is a Cached File Updater contract which allows apps like OneDrive or DropBox to keep files in sync with remote repository when users change them though file pickers. It works roughly like this: User gets a file using FileOpenPicker. User changes file. The source app gets notification that file is changed and uploads new file to backing storage. However, while in official DropBox app this scenario works perfectly, in OneDrive app it doesn't. I'm getting UnauthorizedAccessException when

Change style of a Button when its Disabled ( IsEnabled=False )

只愿长相守 提交于 2020-01-23 01:08:09
问题 I have a UWP Question. How can I change style of a Button when it’s Disabled (IsEnabled=False)? 回答1: Here's how you do it. <StackPanel> <Button x:Name="button" Content="Click Me" IsEnabled="{Binding IsChecked, ElementName=checkBox}"> <Interactivity:Interaction.Behaviors> <Core:DataTriggerBehavior Binding="{Binding IsEnabled, ElementName=button, Mode=OneWay}" Value="True"> <Core:ChangePropertyAction PropertyName="Opacity" Value="1"/> </Core:DataTriggerBehavior> <Core:DataTriggerBehavior

Getting call history returns only last 20 logs

冷暖自知 提交于 2020-01-15 03:44:06
问题 PhoneCallHistoryStore store = await PhoneCallHistoryManager.RequestStoreAsync(PhoneCallHistoryStoreAccessType.AllEntriesLimitedReadWrite); PhoneCallHistoryEntryQueryOptions options = new PhoneCallHistoryEntryQueryOptions() { DesiredMedia = PhoneCallHistoryEntryQueryDesiredMedia.All }; PhoneCallHistoryEntryReader reader = store.GetEntryReader(options); var logs = await reader.ReadBatchAsync(); Here logs.Count is always 20. How can I get all the logs? 回答1: Yes, it's the correct behavior. In

Drag-and-Drop UWP vs Button Style

只谈情不闲聊 提交于 2020-01-15 03:30:06
问题 I have a question that is me to leave upset. I want to drag and drop an item in a listview and I can not do when I have a style applied to my item. Only I can do and is working perfectly when I have no style (MyButtonStyle) applied / or do not have this image in style. When I have style (MyButtonStyle), ItemDragStarting event is not called. Another situation: I have tapped associated event, and when I apply this style crashes. I do not understand what the problem is, can someone help me?

Get installed application list in UWP

怎甘沉沦 提交于 2020-01-14 14:16:09
问题 I have an application that needs to reads name of all installed app on user mobile. but i can't do that. How can i get list of installed applications in Universal Windows Platform on windows 10 mobile? thanks for your helping 回答1: You need to add Windows Mobile Extensions for the UWP and use the following code: if (ApiInformation.IsTypePresent("Windows.Phone.Management.Deployment.InstallationManager")) { var packages = Windows.Phone.Management.Deployment.InstallationManager.FindPackages();