winrt-xaml

Animation when add or remove item from GridView XAML

守給你的承諾、 提交于 2019-12-08 07:33:53
问题 How create own animation when item add or remove from GridView? For example change colour from dark to light. If Item is a Grid: <Grid.Transitions> --> There can be only predefinied *ThemeTransitions? </Grid.Transitions> Is other way to do this? 回答1: Tim is correct that the Transitions are pre-defined at this point. However, you should be able to achieve your scenario using Storyboard. There are probably several ways to do this, e.g. retemplating GridViewItem and adding new "Loading"/

how to disable the default selection in listview when you navigate to it

半腔热情 提交于 2019-12-08 07:20:47
问题 I have two list views in a scene (listview1 and listview2, contents of listview2 depends on the selecteditem on listview1) and when I navigate to the scene I want the first item in listview1 to be selected and the details be displayed in the other listview (listview2) but I do not want any item in the listView2 selected by default. What i am observing is that the first item in listView2 is also selected and that is causing selectionchanged event to be triggered for listview2 (which I want to

Disable left/right/up/down hotkeys in flipview

走远了吗. 提交于 2019-12-08 06:33:33
问题 How to disable right/left/up/down arrows hotkeys in flipview? I have a textbox on a flipview and when I move cursor using keyboard arrows and reach the end of textbox, it doesn't stop but flips the page which is annoying and is not applicable for my case. The same is true for cursor reaching the beginning of the textbox. I've tried different solutions, but none of them work. <FlipView x:Name="flipView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" IsTabStop="False"> <FlipView

On screen keyboard is hiding content

浪尽此生 提交于 2019-12-08 05:11:19
问题 I have an autocomplete text box that when typed in will show results in a popup directly below itself. But when the user is using a virtual keyboard as soon as the keyboard shows it will scroll the the bottom of the textbox, This hides the results from showing when they appear. Is there a way for me to get around this? The only way i can think of is to set the vertical offset of the popup on each keypress that will position it above the textbox instead of below. But this is not how i would

SemanticZoom ZoomedOutView SelectedItems Returns DependencyObject

大憨熊 提交于 2019-12-08 03:31:25
问题 In the SemanticZoom control I use the same CollectionViewSource for both the zoomed in and zoomed out view. To do this I bind the zoomed out GridView in the code behind like this: (FavoriteGroupsSemanticZoom.ZoomedOutView as ListViewBase).ItemsSource = this.FavoriteGroupsViewSource.View.CollectionGroups; Everything works as expected. However, now the zoomed out GridView is bound to a list of DependencyObjects instead of my original groups. And thus when I access the SelectedItems I get a

MaskedTextBox for WinRT

血红的双手。 提交于 2019-12-08 03:30:38
问题 I'm looking for a MaskedTextBox for WinRT, I can't seem to find any... Does anybody know if such a textbox exists? I found the one from ComponentOne, but that one is paid, and I'm looking for a free sollution. If someone knows an open source sollution for Silverlight or Windows Desktop that isn't like over 2000 lines of code, I'm willing to look into it and try to convert it to WinRT. 回答1: i use a behavior instead of a maskedtextbox control. but honestly i dont know if this would work on

How to get all the textBoxes in the UserControl added into GridView

三世轮回 提交于 2019-12-08 02:29:02
问题 On the Page, I add UserControl into GridView dynamically. So, each UserControl can contain different kind of controls ( TextBox, CheckBox, Radio Button) say , the name of UserControl is : UserForm. problem : How to get a collection of control using VisualTreeHelper and check if textBox is empty. I found a code similiar to this problem and modified it but not working. I dont know what this means and if this is required? list.AddRange(AllTextBoxes(child)) Should I use MyList.Select() or MyList

Windows phone 8.1 dimensions issue

荒凉一梦 提交于 2019-12-08 02:05:41
问题 I am having problems understanding the dimensions while developing an App for windows phone. I know there are 3 resolutions: WVGA 480 × 800 15:9 WXGA 768 × 1280 15:9 1.6x scale 720p 720 × 1280 16:9 1.5x scale, 80 pixels taller (53 pixels, after scaling) The issue is that the Width of the page seems to be always 400 points; When i am positioning an item (a Rectangle) in my Page, i set it's Width to 400 . I run the 480x800 emulator (8.1 WVGA 4 inch 512 mb) and the rectangle occupies the whole

Image flickering in Windows RT App

假如想象 提交于 2019-12-08 01:32:09
问题 I have a Windows RT app where I programmatically change the Bitmap in the Image component. All works well with the XAML and the code below except the flickering we see when the image is changed. What should I change to get rid of the flickering? XAML : <Page x:Class="iSurfBrainViewProto01.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:iSurfBrainViewProto01" xmlns:d="http://schemas.microsoft

Windows 8 soft keyboard not hidden

不羁岁月 提交于 2019-12-08 01:25:54
问题 We have a Windows Store app that requires the entry of a username and password for accessing a service. When authentication fails connecting to the service we display a popup asking to re-enter their username and password. On a tablet when the user puts the focus on the username or password fields the soft keyboard is displayed correctly. Our login screen is adjusted on detection of the soft keyboard so that all fields and buttons are visible. This all works no problem and when they enter