winrt-xaml

Turning off ComboBox loop scroll

99封情书 提交于 2019-12-07 21:37:34
问题 I have a ComboBox to let the user choose from a list, but when the list gets long enough it begins to automatically wrap around. For example, if the user scrolls far enough down they'll reach the end of the list and then find the top of the list just after a single blank row. The drop down selection list never really ends, it just keeps looping forever. How can I remove this looping scroll feature so the user just reaches the end of list? My code: <ComboBox Name="listSelect" ItemsSource="

Unable to navigate to page after extended splash in Windows 8 application

隐身守侯 提交于 2019-12-07 18:50:24
问题 I've created extended splash screen following guide offered by Microsoft. The screen shows off, data loads, but then the app doesn't navigate to landing page. How is this possible? ExtendedSplash.xaml.cs public sealed partial class ExtendedSplash { public ExtendedSplash(SplashScreen splash) { this.InitializeComponent(); // Position the extended splash screen image in the same location as the splash screen image. this.extendedSplashImage.SetValue(Canvas.LeftProperty, splash.ImageLocation.X);

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

◇◆丶佛笑我妖孽 提交于 2019-12-07 18:10:01
问题 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

Metro APP - BitmapImage to Byte[] or Download Image from Web and convert it to a Byte[] Array

巧了我就是萌 提交于 2019-12-07 16:55:19
问题 Is there a way to convert a BitmapImage (Windows.UI.Xaml.Media.BitmapImage) to an Byte[] Array? Nothing I've tried work.... Another possible scenario (if BitmapImage cannot be converted to Byte array) is to download the image from web and then convert it to an array... But I don't know how I can do that... It would be really nice, if someone have an idea. Current try: HttpClient http = new HttpClient(); Stream resp = await http.GetStreamAsync("http://localhost/img/test.jpg"); var ras = new

Is FluidMoveBehavior available?

坚强是说给别人听的谎言 提交于 2019-12-07 15:32:54
问题 I have calls to Grid.SetRow and Grid.SetColumn in my code which I'm trying to animate. According to the answer at http://social.msdn.microsoft.com/Forums/en-CA/wpf/thread/257779f7-b459-43fc-a4a1-f24641c50e09, it is recommended to make use of FluidMoveBehavior, but it doesn't look like this is available for Windows 8. What are my options for animating the children of a Grid when their positions change? I'm basically looking for a way to achieve linear transition. 回答1: There is a new built-in

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

夙愿已清 提交于 2019-12-07 15:07:03
问题 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

SearchBoxControl has focus on app launching on Win8.1

心不动则不痛 提交于 2019-12-07 13:49:18
问题 I'm using the new SearchBox Control in my Windows 8.1 app, but everytime I launch the app the SearchBox has the focus and displays the search history. I've tried to set the focus on another control on my page, but it doesn't work. So how can I start my app without showing the search history? Thanks. 回答1: Here's my guess. You are attempting to set focus to something else on the page, but there's actually nothing else on your page that can accept a programmatic focus. To test this, simply add a

Grid.IsSharedSizeScope equivalent for Windows 8

坚强是说给别人听的谎言 提交于 2019-12-07 13:38:40
问题 Is there any kind of simple (non-custom-coded) equivalent to WPFs Grid.IsSharedSizeScope in Windows 8/RT XAML? I have ListViewItem s that are divided into 3 horizontal sections and those 3 columns need to be aligned (to the widest width each) to all the bound ListViewItem . 回答1: Since that was for wpf I found a Metro solution to the problem. Ill paste the entire code in here. :) <Page.Resources> <DataTemplate x:Key="DataTemplate1" > <Grid HorizontalAlignment="Stretch" VerticalAlignment=

Why did my XAML suddenly crash?

你。 提交于 2019-12-07 12:21:02
问题 I added a "Basic Page" to my project in a folder ("View") that I created within the project. At first all was well, but "all of a sudden" the design view failed and displayed: System.ObjectDisposedException Safe handle has been closed This is the XAML (I hadn't changed a thing in the default XAML generated yet): <common:LayoutAwarePage x:Name="pageRoot" x:Class="TimeAndSpaceLines.View.SectionPage" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" xmlns="http:/

is there an equivalent of wp7's marketplacereviewtask for windows 8 / winrt / metro style?

拈花ヽ惹草 提交于 2019-12-07 08:45:45
问题 I've looked through MSDN on both the Store API and the Launchers collection, and can't seem to find a task or launcher that would open up an application in the Marketplace application ready for a user to rate, as we could really easily do in Windows Phone 7. Is there an alternative way that I can easily point a user towards leaving a review/rating, or are we going to have to wait until MS provides this, or does it already exist? 回答1: I believe, or should I say "I hope", that the "rate and