winrt-xaml

How to convert Base64 string to image, then bind it to GridView in a Metro Style App?

試著忘記壹切 提交于 2019-12-14 00:32:36
问题 I have collection of products from web service, I preview this product in Grid View, but I get the images of the products as Base64 strings. How can I convert it to images and bind it to the images in the Grid View? Any piece of code that will help me in this issue. 回答1: In WPF/Metro/Silverlight, Image is a UI control. Its source is set to BitmapSource. BitmapSource is a data structure to hold image data. Following is the code to retrieve BitmapImage from byte array. public BitmapImage

template 10: declaring a new button in hamburger navigation and navigating to its page

你。 提交于 2019-12-13 19:31:39
问题 I am kind of beginner in UWP Platform and I am building an app using template 10. I have used GridView for a particular page, but the problem is that the GridView shows its borders when you hover over it or select its item. Like this: I want the border not to show up whenever the user hovers over it or selects a GridView item. My XAML Code is: <Page x:Class="Sample.Views.Category" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

How to generate .appxupload file?

元气小坏坏 提交于 2019-12-13 19:25:52
问题 I am trying to build a package for Release on ARM CPU. When I built it with "Compile with .NET Native tool chain" checked, the package failed to build and threw me an error which states error : ILT0021: Could not resolve method 'System.Nullable<System.Double> $95_Windows.Graphics.Display.DisplayInformation.get_DiagonalSizeInInches()' . When I built it with "Compile with .NET Native tool chain" unchecked, there are no error and the package were successfully created, BUT the compiler generates

Does .NET 4.0 business API's work with Win 8 Metro Apps?

纵饮孤独 提交于 2019-12-13 17:27:06
问题 We have a huge sets of business APIs/assemblies developed in .NET 4.0 (most of those were upgraded from .NET 2.0). They are not currently exposed as web services. We would like to start Win 8 metro app development (using C#/XAML) based on those API's. Is it possible? 回答1: Another option is to target the Portable Class Library (PLC) http://msdn.microsoft.com/en-us/library/gg597391.aspx This way you can compile a single assembly to multi target both normal .net and Metro/WinRT .net. You will of

Listview applies a check to other listview items having a checkbox when page navigation is returned

久未见 提交于 2019-12-13 14:00:19
问题 I have a ListView of CheckBox controls in which a check mark is mysteriously applied to other items within the ListView when the page containing the ListView has navigation returned to it. Specifically, I apply check marks to some items within the ListView that contains roughly 300 items. I then tap a Button that invokes another app to launch, and then when I return back to my original app with the ListView and scroll down the ListView , I observe a pattern of mysteriously checked checkboxes

Grid Splitter Overlap

末鹿安然 提交于 2019-12-13 07:24:37
问题 I'm trying to create an "overlap" effect (for lack of a better term). There will be a splitter that when moved, exposes a different view of two similar images (e.g. between colored and grayscale). I plan on using CustomGridSplitter from WinRTXAMLToolkit (due to WinRT's lack of a splitter). I'm thinking of starting with a grid similar to: <Grid> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="10" /> <RowDefinition /> </Grid.RowDefinitions> <controls:CustomGridSplitter Grid.Row=

Stop YouTube Video on Back Button of Windows Metro App 8.1

纵饮孤独 提交于 2019-12-13 07:09:34
问题 I have a page on which i am showing multiple youtube videos as webviews. When i play any video, then correspoding video starts playing. But When I click on the back button of the App i should be stop then but its running in background(can hear voice of video). here is the code of back button: protected void GoBack(object sender, RoutedEventArgs e) { ((Frame)Window.Current.Content).GoBack(); } Tell me how i can dispose of this webview or can stop video. Thanks 回答1: First make sure that the

Wp 8.1 Webview scroll with the page contents

萝らか妹 提交于 2019-12-13 07:05:14
问题 I used webview in my project to display html contents. But it doesn't scroll with page( scrollviewer). I have set the height of the webview to the height of the content using java script. But it doesn't scroll. I also tried this custom control. It scrolls perfectly but it doesn't allow user interaction. I can't click on links. Basically they are overlaying a Grid on webview so that it scrolls but doesn't allow interactions. Is there any way that makes webview scrolls with page contents and at

How to expand a ListView Item on SelectionChanged event in Windows 10?

本小妞迷上赌 提交于 2019-12-13 06:22:31
问题 I am currently working with Windows 10 and I am using a ListView to display items based on my requirement. Now I want to expand ListView on the same page when User clicks on ListView Item and provide him with some options to make user experience easy. I am aware on how to implement ListView and display items using DataTemplate but I am not sure whether I can achieve my requirement using ListView. I want to achieve something like below: I want to display options like Contact, Add photo, etc on

Find out which Style Resource a Control uses

徘徊边缘 提交于 2019-12-13 06:18:48
问题 I'm searching for a way to find out which style resources a control uses. I.e. I'm currently trying to change the Brushes of the back Button in my app. Confusingly these brushes are partly located under the ResourceKey s AppBarItemPointerOverForegroundThemeBrush (etc.) instead of BackButtonPointerOverForegroundThemeBrush (which doesn't seem to change anything - side question: what's this resource for?). I couldn't find the the foreground theme brush resource for the normal ViewState at all.