uwp

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

UWP / Visual Studio: How to make different builds variants?

笑着哭i 提交于 2020-01-14 19:50:49
问题 I need to have three different build variants (flavors) of my UWP app that can be installed parallel: one for production, one for testing and one for development. They obviously need to share the same code base but have different constants like backend URLs and API keys. In Android Studio this can be done using "build variants" and in Xcode this can be done using "schemes". What's the Visual Studio equivalent of those? Maybe "build configurations" using the Configuration Manager as in https:/

Scroll to new item in ListView for UWP

删除回忆录丶 提交于 2020-01-14 14:48:46
问题 I'm creating a chat application with a ListView that contains the messages. When a new message is sent/received, the ListView should scroll to the new message. I'm using MVVM, so the ListView looks like <ScrollViewer> <ItemsControl Source="{Binding Messages}" /> </ScrollViewer> How can I do it? EDIT: I tried to make this work in versions prior to the Anniversary Update creating a Behavior. This is what I have so far: public class FocusLastBehavior : Behavior<ItemsControl> { protected override

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="

Define a Thickness using resources

╄→尐↘猪︶ㄣ 提交于 2020-01-14 14:16:28
问题 In a windows UWP app project, I am trying to define a Thickness by assigning to its Left , Top , Right and Bottom properties: <Setter Property="Margin"> <Setter.Value> <Thickness Left="{StaticResource SomeDouble}" Top="0" Right="0" Bottom="0" /> </Setter.Value> </Setter> This answer seems to suggest that this is possible in WPF, however, in my UWP project (as well as in a WinRT app), I get the following error: XAML Thickness type cannot be constructed. In order to be constructed in XAML, a

javascript alert() function not working in UWP app

人盡茶涼 提交于 2020-01-14 10:26:31
问题 I used some little basic javascript code and used it to make a simple UWP app, the alert function in the code works when i run the file in the browser, but it doesnt work when i try it in UWP app. below is the code <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>App6</title> <!-- WinJS references --> <link href="WinJS/css/ui-dark.css" rel="stylesheet" /> <script src="WinJS/js/base.js"></script> <script src="WinJS/js/ui.js"></script> <!-- App6 references --> <link href="/css

Windows UI (UWP or 8.1) in F# interactive

梦想的初衷 提交于 2020-01-14 09:06:08
问题 By referencing the default WPF DLLs, it's pretty easy to do anything you could do using code-only WPF: #r "PresentationCore.dll" #r "PresentationFramework.dll" // ...other DLLs... #r "WindowsBase.dll" let window = System.Windows.Window() let panel = System.Windows.Controls.StackPanel() let button = System.Windows.Controls.Button() panel.Children.Add button button.Content <- "hi" window.Content <- panel window.Show() ... and you can manipulate it while the window is still open... button.Click

Easiest way to simulate infinite scrolling selector with UWP

别来无恙 提交于 2020-01-14 06:06:46
问题 I am trying to design a control that would allow users to scroll up or down a range of numbers (e.g. 0-2000) with a similar feel of scrolling up or down a list. I tried to use a ListView or GridView inside a Flyout for this, but it's simply too slow just to load a couple thousand items. Now I'm thinking the best way might be to simply simulate the list scrolling without actually having any items (i.e. an infinite scrolling selector). Any suggestions on what control to use as a base to

Easiest way to simulate infinite scrolling selector with UWP

那年仲夏 提交于 2020-01-14 06:06:03
问题 I am trying to design a control that would allow users to scroll up or down a range of numbers (e.g. 0-2000) with a similar feel of scrolling up or down a list. I tried to use a ListView or GridView inside a Flyout for this, but it's simply too slow just to load a couple thousand items. Now I'm thinking the best way might be to simply simulate the list scrolling without actually having any items (i.e. an infinite scrolling selector). Any suggestions on what control to use as a base to