winrt-xaml

How to make EntranceThemeTransition works on a Custom Panel & ItemsSource?

只愿长相守 提交于 2020-02-16 02:40:09
问题 I can't get EntranceThemeTransition to work on a custom panel as ItemsPanelTemplate. See: Simplest code behind: public List<int> MyListExample = new List<int>() {0, 1, 2, 3, 4, 5}; Simplest XAML: <ListView Width="120" ItemsSource="{x:Bind MyListExample}"> <ListView.ItemContainerTransitions> <TransitionCollection> <EntranceThemeTransition FromVerticalOffset="200" IsStaggeringEnabled="True"/> </TransitionCollection> </ListView.ItemContainerTransitions> <ListView.ItemsPanel> <ItemsPanelTemplate>

How to make EntranceThemeTransition works on a Custom Panel & ItemsSource?

回眸只為那壹抹淺笑 提交于 2020-02-16 02:38:30
问题 I can't get EntranceThemeTransition to work on a custom panel as ItemsPanelTemplate. See: Simplest code behind: public List<int> MyListExample = new List<int>() {0, 1, 2, 3, 4, 5}; Simplest XAML: <ListView Width="120" ItemsSource="{x:Bind MyListExample}"> <ListView.ItemContainerTransitions> <TransitionCollection> <EntranceThemeTransition FromVerticalOffset="200" IsStaggeringEnabled="True"/> </TransitionCollection> </ListView.ItemContainerTransitions> <ListView.ItemsPanel> <ItemsPanelTemplate>

Issue with Swipe inside ListView

此生再无相见时 提交于 2020-02-06 18:50:59
问题 I am using a ListView in a Windows Store App. Whenever I start swiping(using simulator tap mode) over the list view all the items move together as illustrated in the picture. How can I disable this manipulation event? 回答1: To your ListView , add: ScrollViewer.VerticalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollMode="Disabled" If that is not enough (this sometimes does not work with MouseWheel events, in that the events still tend to be caught in the ListView and also tends to

Why is calling await completing the parent Task prematurely?

依然范特西╮ 提交于 2020-01-28 11:20:13
问题 I'm trying to create a control that exposes a DoLoading event that consumers can subscribe to in order to perform loading operations. For convenience, event handlers should be called from the UI thread allowing consumers to update the UI at will, but they will also be able to use async/await to perform long-running tasks without blocking the UI thread. For this, I have declared the following delegate: public delegate Task AsyncEventHandler<TEventArgs>(object sender, TEventArgs e); That allows

Where to start on a tile view

白昼怎懂夜的黑 提交于 2020-01-25 07:51:26
问题 I would like an exact copy of the windows 8 startpage (or windows phone if you like) as a control in my WinRT application.. Like this one in silverlight telerik but than for WinRT Must be clickable (the easy part) and dragable (the hardest part) I've been searching for examples but couldn't find any good.. does anybody has a good starting point or tip? 回答1: You should try Telerik HubTile. Telerik offers different types of tile type Windows 8 Style Tiles Rotating and Sliding Tiles Other Tile

Remove padding from GridViewItem

点点圈 提交于 2020-01-24 21:09:27
问题 Does anybody know a way to remove all the padding from GridViewItem? I'm using very small items (not too small though, I exaggerated in the picture below) and there's some padding when selecting the items which makes it good really bad and I'd like to take it out. This is what I mean: The code for the image is this: <GridView Margin="120,80,0,0" SelectionMode="Multiple"> <GridView.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> <

How can I automatically show a tooltip if the text is too long?

安稳与你 提交于 2020-01-24 12:36:00
问题 In a Windows Store Application I have the following TextBlock: <TextBlock Text="Seriously long text for the purpose of showing tooltip" TextTrimming="CharacterEllipsis" /> How do I automatically show a tooltip when the text is too long to display without an ellipsis? 回答1: Here's my solution, based on this and this. First, create an attached property to enable auto tooltip: public static class TextBlockUtils { public static readonly DependencyProperty AutoTooltipProperty = DependencyProperty

How can I automatically show a tooltip if the text is too long?

℡╲_俬逩灬. 提交于 2020-01-24 12:33:14
问题 In a Windows Store Application I have the following TextBlock: <TextBlock Text="Seriously long text for the purpose of showing tooltip" TextTrimming="CharacterEllipsis" /> How do I automatically show a tooltip when the text is too long to display without an ellipsis? 回答1: Here's my solution, based on this and this. First, create an attached property to enable auto tooltip: public static class TextBlockUtils { public static readonly DependencyProperty AutoTooltipProperty = DependencyProperty

OnSelectionChanged event for chart controls in Modern UI Charts for Windows 8

隐身守侯 提交于 2020-01-23 18:04:05
问题 I am using Modern UI Charts for Windows 8 and I need to do a drill down when the user selects a series item in the chart (for eg: I have a Column Chart which shows a student Year wise performance and when user selects a particular Column I should show another Column chart with the score he obtained for that particular year in each subject) I am looking for some kind of selectionchanged event or something similar so that I can change the input to the series to get a different chart Please Help

watermarked PasswordBox in winrt

扶醉桌前 提交于 2020-01-23 13:21:29
问题 is it possible to get a watermarks passwordbox in WinRt? It is no problem to get a textbox with a watermark, but I don't know a toolkit where I can get a password box with a watermark. How can I implement one for myself? 回答1: Take a look on WinRT XAML Toolkit. They also have WatermarkTextBox WatermarkPasswordBox By yourself you can implement your own controls: in .xaml: <Border x:Name="brdPassword" Margin="5,0,5,10" BorderThickness="2" BorderBrush="White" CornerRadius="5" Grid.Row="0"