windows-10-universal

UWP app crashes after associating with the store

狂风中的少年 提交于 2019-12-11 07:44:31
问题 I'm creating a cordova app for Windows. After associating the app with the store the application start page goes white blank. The app works fine if it uses the package identity name com.something.moretext but my store package identity name is 58661Something.MoreText the windows store package identity name starts with numbers so i get error of unmatched pattern if i change widget-id manually in config.xml and rebuild it. If i just change in the visual studio without running the command

How to create windows 10 iot core application icon

廉价感情. 提交于 2019-12-11 07:39:55
问题 I have created an windows 10 iot core application and i created the app bundle in appx format. That's installing properly in windows 10 machine. But i want to install in IOT core board The package file which i have created like below: ABC_1.0.9.0_AnyCPU_Debug.appxbundle I have created through visual studio 回答1: You can follow this tutorial to create the the appxbundle. Then in the windows iot device portal, select add button to install your app like this: After that, you will see this Dialog:

Multiple DataTemplates with UWP MapItemsControl

五迷三道 提交于 2019-12-11 06:04:17
问题 I have a MapControl in UWP: <maps:MapControl x:Name="BikeMap" ZoomLevel="17" Center="{Binding CenterPoint, Mode=TwoWay}"> <maps:MapItemsControl x:Name="MapItems" ItemsSource="{Binding BikePoints}" ItemTemplate="{StaticResource BikePointTemplate}"/> </maps:MapControl> and am adding MapElements using XAML data templates, my ItemsSource is a list of simple objects. But, UWP doesn't seem to provide a way to specify the DataType of a DataTemplate and the MapItemsControl doesn't have a property for

ListViewItem Horizontal Strechting UWP 10

梦想的初衷 提交于 2019-12-11 05:23:54
问题 I want to horizontally stretch a ListView in UWP 10. I also set the HorizontalContentAlignment to Stretch . It kinda works, but its not exactly the result i wanted. I set the ListView background to Aqua so, you could see, that the ListView itself is strechting to 100%. The content is also strechting, but I got this space on the left and on the right. So my question is: How can i remove those "margins" left and right? Here is the result: And here is the XAML: <Grid Background="{ThemeResource

How to lock tablet screen rotation in UWP app?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 04:39:33
问题 I wanted my UWP app, running on windows 10, to support only Landscape orientations, but here is a one problem. First i founded this question: link This example from GitHub works fine then I try to set orientation with checkboxes, and when i set orientation like this: DisplayOrientations orientations = DisplayOrientations.Landscape; DisplayInformation.AutoRotationPreferences = orientations; it works too. Great. But here is an issue. If you'll try to press Start to suspend app and press it

UWP: Popup MaxWidth

亡梦爱人 提交于 2019-12-11 04:25:31
问题 I have a Popup which contains an ItemsControl (I can use ListBox if needed) which its items are arranged horizontally. Since the total width of the items can exceed the width of the screen, I need to limit the size of the popup width. My question is how can I limit the size of the popup? I've tried to use MaxWidth, but it doesn't work :( <Popup x:Name="puSoldItems" IsOpen="False" IsLightDismissEnabled="True" MaxWidth="{Binding ActualWidth, ElementName=_This}" ScrollViewer.HorizontalScrollMode

UI Virtualization of GridView and ListView in HubSection

不打扰是莪最后的温柔 提交于 2019-12-11 04:12:42
问题 I just noticed that if I put a GridView or ListView in UWP app inside a HubSection, the UI Virtualization breaks. Is my understanding correct? Thanks 回答1: Virtualization only happens for items outside the viewport. So it's important to place your GridView into a control that limits its size (e.g. Grid without auto-sized rows/columns) or set the size of the control. Wouldn't surprise me if your HubSection doesn't have a fixed size. The concept of a viewport is critical to UI virtualization

Symbols for kernelbase.dll could not be downloaded - UWP, Release build only, after Windows 10 update

随声附和 提交于 2019-12-11 03:33:48
问题 I've just updated my Windows 10 install to the latest anniversary update; this seems to have included: VS 2015 Update 3 (KB3022398) Update for Microsoft VS 2015 (KB3165756) Security update for MS Windows (KB3176495) Update for [blank] (KB2504637) I noticed that a UWP app I had developed (and successfully run previously) which is pinned to my Start menu seemed to drop it's tile graphic, and didn't start when I tried it. I then went to run it from VS (Release build) and got the following

UWP_Can not start app using StartupTask Class?

混江龙づ霸主 提交于 2019-12-11 02:26:17
问题 I follow this article to startup my UWP app when system reboot. https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.startuptask#uwp-app-startup-task-extension UPDATE I also tried that article, used exactly source code in that sample Configure your app to start at log-in and below is phenomenon: - when I click Request to Enable StartUp button on main page of UWP app, it shows Startup State as Enabled. - I check Task manager, this app is enabled in startup list. - After I restart

XAML UWP Flyout positioning

筅森魡賤 提交于 2019-12-11 02:13:45
问题 I am implementing a Flyout in a UWP app as you can see on the image below. I want the AutoSuggestBox in the Flyout to appear in (and fill) the PageHeader, but it appears below it. This is my XAML: <Button x:Name="searchButton" Margin="0" Padding="0" BorderThickness="0" RelativePanel.AlignBottomWith="pageHeader"> <Button.Content> <FontIcon Height="48" Width="48" Glyph=""/> </Button.Content> <Button.Flyout> <Flyout> <Flyout.FlyoutPresenterStyle> <Style TargetType="FlyoutPresenter"> <Setter