FAQ Database Discussion Community


XAML Style common ancestor

c#,xaml,windows-runtime,windows-store-apps
I have this style targeting TextBlock <Style TargetType="TextBlock" x:Key="TahomaBase"> <Setter Property="FontFamily" Value="Tahoma"/> <Setter Property="HorizontalAlignment" Value="Left"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="TextWrapping" Value="NoWrap"/> </Style> Can I some how change the Target type to a common ancestor for textBox and Combobox in order for me to use the style as a base on...

Cant get twoWay Binding from Xaml to ObservableCollection Working

c#,binding,windows-store-apps,winrt-xaml,inotifypropertychanged
Im attempting to bind a gridView to a ObservableCollection in a Windows Store App. My problem is I get the data but the set does not seem to work public class ValveData : INotifyPropertyChanged { private string valveName; private decimal waterMl; private decimal waterEc; private decimal waterPh; public string ValveName...

Can I sleep/hibernate the PC from a windows store app?

hibernate,windows-store-apps,sleep
I just want to make a button to sleep the PC: <Button Clicked="Button_Clicked">Sleep</Button> ...

Unable to resolve property '%1' while processing properties for Uid '%0'

c#,windows-runtime,windows-store-apps,windows-phone-8.1,windows-8.1
I'm trying to localize my WP 8.1 app. Here is a part of Strings/en-us/Resources.resw: <data name="SampleProperty.Text" xml:space="preserve"> <value>Sample text</value> </data> <data name="SampleProperty.SomeRandomKey" xml:space="preserve"> <value>SAMPLE TEXT</value> </data> Also one of application pages contains the following code: <TextBlock x:Uid="SampleProperty" /> But the app throws an exception in process of navigation to that...

Windows Store App - Dynamic Binding

c#,windows,windows-store-apps,winrt-xaml
Need a second set of eyes. I am dynamically populating a hub control with text boxes, check boxes, etc... As I do this I am adding databinding to each control as I add it. The problem is that any changes made after the load event are not registering properly. Basically...

Azure StorageException is inaccessible due to its protection level

c#,azure,visual-studio-2013,windows-store-apps,windows-azure-storage
Looks like something wrong with my VS2013, because this code: try { TableResult tblr = await cloudTable.ExecuteAsync(...); } catch ( StorageException ex ) { Debug.WriteLine( ex.Message ); } Gives me this error: Microsoft.WindowsAzure.Storage.StorageException is inaccessible due to its protection level Everything else is working well in this windows store project....

MultiBinding(WPF) alternative for Windows Store Apps

windows-runtime,windows-store-apps,winrt-xaml
I am developing a Windows Store App which displays fields of specific types throughout the App and allows the user to change their preference of units for display of that type of field. Using an example of fields related to Heights, if using MultiBinding from WPF (not available in WinRT)...

Windows Store Apps, download multiple files with threads

c#,multithreading,windows-store-apps,httpclient
I have this following method that I use to download a file's content: public async Task<String> DownloadFileService(String filePath, string id) { string resposta = string.Empty; try { using (var httpClient = new HttpClient { BaseAddress = Constants.baseAddress }) { string token = App.Current.Resources["token"] as string; httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);...

Multiple item template inside grid view in Windows 8.1 store app

c#,xaml,windows-store-apps,winrt-xaml,windows-8.1
In a gridview item template , is it possible to have multiple templates ? In my screen i am having set of icons in a single section of GridView control. I wqant to have one of the icon to have a larger dimension. How can i achive it. <GridView> <GridView.ItemTemplate>...

Can't save PdfPage as a BitmapImage to disk

c#,xaml,windows-store-apps,microsoft-metro,winrt-xaml-toolkit
I'm trying to save the pages of a PdfDocument into the disk as a set of BitmapImage's, for which I'm using the extensions provided by WinRTXamlToolkit. PdfPage page = pdfd.GetPage(0); // pdfd is a loaded PdfDocument InMemoryRandomAccessStream str=new InMemoryRandomAccessStream(); await page.RenderToStreamAsync(str); BitmapImage bmp = new BitmapImage(); await bmp.SetSourceAsync(str); WriteableBitmap wb...

Hash and Salt string in Windows Store App

c#,hash,windows-store-apps,salt,sha
I have been trying to do a Hash and salt on a password that I have to save on the device. This is a code that I have been using, but I can't find System.Security.Cryptography and the RNGCryptoServiceProvider in the Windows Store Framework. public static string CreateSalt(int size) { var...

StorageFile filled with stream, not replacing the File

c#,windows-store-apps,itextsharp,filesavepicker
I have a Problem using the FileSavePicker. I always thought, the FileSavePicker would replace the file, when you Chose the Name of an existing file. It even asks "theres already some file with that Name, do you want to replace it?" when you click on save. In the next steps...

GridView with 2 rows and horizontal scroll

c#,xaml,gridview,windows-runtime,windows-store-apps
im trying to achieve something looking like this using a GridView in a Windows Store App project i can get my items in a single line with horizontal scroll, but i want to have a GridView with 2 rows. <GridView Grid.Row="1" Margin="22,0,0,0" Style="{StaticResource GridViewStyle}" SelectionMode="None" ItemsSource="{Binding UserPhotos}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"> <GridView.ItemTemplate>...

Public IDictionary member of ViewModel class will not serialize via DataContractSerializer

c#,windows-store-apps,datacontractserializer
I have a class that's my view model for a windows 8.1 universal application. I want to be able to serialize / deserialize this class as necessary. I have this working with the exception of the IDictionary public property. This property is being skipped. When I explicitly tell the DataContractSerializer...

Windows Store App (sideloaded) and communication with REST services

c#,rest,windows-store-apps
I have some problems with connecting to my REST web service from my Windows store app (side-loaded) on tablet with windows 8.1. Web service is publish on company server and device belongs to domain so both devices are on the same network (intranet). I’ve tried different capabilities: Only ‘Private Networks...

convert a bitmapImage to byte array for windows store

c#,vb.net,windows-store-apps,windows-store
I need to know how to convert a bitmap-image to a byte array for windows store application. Here is what I have tried but it does not store the bitmapImage Dim file As StorageFile = Await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync() Dim stream As IRandomAccessStream = Await file.OpenAsync(Windows.Storage.FileAccessMode.Read) Dim decoder As BitmapDecoder = Await...

Different builds of SQLite in the same Windows Store app bundle

windows,sqlite,sqlite3,windows-store-apps,64bit
I'm having a problem deploying an update of my app to the store. The app runs SQLite, and I've recently discovered it throws an error on certain x64 architectures. BadImageFormatException: An attempt was made to load a program with an incorrect format. I understand what this means. The x64 version...

Selective coloring of the text in TextBox (Windows Store App)

c#,textbox,windows-store-apps,winrt-xaml,text-coloring
Code in my MainPage.xaml <TextBox x:Name="TextTextBox" Text="{Binding Path=Text, Mode=TwoWay}" TextWrapping="Wrap" /> . . . <!--Button with some Command--> <Button x:Name="SearchButton" Content="Search" HorizontalAlignment="Center" Command="{Binding Command}"/> Code in my ViewModel (property that is binded with TextBox) public string Text { get { return ssModel.Text; } set { ssModel.Text = value; OnPropertyChanged(); }...

Microsoft App Submission Dashboard page sets AdUnitId to “none”?

c#,.net,windows-phone-8,windows-store-apps
I have submitted a application for Windows Phone 8 / 8.1. I have created a pubCenter account from Microsoft Pubcenter and generated the ApplcationId and adUnitId too. This two fields I have set in the mainPage.xaml so that it display advts. Now I have submitted the app in the store...

How do I Random all the items in the listbox?

c#,xaml,random,listbox,windows-store-apps
I don't want to random number, I want to random all the items in the listbox in C# XAML Windows Store App?? Anyone have code for that or have any idea how to do that? I have this code of listbox <ListBox Name="Playlist" Background="White" DoubleTapped="Playlist_DoubleTapped" KeyUp="Playlist_KeyUp" Foreground="Black" SelectionMode="Single" SelectionChanged="Playlist_SelectionChanged" ScrollViewer.VerticalScrollMode="Enabled"...

How can I sign my Windows Store app from Window Store certificate?

visual-studio-2013,windows-store-apps,certificate,sign
I have just bought my developer account from the Windows Store, and I would like to sign my app before uploading. When I go inside the packaging and then I click on the choose certificate button, I see following options: Pick from certificate store Select from file Create test certificate....

adal javascript windows store app token

javascript,asp.net-web-api,windows-store-apps,adal
I have a javascript windows store app that is authenticathing with AAD via Microsoft.Preview.WindowsAzure.ActiveDirectory.Authentication library. It works against an ASP.NET WebAPI hosted in Azure. It works fine, it prompst the user to login (windows login service), once logged the user can work and is not asked to log in again....

UnAuthorizedAccessException on StorageFolder.GetFolderFromPathAsync while having access through FilePicker

c#,windows-runtime,windows-store-apps,windows-10
I try to read files from a network location. But I keep getting an UnAuthorizedAccessException. I pick the StorageFolder through StorageFolder.GetFolderFromPathAsync but listing the files throws the exception. When I pick the same folder through the FolderPicker it works. So I tried pinpointing the problem with this code: FolderPicker picker...

Frame.Navigate() vs this.Frame.Navigate()

c#,windows-8,windows-runtime,windows-store-apps
What is the difference between Frame.Navigate() and this.Frame.Navigate() in a Windows 8.1 Store app? What difference does this Frame.Navigate(typeof(Login)); have with this? this.Frame.Navigate(typeof(Login)); ...

Package.appxmanifest: Identity-property and certificate (correlation?)

c#,windows-store-apps,certificate,windows-store
I'm confused. As with a lot of stuff with Microsoft development process regarding Windows Store Apps. I'm soon going to submit my app to the Windows Store but I'm uncertain about the following in my Package.appxmanifest file. <Identity Name="MyCompanyName.123456789" Publisher="CN=ABCABCAB-ABCA-ABCA-ABCA-ABCABCABCABC" Version="1.0.0.0"/> This is obviously an example and something similar is...

Value does not fall within the expected range windows store app

c#,xaml,listview,windows-store-apps,windows-8.1
My xaml codes it this: <Page x:Name="pageRoot" x:Class="wCommander.OrderListing" DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:wCommander" xmlns:common="using:wCommander.Common" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"...

Can't Navigate to next Frame [duplicate]

wpf,navigation,windows-store-apps,windows-phone-8.1
This question already has an answer here: Navigate to another page at OnNavigatedTo? 1 answer I've got a problem with navigate to next page in section: protected override void OnNavigatedTo(NavigationEventArgs e) { Debug.WriteLine("Test1"); Frame.Navigate(typeof(LoginView)); Debug.WriteLine("Test2"); } The method Frame.Navigate didn't work at all if only it's call in OnNavigatedTo....

AccessViolationException in Windows.Media.SpeechSynthesis.SpeechSynthesizer constructor

c#,windows-runtime,windows-store-apps,sapi
My app is getting an AccessViolationException when calling the default constructor of the Windows.Media.SpeechSynthesis.SpeechSynthesizer class. This only happens on one particular machine (so far at least), which is a Surface Pro 3 running Windows 8.1. All other machines with the app installed do not experience this issue. My code is...

Caching Views in XAML changes appearance?

xaml,caching,windows-store-apps
I'm caching Views in XAML in order to improve performance (don't need to load the controls again). Does this make sense / improve performance of loading controls? Problem is, although I'm caching / loading the same thing, it seems when I use the Cached View, it has a different appearance....

Collapsed Grid in StackPanel change position of other controls in StackPanel

c#,xaml,windows-store-apps,windows-8.1,visibility
I have this Xaml Page: <StackPanel Orientation="Horizontal"> <Grid x:Name="inkGrid0" Margin="0,0,0,0" HorizontalAlignment="Left" > <Canvas x:Name="inkCanvas0" Width="570"> <Canvas.Background> <ImageBrush x:Name="DImage0" ImageSource="{Binding}"/> </Canvas.Background> </Canvas> </Grid> <Grid x:Name="inkGrid1" Margin="0,0,0,0" HorizontalAlignment="Right" > <Canvas x:Name="inkCanvas1" Width="570"> <Canvas.Background> <ImageBrush x:Name="DImage1"...

How to exit full screen mode for media element in windows 8.1 store app

c#,xaml,windows-store-apps
Hi guys I have added a video to my application that plays automatically when the page loads and when the video is double tapped it goes to full screen. Here is my code. c# private void mediaSimple_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e) { mediaSimple.IsFullWindow = true; } xaml <MediaElement x:Name="mediaSimple" Source="ms-appx:///Videos/1-Learning-how-to-manage-things-yourself.mpg" HorizontalAlignment="Stretch"...

Linq, join and null how to check a value

c#,linq,windows-store-apps
I try to join two collection into one. If my second is empty I just need a null value, here is my code (it's correct if com is not empty) var tmp = List{ Elem {long UserID; string tmpContent} }; var com = List{ Comment{long UserID; string Content} } ;...

RichEditBox two-way binbing does not work [Windows Store App]

c#,data-binding,binding,windows-runtime,windows-store-apps
I have RichEditBox and class with DependencyPropert: public class RichTextC : DependencyObject { public static string GetRichText(DependencyObject obj) { return (string)obj.GetValue(RichTextProperty); } public static void SetRichText(DependencyObject obj, string value) { obj.SetValue(RichTextProperty, value); } public static readonly DependencyProperty RichTextProperty = DependencyProperty.Register("RichText", typeof(string), typeof(RichTextC), new PropertyMetadata(string.Empty, callback)); private static void callback(DependencyObject d,...

Do ApplicationData.localSettings get cleared when the app gets updated?

windows-store-apps,windows-store
I'm working on modern Windows 8 app and wanted to figure out if Windows.Storage.ApplicationData.current.localSettings (msdn doc is here) get cleaned up when the app gets updated by the store.

Enable drag/drop and reordering after long click on GridView control (XAML)

c#,xaml,windows-store-apps
I'm using the Items Page template from the Windows 8.1 Windows Store Apps templates in XAML. The page features a large GridView control with multiple item elements. I would like to enable the dragging and reordering of items, but only after a user long clicks one of the items (similar...

Element is already the child of another element - WinRT

c#,windows-runtime,windows-store-apps
I need to develop a structure similar to Windows 8 Start screen. I have a method which I call to populate my RecordTile. Method is like, public static void fnShowTiles(List<RecordTile> objList, Grid objGrid) // objGrid is root Grid which holds this structure { try { // copy the list into...

ListBox selected item background color

xaml,windows-store-apps
Trying to make a tab control out of a listbox. If the listboxitems are just text, then it's easy to see which tab is selected, but as soon as I add an image/path as the content of the listboxitem, it no longer shows it as being selected when clicked. The...

C# Windows APP: Adding UIElements to Grid/GridView

c#,windows,windows-store-apps
im coding a Windows 8 appliation with C#, but im stuck since friday with some UI adjustment. I have a GridView and i want to add UIElements on the GridView, so no problem: foreach(TouchpadButton btn in m_ButtonList) { mainGrid.Items.Add(btn); } Thats how i add them, but im reading them out...

How to introduce a delay in actions for my Windows 8 app

c#,windows-store-apps
I wasn't successful in searching the internet for what I am trying to accomplish (probably because I dont know what I need!). I so far have developed a quiz game that has several different modes and a 60 second timer for each questions. My only issue remaining, is that I...

Local file storage during development of a Windows Store App

visual-studio-2013,windows-store-apps
So I'm getting started in windows store apps. It is also my first experience with Visual Studio. Windows 8.1 for that matter, too :P I'm trying to figure out how local file storage works during the dev phase of this project. I understand the concept of how the appdata directory...

Error APPX1706: creating winrt dll with xaml

xaml,windows-phone-8,windows-runtime,windows-store-apps
I built a WinRT(Windows phone 8.1) dll with Page.xaml and App.xaml files. Next, I add reference to this winmd in wp8.1 application project. And I get following error: error APPX1706: The .winmd file 'project.winmd' contains type '?A0x32772d97.project_XamlTypeInfo.XamlMetaDataProvider' outside its root namespace 'project'. Make sure that all public types appear under...

WCF Service times out from windows 8 unit test project

wcf,unit-testing,windows-store-apps,windows-8.1
When the application is run, WCF service works as expected. When the exact same code is called from a unit test project, the error below occurs. Is there something special needed for windows 8 test projects to access the WCF service? Result Message: Test method DataServiceTests.MyTest threw exception: System.AggregateException: One...

Navigation from OnDoubleTapped method

c#,windows-runtime,windows-store-apps,control,pushpin
I've created a customized Pushpin ( Windows store) and i need to navigate whenever the control double tapped/clicked So i figured out that OnDoubleTapped(DoubleTappedRoutedEventArgs e) will do it,but when i tried .. it didn't work. The following code is from the Control code-behind protected async override void OnDoubleTapped(DoubleTappedRoutedEventArgs e) {...

Transfer images from server to local folder Windows Store App

.net,vb.net,web-services,windows-store-apps,file-transfer
Here is my situation : I have a windows service with access to the files on the server A Windows Store Apps with access to said service Windows Store Apps don't have access to the bitmap object (only bitmapimage) The service has access to bitmap but not bitmapimage The service...

Load local text file with Windows Metro Javascript

javascript,windows-store-apps
I have tried to no avail, to find how to load a local text file in JS. By local I mean a file in the app's directory. In python I would do this: file = open('file.txt','r') loadedList = file.readlines() file.close() Is there a JS equivalent without jQuery. This is a...

Win8/RT Using a custom (.ttf) font

c#,xaml,windows-8,windows-store-apps,winrt-xaml
I'm using this code in a Grid inside a Page to make my TextBlock use a custom font from /fonts/pirulen rg.ttf. <TextBlock HorizontalAlignment="Left" Margin="617,49,0,0" Text="I Am the New Font" FontFamily="fonts/pirulen rg.ttf#Pirulen Rg" /> The font style is recognized when this Textblock is opened in the Property editor, but not so...

Editing the list of apps that appear when i share a file in Windows Store App

c#,windows-runtime,windows-store-apps
On a Windows Store App project im using the This method to send a email with an attachment, and it is working well but i would like to know if there is a way to define wich apps appear on the share list, for example i don't want the crossed...

How to access an element in UserControl from the MainPage?

c#,windows-store-apps
I have a UserControl that is an ItemTemplate for a FlipView that exists in my MainPage. This UserControl contains a Canvas which name is x:Name="InkCanvas". And I want to initialise this Canvas and access it from my MainPage.xaml.cs: private readonly CanvasManager m_CanvasManager; m_CanvasManager = new CanvasManager(InkCanvas); Setting it to static...

Windows Store Apps unavailable in VS 2015 RC

c#,windows-8,windows-store-apps,visual-studio-2015
I am trying to create my first Store app for Windows 8. I installed VS2015 RC and the Windows Software Development Kit for Windows 8 (I followed the instructions at this page). Unfortunately I can't see the Windows Apps templates in VS, differently from what the link shows . I...

Pointer events are not firing when HubSection Manipulation mode is set to System

c#,windows-store-apps,windows-phone-8.1
Even the CoreWindow doesn't receive any events in that case (on WinPhone device or emulator). How I can track pointer position and state if PointerMoved doesn't firing? I've added handlers to CoreWindow, page - no matter. I've used AddHandler with last parameter set to "true" - it doesn't change things.

Why would you use DataTemplate in a ListView?

c#,wpf,xaml,windows-phone-8,windows-store-apps
could someone please explain to me what is the difference if I use DataTemplate inside the ListView in XAML? I have used ListView to display the content from my ObservableCollection without using DataTemplate and with DataTemplate it seems to look exactly the same? Why then would I want to use...

Activator with MvvmCross and PCL

xamarin,windows-store-apps,mvvmcross
I have a very strange problem. Currently, I am porting a Windows Universal App (Win 8.1 + WinPhone 8.1) with Prism to a CrossPlattform Solution with MvvmCross. First, a big thanks for all the work with MvvmCross - it is amazing. My problem is now with the System.Activator class. I...

Collecting All The User Reviews From The AppAtore

ios,windows-store-apps,app-store
I'm doing a research on the app store reviews. My experiment needs a huge number of user reviews from the app store, and I need to collect it for 6 months. I have found a scraper that collects the user reviews from specific apps by entering their ids. I wonder...

Cropping Image with Xamlcropcontrol for UI and WriteableBitmapEx

c#,windows-store-apps,winrt-xaml,writeablebitmapex
For the past week I've been researching as much as i can on how to add the ability to crop a profile image in my windows store app. So far I have looked at the Microsoft solution to this but have decided to go a different route. I downloaded a...

Application configuration files for Windows Universal app

windows-phone-8,windows-store-apps,windows-universal
I have developed a windows universal app 8.1 for tablets and phones. Is there any equivalent of App.config file what we used to have in desktop applications in win 8.1 tablets and phones ? Searching over the net revealed nothing. Thanks and Regards, Saurav...

CameraCaptureUI in some container

c#,camera,windows-runtime,windows-store-apps
I like to create screen in my windows store application with default CameraCaptureUI. CameraCaptureUI can be started with following code var cameraUI = new CameraCaptureUI(); var capturedMedia = await cameraUI.CaptureFileAsync(CameraCaptureUIMode.Photo); This code open camera on whole sceen. What I need is running camera inside my winstore application e.g. in some...

Where is the Conversion Namespace in Windows Store Apps

.net,namespaces,windows-store-apps,windows-8.1
I am trying to write my first Windows Store App and am using some code from an old project. I am developing on a Windows 8.1 Pro machine with Visual Studio 2013 Express. I have no idea what people are calling the version of .NET I'm targeting and therefore, cannot...

Caliburn Micro get service instance

c#,windows-store-apps,windows-phone-8.1,caliburn.micro
I am using Caliburn Micro for WinRT apps. I have registered a service in my App.xaml.cs see sample code below public sealed partial class App { private WinRTContainer _container; public App() { InitializeComponent(); Resuming += AppResuming; } protected override void Configure() { _container = new WinRTContainer(); _container.RegisterWinRTServices(); _container.Singleton<ISampleService, SampleService>(); //some...

ObservableCollection to 1 of 3 listviews depending on some property

c#,listview,visual-studio-2013,binding,windows-store-apps
I currently have an ObservableCollection named MyList that is binded to the itemsource of on listview. It also adds and removes items from MyList. What I want is to add items in each listview based on some criteria. More specific, If the property Status is "Yes" the item should go...

How do I get the text, not the name of the comboboxitem, from a combobox with C# in Windows Runtime?

c#,xaml,windows-store-apps
I read many other questions about this and the answers don't work for me. How can I get the text content of a combobox in C#? This is a Windows Store app, not WPF, nor Silverlight. <ComboBox Name="ColorListSortSelection" Grid.Column="1" Margin="24,5,24,8" VerticalAlignment="Top" SelectedIndex="0" HorizontalAlignment="Stretch"> <ComboBoxItem>Sort By HSB</ComboBoxItem> <ComboBoxItem>Sort By SBH</ComboBoxItem> <ComboBoxItem>Sort...

Windows Runtime App TypeCode

.net,vb.net,windows-store-apps
I am trying to port the Basic Dynamic LINQ VB Example by Scott Guthrie to use in my Windows Store App on my Windows 8.1 Pro machine. The TypeCode enum and its related functions are no longer available (Source: MSDN social Post titled: "Is the standard enum 'TypeCode' omitted from...

How to externalize properties in a Windows Store App

javascript,.net,windows-store-apps
I'm working on a Windows Store App (JavaScript/HTML/CSS) that will be deployed directly to devices in our enterprise. I want to keep the datasources (urls to Restful web APIs) as part of the configuration rather than built into the app itself so that I can set them during deployment (e.g....

Add striped background in windows store app

c#,xaml,windows-store-apps
I want to change the background of a grid to stripes as shown in the image below. How can I change solid color background to these kind of striped ones in xaml . ?...

CameraCaptureUI in Windows 8 application takes a mirrored photo

c#,windows-store-apps,bitmapimage
I coded my service thate takes photos in my windows 8 application. I used CameraCaptureUI API. It works but the result, the image taken is mirrored : the left is in right and vice-versa. I searched in the PhotoSettings of CameraCapture and searched in the internet, but nothing. I was...

MediaCapture VideoStabilization fails with 0xC00D4A3E

c#,windows-store-apps,windows-universal,windows-10
I'm working on a video recording app that supports the VideoStabilization effect, but when I start recording, I receive the following through the MediaCapture.Failed event almost instantly: The sample allocator is currently empty, due to outstanding requests. (0xC00D4A3E) It only happens when I use the recommended configuration from the effect,...

How to add a simple calendar to my windows store app

visual-studio-2013,calendar,windows-store-apps
I'm working on a Universal windows store app and I want to add a simple calendar so that users can add birthdays of their friends and save them and some other stuff. Is there any simple way to do this? PS: Using Visual Studio 2013...

image slideshow with dispatcher timer in windows store apps

c#,image,windows-store-apps,windows-8.1,slideshow
I want to make slideshow image with dispatcher timer in my windows store apps. But, i have a problem: if the image has reached the final image, the slideshow do not want to repeat the slideshow from the first image, but the second image directly. For example: I have 5...

Custom httpClient filter through exception when server is down

c#,multithreading,windows-store-apps,windows-phone-8.1,httpclient
I am new to windows store apps. I am trying to add custom filter to HttpClient it works fine but when the server is down the catch block return null which causes the system to through System.AccessViolationException. how should i handle that case. public IAsyncOperationWithProgress<HttpResponseMessage, HttpProgress> SendRequestAsync(HttpRequestMessage request) { HttpResponseMessage...

Save/Get ObservableCollection to/from Roaming

c#,json,windows-store-apps,observablecollection,win-universal-app
I'm making a Universal windows store app and I have an ObservableCollection. What I want is to save the data from the ObservableCollection somewhere so that the data can sync between desktop and phone that have the same universal app, and then I need to be able to get this...

Encrypt & Decrypt Local Images in Windows Store App

c#,encryption,windows-store-apps,base64,windows-8.1
I'm building a Windows Store App including a local folder of Images. I want to protect all the Images so they can't be accessed from: C:\Users[username]\AppData\Local\Packages\LocalState\Settings\settings.dat I know I should encrypt and decrypt the Images using the DataProtectionProvider class, but the documentation only shows how to encrypt/decrypt strings... How should...

How to call a function in Windows 8 app?

javascript,html,windows-store-apps,windows-8.1
I created a function like this: text: function () { document.getElementById("id").innerText = "Hello"; } I tried to call this function from another function like this and it doesn't work: anotherFunction: function () { this.text(); } The error I get: Unhandled exception at line 89, column 21 in ms-appx://b9f1ea0e-9eeb-41e4-a788-92c282715e21/pages/game/game.js 0x800a01b6 -...

Creating a marquee lookalike in Windows Store Apps

c#,windows-runtime,windows-store-apps,marquee
im trying to create the equivalent of this(html) <marquee behavior="alternate">Your bouncing text goes here</marquee> in a Windows Store App, with C# is there any control that can do this or do i have to create a custom one?...

Is legacy winsock available for windows store apps? [closed]

c#,windows-store-apps,winsock
I know that code on windows store which used socket needed to use the StreamSocket class instead of the legacy winsock API (Socket class) And it is clearly something that prevent me from migrating my open source library whose lots of app would depends. Now, I've seen that VS 2013...

Windows XAML: Replacement for WPF TextBox's CharacterCasing

c#,xaml,user-interface,windows-store-apps,converter
I have a TextBox that whenever a user types into it I want the text to only be uppercase. For example, if I type in "abc" the actual text in the TextBox and in the backend binding should be "ABC". In WPF there is the CharacterCasing property, but I can't...

How can I create a StorageFile object from URI?

javascript,html5,windows-runtime,windows-store-apps,winjs
I'm working on a HTML+JS app. I have to launch image file from Internet in native photo app. Code to launch: var uri = new Windows.Foundation.Uri("http://someuri.com/somefile.JPG"); Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri).then( function (file) { // Launch the retrieved file using the default app Windows.System.Launcher.launchFileAsync(file).then( function (success) { if (success) { // File launched }...

How to playback videos with YouTube API v3 in Windows Store apps?

c#,xaml,windows-store-apps,youtube-api,youtube-data-api-v3
I created a Windows Store app with C# and XAML to playback YouTube videos but since YouTube shutdown their Data API v2, my app fails playing videos. What should I do to play videos with Data API v3? I have been using the Microsoft Player Framework with this code: XAML...

Issue with DispatcherTimer for a Countdown clock

c#,windows-store-apps
I have started developing a quiz app that will have a 60 second count down for each question. I searched other issues but could not find my specific issue. When the first question is displayed the screen dsplays "60" and the countdown proceeds normally. However, when the second questions is...

Force the App to become on Portrait View when clicking a Button

c#,windows-store-apps,windows-8.1,screen-orientation
On a certain ButtonClick event, I need the app to turn to Portrait View even if the user is holding it in the Landscape View. The ApplicationView only has a GetForCurrentView().Orientation string, not a Set. How can this be possible?

Is it possible to use System.Net.Mail in a Windows App?

c#,windows-store-apps
I was surprised to not find System.Net.Mail in my Windows App. Is there any way I can use/import that namespace or the SmtpClient class in my Windows App project?

Wizard Design for modern UI (Windows 8.1)

windows-8,windows-store-apps,windows-8.1
I am planning to create a Windows 8.1 store app. In my app, I need to show a wizard control. Can anyone give me a good example of Wizard implementation in a store app? I just need the UI design......

WinRT-xaml-Toolkit: Line Series with median Line

xaml,windows-store-apps,winrt-xaml,silverlight-toolkit,winrt-xaml-toolkit
Is there a way to implement a median Line using this lib? The only way I think could work is adding a new LineSeries and add a median for each Value in my Data-LineSeries Something like this: <charting:Chart> <charting:Chart.Series > <charting:LineSeries ItemsSource="{Binding Articles}" Title="Test Title" Height="400" Width="400" IndependentValuePath="dateTime" DependentValuePath="price" >...

Windows store app ItemsControl HTML-table-like behavior

wpf,windows-store-apps
I'm trying to make a control to display custom list of checkboxes, like at the image: My current implementation uses ItemsControl that has VariableSizedWrapGrid as an ItemsPanelTemplate. But it makes all items same sized... I can't figure out how to make cells sized by content just like in HTML table....

How to open Popup by clicking on grid view item in windows store app?

c#,xaml,windows-store-apps
I want to open popup by clicking on button in gridView element, inside popup I have three options by clicking on that option I want to navigate to another page with the id of the element i want to open popup on click on button inside the gridView element my...

Stopping background audio task on app termination

windows-runtime,windows-store-apps,windows-phone-8.1,background-audio
Due to the way that BackgroundAudio task and app lifecycle are built up, there doesn't seem to be a way to detect actual closing of the app and stopping its background task at this point. This creates an odd situation for the user, where she can try to forcibly terminate...

Remove item from list based on listview selected item

c#,listview,visual-studio-2013,windows-store-apps,selecteditem
I know this might sound a little basic but I'm stuck and I'm not sure how to proceed. This is the Main Class: public sealed partial class MainPage : Page { private ObservableCollection<MyClass> MyList = new ObservableCollection<MyClass>(); private void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e) { MyList.Add(new MyClass("Hello", "World")); MyListview.Items.Add(new MyClass("Hello", "World"));...

Get folder from windows service(system.io) to Windows store App (Windows.Storage)

.net,vb.net,windows-store-apps,windows-8.1,storage
I currently have an application which needs to retrieve images from a server and copy them locally on a tablet. The problem is that I don't have access to the server from my application. This is why I use a Windows Service to get data from my database or in...

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

windows-store-apps,windows-8.1,ads,adrotator
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...

How to handle mutiple async methods from running?

c#,asynchronous,windows-store-apps,winrt-xaml,winrt-async
How can i know if an async(awaitable) operation is already running and waiting for completion in the application. I have two buttons in a view each binded to two differrent async methods. If button1 is clicked and the async is started and waiting for its result. And at that time...

How to create the special toast and swipe down on lock screen like Skype in win8.1?

c#,windows-store-apps,windows-8.1,skype,lockscreen
In win8.1, we can swipe down on lock screen to open camera. And also can answer a Skype call from the lock screen. http://webwereld.nl/development/79224-skype-omzeilt-lockscreen-windows-8-1---update http://www.stckwt.com/index.php?route=product/product&product_id=137 I want to create a windows store App like Skype. When someone call, it will show a special toast : user can also choose how...

Add music to windows 8.1 app - Visual studio 2013

windows,visual-studio-2013,windows-store-apps
I'm creating a windows app , windows 8.1 app, using visual studio 2013. i want to add a background music to it. how to add it?...

Hub/Pivot App template breaks when navigated

javascript,html5,windows-store-apps,windows-phone-8.1,winjs
I using universal app model, Hub/Pivot App template. There's some bug with template. When I navigate from hub.html to other html-page (created as PageControl) and go back then Hub/Pivot layout breaks! This pic clearly show you what happens: screenshot. What I'm doing: 1. Create PageControl as it is written 2....

How to show Windows Phone application to client before publish in store

windows-phone-8,windows-phone,windows-store-apps
I have developed Windows Phone Silverlight application (support 8.0 and 8.1) for my client request. The client is goint to publish the application in WP app store, but first he must check on his phone if everything is OK with the application. The application was developed with Visual Studio 2013,...

Working with MIDI in Windows Store App (Win 8.1)

c#,audio,windows-store-apps,midi
My goal is to receive MIDI messages in Windows Store Apps. Microsoft has delivered an API called Microsoft.WindowsPreview.MidiRT (as a nuget package). I managed to get a midi port, but MessageReceived event is not arised, although I'm pressing keys on my MIDI keyboard, and other MIDI programs show me that...

Check if a character typed in a PasswordBox is numeric or not

c#,xaml,windows-store-apps,windows-8.1
I have researched a little and it seems that there is not InputScope for passwordboxes in xaml. I'm setting up a pin field and only want numbers. if figure i will need to check the if the key pressed is numeric in C# before it writes it to the box....

Errors in Generated Files for WinRT XAML DirectX Universal App

c++,visual-c++,windows-runtime,windows-store-apps,winrt-xaml
I started a project from the DirectX and XAML template and made some small edits to the Direct3D-only portion of the project. Now I get a number of errors in the xamltypeinfo.g.cpp file, stating that the Common::NavigationHelper class doesn't exist. Hovever I can validate that it's definitely a class included...

Appbar guidance results in “Invalid qualifier: SCALE-240”

windows-store-apps,appbar,windows-universal
The Windows universal app guidance for app bars suggests you include app bar icons are 100 scale (32x32), 140 scale (45x45) and 240 scale (77x77) icons. The issue is that when I include a 240 scale I get the following warning when I compile: Invalid qualifier: SCALE-240 It seems to...

Opening another WinRT app from another running app in FULL mode

c#,windows-store-apps,windows-8.1
I have 2 apps. I am running one in full mode and want to click a button from the first app to launch the second app . My problem is that my second app is getting launched but both apps are in Snapped mode. I programatically want to allow the...

XAML GridView in GridView with different orientation

xaml,windows-runtime,windows-store-apps
(Title edited) How to do this with XAML? Horizontal Width is fixed and must be scrollable. Maybe GridView or another control like ItemsControl or StackPanel. ...

Windows phone Store app Font size Issue

fonts,windows-runtime,windows-store-apps,windows-phone-8.1,font-size
I have created windows phone 8.1 Store app. I have change setting: setting->ease of access->Text size to MAX Now if I launch my app all fonts are disturbed to too larger font sizes, which was not happening in earlier silverlight apps Is there any way to create app irrespective of...

Microsoft Band SDK on Windows 8,1

windows-store-apps,microsoft-band
Maybe I'm crazy, but how do I access a Band on a Windows 8.1 machine? Any calls to BandClientManager return 0 paired devices, and I'm not sure how to "pair" a Band to a Windows 8.1 machine. I can obviously get the Microsoft Band Desktop to sync easily on any...