win-universal-app

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

Apply PivotItemHeader style to PivotItem in UWP

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-15 03:39:40
问题 I have created a PivotItemHeader style with a key in resources but don't know where to apply this although if I remove Key it will be applied to all the PivotItemHeader but I don't want to do that, I want to apply this only for selected Pivot. <Style TargetType="PivotHeaderItem" x:Key"PivotHeaderItemInnserStyle"> <Setter Property="FontSize" Value="{ThemeResource PivotHeaderItemFontSize}" /> <Setter Property="FontFamily" Value="{ThemeResource PivotHeaderItemFontFamily}" /> <Setter Property=

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?

UWP App does not show Image

跟風遠走 提交于 2020-01-14 14:41:10
问题 I'm having a little issue here in showing image. Image is in Assets folder. Here is my XAML code: <Page x:Class="MyApp.WelcomeScreen" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:MyApp" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Width="800" Height="480" RequestedTheme="Dark"> <Grid Background="

UWP App does not show Image

陌路散爱 提交于 2020-01-14 14:41:07
问题 I'm having a little issue here in showing image. Image is in Assets folder. Here is my XAML code: <Page x:Class="MyApp.WelcomeScreen" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:MyApp" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Width="800" Height="480" RequestedTheme="Dark"> <Grid Background="

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();

Get installed application list in UWP

徘徊边缘 提交于 2020-01-14 14:15:12
问题 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();

Get installed application list in UWP

本秂侑毒 提交于 2020-01-14 14:15:08
问题 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();

UWP XAML designer doesn't load

烈酒焚心 提交于 2020-01-14 06:03:10
问题 When I create a new universal application, XAML designer doesn't load and it shows the following exception instead: Restarting windows, reopening the project or even reinstalling VS didn't solve that. 回答1: Try to check and install Windows updates, it helped in my case. 回答2: Reinstalling or repairing Visual Studio might help. 回答3: In my case uninstalling the App you're developing (Start Menu -> All Apps -> Your App -> Right click -> Uninstall) and rebuilding the solution/re-running the app

The App hangs on a device while debugging async method

依然范特西╮ 提交于 2020-01-14 02:50:07
问题 I'm following the guide at MSDN about downloading the file. So I have made a very simple download: private async void performDownload_Click(object sender, RoutedEventArgs e) { CancellationTokenSource myCts = new CancellationTokenSource(); ulong bytesReceived = await DownloadWebFile("myFile.jpg", myCts.Token); var forBreakpoint = 5; // set breakpoint here - isn't being hit on a device // some further code } public async Task<ulong> DownloadWebFile(string fileName, CancellationToken ct) { Uri