win-universal-app

XAML Designer is not loading

荒凉一梦 提交于 2019-12-06 01:54:09
问题 I am trying to develop a Universal application for Windows 10 but the XAML designer fails to load. I have tried reinstalling Visual Studio but nothing has seemed to work. Error : System.Runtime.InteropServices.COMException The app didn't start. (Exception from HRESULT: 0x8027025B) Stacktrace : at Microsoft.VisualStudio.DesignTools.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions

Need to get mouse events inside webview Win 10 UWP

本小妞迷上赌 提交于 2019-12-06 00:49:50
I am creating a win 10 UWP application. <Grid> <WebView x:Name="WebViewElm"/> </Grid> I have added a webview in it and I need to get the mouse right click and drag drop events for the webview element. But now it is taking the events for the browser. How I can handle the input events in the webview Sample of how to drag element from XAML to WebView. It's not complete solution, but might be helpful for you. XAML: <StackPanel Orientation="Vertical" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <WebView DefaultBackgroundColor="LightGray" Source="ms-appx-web:///HTMLPage1.html"

How can I disable tilt animation on GridView/ListView in Win10 Universal app?

三世轮回 提交于 2019-12-05 23:49:15
It used to be I could cancel the tilt effect on GridView/ListView by editing the item container style and removing the storyboard animations. However, when I edit the templates now on Win10 Universal apps, I am not seeing any of the storyboards. Where can I cancel the animation at? Here's the style that's generated for me (and when used, does not disable animation): <Style x:Key="ListViewItemStyle1" TargetType="ListViewItem"> <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/>

Are AppId and Package Id identical?

跟風遠走 提交于 2019-12-05 23:16:49
问题 I want to open Windows Store of my current application (so the user can rate/review out app). In doing so, I need to get the App ID. However, I come across this article in SO that says CurrentApp.AppId takes a lot of time, and offer Package ID as substitution. I have never released a app on Windows Store before, and cannot test it now without a released/published app on Windows Store. Can anyone help me confirm about the following two lines of code? //var appId = CurrentApp.AppId.ToString();

How do you hide a ListView Item placeholder when it's DataTemplate child is collapsed?

点点圈 提交于 2019-12-05 23:09:08
When the visibility of a CarViewControl is set to collapsed, it still shows a placeholder where it used to be (see screenshot below). Is there any way to completely hide a ListViewItem when it is Collapsed? XAML Code <ScrollViewer> <ListView ItemsSource="{Binding CarVM.UserCars}" ShowsScrollingPlaceholders="False"> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style> </ListView.ItemContainerStyle> <ListView.ItemTemplate> <DataTemplate> <ctrl:CarViewControl Car="{Binding}" Visibility="{Binding HideCar, Converter

Proper way to make a wizard in a UWP application?

人盡茶涼 提交于 2019-12-05 22:36:11
I'm trying to implement a startup wizard for a UWP application. Preferably the wizard should open in a new window that is non-resizable and located at the center of the screen. I have already tried to use LaunchUriForResultsAsync in order to launch a dummy protocol inside our own app. This way, I could open a new non-resizable window, but it had fixed size (500x500) and position (left side of the main app). Trying to call TryResizeView or to set PreferredLaunchViewSize didn't have any effect, even though they would work within the main (first) window of the same UWP app. I could find only a

How place pivot header bottom?

房东的猫 提交于 2019-12-05 22:00:45
I think, in UWP should be possible to place pivot header to bottom. I read, we can do this without template editing. I cannot find any example. Thanks for answer EDIT: https://msdn.microsoft.com/en-us/library/windows/apps/dn997788.aspx?f=255&MSPPError=-2147217396 Header placement. Headers can be placed at the top or the bottom of the screen. If I understood you, default behavior like picture bellow So, just use this Style for Pivot <Style x:Key="PivotHeaderBottomStyle" TargetType="Pivot"> <Setter Property="Margin" Value="0"/> <Setter Property="Padding" Value="0"/> <Setter Property="Background"

Highlighting words in RichEditBox

折月煮酒 提交于 2019-12-05 21:44:22
It is needed to highlight by fiven colour a substring in the document RichEditBox. For this purpose I wrote a method: private async Task ChangeTextColor(string text, Color color) { string textStr; bool theEnd = false; int startTextPos = 0; myRichEdit.Document.GetText(TextGetOptions.None, out textStr); while (theEnd == false) { myRichEdit.Document.GetRange(startTextPos, textStr.Length).GetText(TextGetOptions.None, out textStr); var isFinded = myRichEdit.Document.GetRange(startTextPos, textStr.Length).FindText(text, textStr.Length, FindOptions.None); if (isFinded != 0) { string textStr2;

CanExecute() returns true and button is still disabled

最后都变了- 提交于 2019-12-05 21:38:38
I have a BottomAppBar.AppBarButton in a Windows Phone specific page, that is bound to a relay command. The code, binding and viewmodel implementation have all been used in basically the same way on other pages in the project and works exactly as expected there. The issue in this particular scenario is that the button remains disabled even after raising the .RaiseCanExecuteChanged() method, and the CanExecute() returns true . I originally thought that it might be due to excess calls to manually raising the notification with property changes, so have tightened that part of my code so that the

Error DEP0700 0x80073cf3 during Windows 10 UWP application deployment with Visual Studio

三世轮回 提交于 2019-12-05 21:29:05
I'm unable to deploy my UWP project anymore in the Release/x64 configuration with .NET Native. It appears that it can't find the x86 version of the .NET Native Runtime package during deployment, while it has built a x64 package on the target platform that is really x64. The error is below: Error : DEP0700 : Registration of the app failed. Windows cannot install package XXXXXXXXX-d24ead15699e because this package depends on another package that couldn't be found. This package requires minimum version 1.2.23231.0 of framework Microsoft.NET.Native.Runtime.1.2 published by CN=Microsoft Corporation