windows-store-apps

Call file from another method

青春壹個敷衍的年華 提交于 2020-01-17 08:27:38
问题 Newbie question here. I have this file picker: public async void PickImage() { FileOpenPicker ImagePicker = new FileOpenPicker(); ... StorageFile file = await ImagePicker.PickSingleFileAsync(); // ... } And I want to use the file set by this image picker in another method. Something like this: private async void CreateButton_Click(object sender, RoutedEventArgs e) { ... the one from PickImage() v StorageFile copyImage = await file.CopyAsync(DateTimeFolder, "image", NameCollisionOption

Universal App design : how to use these controls Pivot or panorama ,Listview or Listbox?

こ雲淡風輕ζ 提交于 2020-01-17 08:21:30
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. Is there any control in universal app like Pivot or panorama as like windows phone 8 and windows phone 8.1 (silverlight) have ? 2. which is best to design for data binding Listview or Listbox ? 3. In c# we can write like

Universal App design : how to use these controls Pivot or panorama ,Listview or Listbox?

橙三吉。 提交于 2020-01-17 08:21:21
问题 I have just started to develop in universal app. I have developed app in Windows 8 store apps and also developing Windows Phone 8 and Windows Phone 8.1 (SilverLight) Apps. Question is related to universal app in Windows and Single UI which is created in App. Share folder. 1. Is there any control in universal app like Pivot or panorama as like windows phone 8 and windows phone 8.1 (silverlight) have ? 2. which is best to design for data binding Listview or Listbox ? 3. In c# we can write like

c# Dragging images inside canvas in windows store app fails

寵の児 提交于 2020-01-17 01:30:30
问题 I'm fairly new to C# and programming in general. I'm building a dummy project to understand how drag and drop works. At first, I begun moving around rectangles, limiting their movements inside the canvas, and they moved just fine. After that, I tried to make it a bit more complex by adding PointerEntered/PointerExited and replacing the rectangles with images. Re-sizing the images when the events PointerEntered/PointerExited occur works, but when I try to drag my images nothing happens. I

Windows Store App Ads shows only Microsoft ads

你离开我真会死。 提交于 2020-01-16 19:28:31
问题 I have created a windows store app. I included ads from Microsoft pubCenter. It has been published today and I downloaded it on my laptop and a friend's. In both occasions the ads only show Microsoft advertising ads. Nothing more, nothing less. I added a simple adcontrol line in my xaml as advised and in application id I inserted what was given in pubcenter and same in ad-unit. Is there something wrong with Microsoft Ads? 回答1: Microsoft Ads use an algorithm designed for targeted advertising

AppContainer Integrity Level

↘锁芯ラ 提交于 2020-01-16 05:32:07
问题 I'm currently trying to understand the mechanics behind the AppContainer that is used to sandbox WinRT applications. I've understood that AppContainers have their own integrity level, that blocks any read and write attempts to assets with a higher integrity level. But why can't those apps then don't access the data of other apps running with in the same integrity level? And how does the access to objects work when the app got the corresponding capability? I assume for example, that the camera

VisualStateManager.GoToState returns false and Visual State is not changed

倖福魔咒の 提交于 2020-01-16 04:35:08
问题 I have this XAML code: <Button x:Name="btnStartRecord" Visibility="Collapsed"> <Button.BorderBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="Black" Offset="0"/> <GradientStop Color="#FFF3883E" Offset="1"/> </LinearGradientBrush> </Button.BorderBrush> </Button> <Button x:Name="btnStopRecord" Visibility="Collapsed"> <Button.BorderBrush> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="Black" Offset="0"/> <GradientStop Color="

When does a PPL task execute on the UI thread?

感情迁移 提交于 2020-01-16 04:14:08
问题 When calling create_task is there a way to ensure that the task doesn't run on the UI thread? I want to be sure I'm not inadvertently calling wait inside a task that somehow managed to execute on the UI thread. 回答1: The create_task function won't spontaneously jump onto the UI thread: if you don't call it from the UI thread it won't execute there. You need to explicitly call the Dispatcher to get back. An apartment aware task (one which returns IAsyncAction or IAsyncOperation) will continue

Reading HID proxy card in Windows Store app

半世苍凉 提交于 2020-01-16 01:12:10
问题 I'm trying a PoC where in I'm trying to authenticate a user based on their HID card value. I don't have any specific API for the reader. The reader outputs plain number of the card by keyboard emulation. The PoC permits a user to authenticate through username/password or through HID proxy card. To simplify things I wanted to use a hidden TextBox to which the value from HID is read and a corresponding webservice is triggered from TextChanged event. I was unable to do so. Can anyone advice how

How to check the first date an app is installed?

六眼飞鱼酱① 提交于 2020-01-15 12:15:23
问题 I have a paid app and want to offer it as free for a few days in the Store. But only for those who installed it during these special days I want to show ads. How can I check if a user installed the app in a specific time range? I thought of these solutions: I could have a sign in previous packages and check it in this package. if it was not available this was the first install. I could save the date after installation since the first time. But these won't work now. Thanks. 回答1: You can get