windows-store-apps

Windows Store App and iFrame cookie

蓝咒 提交于 2019-12-12 01:44:11
问题 I have a Javascript Windows Store Application that hosts an iframe. The webpage inside of my iframe is not aware of my app, so it doesn't have any PostMessage interface to my app. The iframe will set a cookie when I 'log in' in the iframe. But in my app, I don't believe that there is a way that I can get the iframe cookie. Is this correct? What if the web page knows about my application? (i.e. I can change the webpage in the iframe) Do I use PostMessage? 回答1: You can use PostMessage that your

How to detect If AdRotator V2.1 is showing an Ad or an error occurred

放肆的年华 提交于 2019-12-12 01:07:49
问题 I want to update my UI based on the scenario when an Ad is being shown or an error occurred. I am using AdRotator v2.1. Looking at the source code it seems that the control would collapse if it could not serve an ad from various provider, and the IsAdRotatorEnabled would be set to false. But that property does not trigger an notification change. How can i detect if no ads are being shown? Enabled="{Binding AreAdsEnabled,Mode=TwoWay,FallbackValue=true,UpdateSourceTrigger=PropertyChanged}" 回答1:

Share data among multiple users of a WinRT app

大憨熊 提交于 2019-12-12 01:06:55
问题 We developped a Windows Store app (Windows 8) that gets files from the internet and stores them locally to make them available offline. You can think of it as a one-way synchronization that the app does on a regular basis. The problem is the amount of files is huge (around 500Mb) and the application can be used by different users on the same device. As the app writes the synchronized files in its LocalFolder ( ApplicationData.Current.LocalFolder ), and as this location is not shared amoung

'Button_Click' : is not a member of 'ButtonTest::MainPage'

帅比萌擦擦* 提交于 2019-12-12 01:02:59
问题 I'm new to C++ and Windows Store programming, and I'm stuck defining click handlers on buttons. I'm referring to these instructions: Add a Button control to a parent container. To assign a name to the button, set the x:Name attribute to a string value. To refer to a control in code, it must have a name. Otherwise, a name is not required. To assign a label to the button, set the Content property to a string value. To perform an action when a user clicks the button, add a handler for the Click

How do I set the target Device Family for my Universal App Project

社会主义新天地 提交于 2019-12-12 00:29:02
问题 I made an Universal App but I only want to publish it for Desktops and not for Phones yet. I also have a Windows Phone 8 App of the same name that I want to keep for all windows phone 8.1 and windows phone 8 Users. How can I accomplish this? The store just doesn't seem to have any options to allow this. Any help? 回答1: Windows 10 Mobile is still in preview. Only Desktop has RTMed. When Mobile is available there should be a checkbox on the dashboard. See Device families at https://msdn

Change ListView item selection style

对着背影说爱祢 提交于 2019-12-11 22:28:10
问题 How do I change the ListView item selection style in a ListView in a Windows Store app? I want to change color, margins and remove the checkbox. I have tried to change all kinds of templates in Blend but I can’t figure out this one :-(. XAML-code: <Page x:Class="WindowsStoreListViewSelectionTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:WindowsStoreListViewSelectionTest" xmlns:d="http:/

Force redraw on ListView in windows store app

六月ゝ 毕业季﹏ 提交于 2019-12-11 22:06:05
问题 I am using @Romasz 's answer from Alternating Colors of rows in ListView in Windows Phone 8.1 to give alternate background to ListView items. I change it in order to highlight the selected item, like this: <local:AlternateConverter CurrentList="{Binding ElementName=myList, Path=ItemsSource}" HighlightIndex="{Binding ElementName=myList, Path=SelectedIndex}" x:Key="AlternateConverter"/> Note: I removed the AlternateBrushes property as I only need static colors and add in HighlightItem property

Custom VisualState not being set in WinRT XAML

风格不统一 提交于 2019-12-11 21:56:52
问题 I'm trying to create a custom textbox in WinRT XAML. I want the textbox to highlight red when there is an error with the entered data. So first off I've modified the TextBox Temple and I've added a new VisualStateGroup (CustomStates - with HasError State) and I've also change the Focused group: <Style TargetType="TextBox"> .... <VisualStateGroup x:Name="CommonStates"> <VisualState x:Name="Focused"> <Storyboard> <ObjectAnimationUsingKeyFrames Storyboard.TargetName="BorderElement" Storyboard

WRL Project Template not found for Visual Studio 2013

时光怂恿深爱的人放手 提交于 2019-12-11 21:54:43
问题 I am trying to follow these steps on MSDN for building a WRL-based C++ WinRT component. However in step #3, I am unable to find anything related to WRL in the results: In the Search online templates box in the upper right corner, type WRL Class Library. When the template appears in the search results, choose the OK button) How can I get the WRL Project Template for Visual Studio 2013? 回答1: Update : The template on the VS Gallery has now been updated and is now available for Visual Studio 2013

How to create report for Windows Store App?

☆樱花仙子☆ 提交于 2019-12-11 20:57:04
问题 I'm developing a LOB app targeted to windows store and I'd like to know what are the options to create custom reports for it. The user may want to, besides printing, export to PDF or CSV. I don't know which API there is for windows store apps. Googling didn't help much. If there isn't any tool to create the report, what would you guys suggest? Looking the PrintSample from Microsoft, it prints the content of a grid component. I doubt how to set the size of page in this case so I can format the