winrt-xaml

WinRt WebView control handling navigation within the control

和自甴很熟 提交于 2019-11-29 04:34:10
I have a Metro app using a WebView control. I'm using NavigateToString to load a html file which may contain hyperlinks. What I then want to do is detect when one of these hyperlinks is selected and, instead of allowing navigation within the WebView control, to launch IE and view the page there instead. Is this possible within the WinRT constraints, and if so, how? So far, I've tried capturing the WebView_LoadCompleted() event, but although it does fire at the right time, I can't see any details about the URI from the NavigationEventArgs . Unfortunately this isn't possible directly because

How to Clip content with rounded corners in Windows Store App

三世轮回 提交于 2019-11-29 02:01:19
I've attempted to have a <Grid/> (with interactive stuff inside, not just an image) clipped with rounded corners (a <Border/> or a <Rectangle/> , whatever works). I've attempted multiple solutions, but none of them was compatible with a Windows Store App. No brush: RadialGradientBrush is not supported in a Windows App project. DrawingBrush is not supported in a Windows App project. The type 'VisualBrush' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. No mask: The attachable property 'OpacityMask' was not found in type

ListViewItem IsSelected Binding - Works for WPF, but not for WinRT

时光怂恿深爱的人放手 提交于 2019-11-29 01:37:29
问题 I'm trying to bind the IsSelected property of a ListViewItem to a property in a ViewModel. It works fine in WPF, but in Windows RT the IsSelected property is never getting set. public class Item : INotifyPropertyChanged { private readonly string name; private bool isSelected; public event PropertyChangedEventHandler PropertyChanged; public bool IsSelected { get { return isSelected; } set { isSelected = value; RaisePropertyChanged("IsSelected"); } } public string Name { get { return name; } }

Animate (smoothly) ScrollViewer programmatically

余生颓废 提交于 2019-11-29 01:31:51
问题 Is there a way to smoothly animate a ScrollViewer s vertical offset in Windows Phone 8.1 Runtime? I have tried using the ScrollViewer.ChangeView() method and the change of vertical offset is not animated no matter if I set the disableAnimation parameter to true or false. For example: myScrollViewer.ChangeView(null, myScrollViewer.VerticalOffset + p, null, false); The offset is changed without animation. I also tried using a vertical offset mediator: /// <summary> /// Mediator that forwards

Windows RT and c#

匆匆过客 提交于 2019-11-28 23:53:53
I need to develop Metro style application using C# and XAML which has to work on Windows RT devices and full Windows 8 OS. So I'm allowed to use only WinRT without any .net framework assemblies. I've read this question Microsoft Surface Tablet: Writing Apps for Both Devices? and this very usefull post: http://blogs.msdn.com/b/jasonz/archive/2012/06/12/what-you-need-to-know-about-developing-for-windows-on-arm-woa.aspx , but i stil have question: When i even create a Blank Metro Style Application project I have .NET asseblies for metro style. Do I have remove them by myself or i do something

Should I add my Metro app's TemporaryKey.pfx file to version control?

為{幸葍}努か 提交于 2019-11-28 23:36:23
问题 I've created a Metro-style C#/XAML application, and now I'm trying to add it to version control (Git and, later, GitHub). That means figuring out which files belong in version control and which don't. When I created my Metro project, Visual Studio added a file to it called ProjectName _TemporaryKey.pfx. From what I've read, .pfx files apparently have something to do with code signing or certificates or something like that. I haven't found anything yet that explains exactly what they mean in

“UpdateSourceTrigger=PropertyChanged” equivalent for a TextBox in WinRT-XAML

南楼画角 提交于 2019-11-28 21:36:00
In WPF, we can update the underlying data model whenever the user makes any change to the data by leveraging UpdateSourceTrigger like this: <TextBox Text="{Binding Path=TextProperty, UpdateSourceTrigger=PropertyChanged}"/> In Window Phone UpdateSourceTrigger was not included in the XAML specification and to accomplish the same, a TextChanged handler was necessary like this: (sender as TextBox).GetBindingExpression(TextBox.TextProperty).UpdateSource(); In Windows 8, I assumed that UpdateSourceTrigger would also be omitted - I was correct. I was surprised, however, to learn that

Executing UI Code from ViewModel on MVVMCross

我怕爱的太早我们不能终老 提交于 2019-11-28 20:57:49
I have just started using MvvmCross, but i didn't find any info about to how i can execute UI code from a ViewModel. On Caliburn there are coroutine so i can access the view and keep the ui code separated from the viewmodel code. on my first case i need to open a dialow from a command inside a ViewModel, what is the correct way? Right now i'm developing a WinRT app. Thanks There isn't any hard/fast rule on this within MvvmCross. Generally, when I need to do this I use the Messenger plugin. This answer assumes you are using the latest Alpha v3 code. For older vNext code you'll have to do some

How to install a Windows 8 App Without Submitting to Store [closed]

你离开我真会死。 提交于 2019-11-28 15:03:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . For a customer I need a to present our Windows 8 Metro App. When I deploy my solution or project, I get a exe but I can't install it. I get a MessageError, that I can only start the exe in a app container. How can I create a version of my application to give it to my customer without loading it up to the

How to get the Key Pressed in WinRT

六眼飞鱼酱① 提交于 2019-11-28 14:26:09
I had used OnTextInput Event to get the Key Pressed by the end user in WPF/Silverlight, but in case of WinRT I dont have such events and I am struck with KeyDown Event. Though the event returns the Key Pressed by the User, I am not able to differentiate the case (i.e, lower or upper case) as the event returns VirtualKey Enum. Is there any possible workarounds? Regards Lots of WinRT programmers have this problem, the event just isn't very discoverable. Microsoft hasn't been consistent enough about naming this event. It is KeyPress in Winforms, TextInput in WPF. Yet another choice for WinRT, it