winrt-xaml

ScrollViewer CanContentScroll Property not Found (Windows 8.1 Universal App)

拜拜、爱过 提交于 2019-12-11 12:28:55
问题 I'm trying to get a ScrollView to logical scroll instead of physically. After reading up online on how to do this, most sources say to set the CanContentScroll property to False. However, when attempting to do this, it seems that ScrollViewer doesn't have this property. Here is my XAML code: <ScrollViewer x:Name="TestScroll" CanContentScroll="True" HorizontalScrollBarVisibility="Disabled" HorizontalScrollMode="Disabled" Margin="66,215,1020,10" Grid.Row="1"> <StackPanel x:Name="TestPanel"

WinRT XAML Toolkit TreeView expanded display

匆匆过客 提交于 2019-12-11 11:34:40
问题 I am developing a Windows store app. At a high level, the page has a Grid with two rows. Along with other controls, the ComboBox is placed in the first row. The second row has a GridView and the red tile is one of the items in the GridView. The ComboBox is used to display hierarchical data as shown here. ComboBox I am working on replacing the ComboBox with a TreeView from WinRT XAML Toolkit as shown here. TreeView What I like about the Combobox is that when its open, the opened list sits on

how to create motion of text along Path animation in winrt application?

安稳与你 提交于 2019-12-11 11:08:08
问题 how to create motion of text along Path animation in winrt application? After a bit of searching in silverlight and wpf i found PathListBox to do this kind of animation! But I could not able to find PathListBox for Winrt applications 回答1: found the control here http://pathtextblock.codeplex.com/. may be it should work 来源: https://stackoverflow.com/questions/13156368/how-to-create-motion-of-text-along-path-animation-in-winrt-application

Universal Apps: How to bind a property of a ListViewItem (container) to the actual item (View Model)?

我的梦境 提交于 2019-12-11 10:55:38
问题 I have this ListView <ListView ItemsSource="{Binding Items}"> <ListView.ItemContainerStyle> <Style TargetType="ListViewItem"> <Setter Property="Background" Value="{Binding IsValid, Converter={StaticResource BooleanToBrushConverter}" /> </Style> </ListView.ItemContainerStyle> <ListView.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}" /> </DataTemplate> </ListView.ItemTemplate> </ListView> I KNOW Bindings don't work for Setters in Universal Applications but, then how do I bind a

How to remove a specific page from Navigation cache in Windows Phone 8.1 RT?

亡梦爱人 提交于 2019-12-11 10:26:52
问题 I have set NavigationCacheMode to Required in some pages of my WP 8.1 XAML app. How can I remove a specific page from that? This is not Navigation stack. 回答1: If a page has NavigationCacheMode set to Required , there is currently no way to remove it explicitly. If you use Enabled , you can reset the cache using the cache mode: private void ResetPageCache() { var cacheSize = ((Frame) Parent).CacheSize; ((Frame) Parent).CacheSize = 0; ((Frame) Parent).CacheSize = cacheSize; } 回答2: I couldn't

Scroll to a Control in a ScrollViewer

本小妞迷上赌 提交于 2019-12-11 09:47:24
问题 In my windows store 8 metro style app, I have a scroll viewer for scrolling items of stack panel. I want to scroll the scroll bar automatically when ever a selection is changed dynamically and selected item is not in visible area. For eg : These tabs are Section tabs. When ever user clicks on skip button, the selected section is skipped and next section is selected.When user skips the last section then he jumps to the first section,but here scroll viewer does not scroll to the first tab

Azure Mobile Services push notifications channel creation fails after adding Private Networks capability in Windows 8 XAML store app

时光怂恿深爱的人放手 提交于 2019-12-11 09:44:37
问题 Azure Mobile Services push notifications have been working in my Windows 8 XAML Store app until I needed to access local network resources and had to add the Private Networks (Client & Server) capability. Now the application generates the error below when I try to acquire the push channel CurrentChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); CurrentChannel.PushNotificationReceived += CurrentChannel_PushNotificationReceived; A notification

Mediaelement in Windows 8 Metro App

送分小仙女□ 提交于 2019-12-11 08:55:55
问题 I have a scenario specific to my app. I am managing music file playlist in XML for my metro app. And its saving music files actual path like this D:\MyMedia\1.mp3 I have media element in my XAML page and I am setting its Source like this. mediaElement.Source = new Uri(@"D:\MyMedia\1.mp3", UriKind.Absolute); mediaElement.Play(); but its not playing the media and its giving the error like this MF_MEDIA_ENGINE_ERR_SRC_NOT_SUPPORTED : HRESULT - 0x80070005 So someone tell me how I can play some

How to bind my ObservableCollection two way to a ListView Extension WinRT Xaml Toolkit

跟風遠走 提交于 2019-12-11 08:43:52
问题 I have a Windows 8.1 application with a ListView and I am using ListViewExtensions from WinRt Xaml Toolkit(Obtained latest from Nuget) to bind BindableSelection Here is my XAML <ListView ItemsSource="{Binding AllItems}" SelectionMode="Multiple" ext:ListViewExtensions.BindableSelection="{Binding SelectedItems, Mode=TwoWay}"> <ListView.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding}" /> </DataTemplate> </ListView.ItemTemplate> </ListView> In my ViewModel I have the following

Read Base64 image with C# in a Windows 8 app

浪子不回头ぞ 提交于 2019-12-11 08:42:10
问题 I'm trying to display an image on a Windows 8 app. The image data is gathered from a web service, and provided as a Base64 encoded string. I found the following on Stack Overflow: How do i read a base64 image in WPF? However, when I come to use the BitmapImage Class, I can't seem to access System.Windows.Media.Imaging, even though the following Microsoft documentation leads us to believe that it is available for use in .NET 4.5, and with Windows 8 apps: http://msdn.microsoft.com/en-us/library