Automatically Begin Storyboard (C#)

i want Storyboard automatically begin if something is changed :- E.g I have text block which can contain text "On" or "Off" <TextBlock Name="BindedTextBlock" /> for checking text block text is on or off i created DispatcherTimer (Suggest me ...
more »

2017-10-22 08:10 (3) Answers

UWP SQL Server migration not working

I installed the latest version of Windows 10 (fall creators update) and Visual Studio 2017 (15.4). I created an UWP app targeted to major version and installed by Nuget: microsoft.entityframeworkcore.sqlserver ...
more »

2017-10-21 13:10 (2) Answers

UWP XmlSerializer PlatformNotSupportedException

I'm using XmlSerializer in a UWP project. It works fine when compiled for debug but throws PlatformNotSupportedException in release. I've written a simple example C# program to illustrate this. I have not edited any project settings from what VS 201...
more »

2017-10-07 14:10 (0) Answers

How to save the InkCanvas stroke and image?

I want to save the image with InkCanvas stroke in a single image as like the below image. When I am using the RenderTargetBitmap the ink stroke disappeared and the path not saved. How to save the image and ink stroke in a single image without usin...
more »

2017-10-04 08:10 (1) Answers

How to connect to OneDrive

I am trying to understand how to connect to OneDrive as of 2017. So many tutorials are outdated and the Microsoft documentation is kind of confusing and probably not up to date either. Lets take this example from Microsoft: public sealed partial c...
more »

2017-09-18 12:09 (1) Answers

UWP xaml ripple Effect (android effect) animation

I try to code in UWP app an Android Effect (ripple). So I create an EllipseGeometry Inside a grid (in my usercontrol) but when RadiusX and RadiusY of my ellipseGeometry play their animation, my EllipseGeometry growth out of my grid... I have tried to...
more »

2017-09-15 09:09 (1) Answers

Alternate color for listview item UWP

I have a class to color alternate the background of item, but if I delete a item, the background color does not update. Is there a way to refresh the background color after deleting an item? The code for alterante color. class listview: public clas...
more »

2017-09-09 14:09 (1) Answers

UWP File Management

Why does saving a file fail so often on UWP? I open and read the contents of a specified file when the application is initially launched (with the help of a BackgroundWorker). Then when the application is suspending I try to save new content to the...
more »

2017-09-06 21:09 (0) Answers

UWP: Create shadow in XAML

I am currently trying to create a circular button with two ellipse-elements in UWP and want one of them to throw a shadow at a certain angle. I found a way to do so in WPF which looks like this: WPF XAML: <Ellipse> <Ellipse.BitmapEffect...
more »

2017-09-05 12:09 (2) Answers

Fill Ellipse with wave animation

I have created an ellipse in Windows Phone 8.1 Silverlight App and UWP both and I wanted to fill it with animating waves, For this purpose, I am following this solution but it is for WPF so I am unable to use some control like "Visual Brush". I wan...
more »

2017-09-03 09:09 (2) Answers

UWP wpf ListViewItem text selecting

I have ListView and inside of each of ListViewItems added RichEditBox. I want to be able for select text from few items by mouse using. Like in Skype for example - last word from first ListViewItem and first word from second Item. Now it's works onl...
more »

2017-09-02 16:09 (0) Answers

Global Style in UWP XAML

I have set some styles in the App.xaml <Style TargetType="TextBlock"> <Setter Property="Foreground" Value ="HotPink"/> </Style> This style works on normal controls, but not inside DataTemplates <TextBlock Text="Test">&...
more »

2017-08-27 15:08 (1) Answers

UWP Standard CMS Enveloped Encryption

I need to implement AES Encryption Algorithm in Cryptographic Message Syntax (CMS) standard to encrypt my data in Windows Universal App (found reference here). I have it implemented on Java using Bouncy Castle library using the following code(I need ...
more »

2017-08-27 09:08 (0) Answers

UWP User Controls project type

Actually I have some UWP projects and need to refactor some redundant code. In my GUI I have many times this portion of code <ListView ItemsSource="{Binding Model.EstadoValidar.ListaInconsistencias }" Grid.Row="9"> <ListView.ItemTempl...
more »

2017-08-21 19:08 (1) Answers

Access file from the app folder in uwp

Directory: App1 - MainPage.xaml.cs - Sample.xaml im trying to do is getting the xaml content from the sample as a string but it doesnt work since it cant find the file: var x = Path.GetFullPath(@"sample.xaml"); FileStream s = new File...
more »

2017-08-12 21:08 (2) Answers

How to create sharp 1px lines un UWP?

I just found out that uwp cant draw sharp "Black" lines made up of 1px. This is my XAML code: <Line X1="0" X2="100" Y1="10" Y2="10" Stroke="Black" StrokeThickness="1" /> The attribute SnapsToDevicePixels doesnt seem to exist in uwp so im kin...
more »

2017-08-12 00:08 (0) Answers

HttpClient PostAsync Parameter Incorrect

I just deployed Windows 10 64-bit Education on my Macbook Air, a slightly updated installer from my main development PC which also runs Windows 10 64-bit Education. I've installed Visual Studio 2017 and downloaded all of the nugget packaged for my p...
more »

2017-08-05 20:08 (0) Answers

How to get Traffic Data from Bing Maps API?

I am trying to find the API to get the Traffic Flow from Bing Maps, but I can't find it. I see that they have Traffic API but it will only return Traffic Incidents. I found the TrafficManager Class to use Traffic Flow API but I can't find Traffic ...
more »

2017-08-01 19:08 (1) Answers

Redirect to UWP app from OAuth without ms-app

I'm trying to write an app that communicates with an OAuth URL. Communication with the OAuth URL behaves appropriately, and the user is correctly prompted to log in. However, due to restrictions in the redirect URL for the app, I am unable to redirec...
more »

2017-07-23 18:07 (2) Answers

DeviceInformation PairAsync not working in WPF

I'm doing pairing test with code below in WPF app, but it always failed with Failed status . To use BluetoothLe library I just added reference (C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Windows.winmd) if (!DeviceInformation.Pairing.IsPai...
more »

2017-07-19 14:07 (1) Answers

UWP unit test compile errors

I'm migrating WPF projects to UWP. While setting up new unit test projects in UWP I'm running into errors when the new unit test targets a migrated project that in turn has a dependency on another project in the solution. (Each solution builds w/o er...
more »

2017-07-17 18:07 (1) Answers

UWP Ctrl+F implementation

I'm creating an UWP app (C# .NET) where there is textbox. I want to implement a shortcut (Ctrl+F) to search texts in the textbox. I know how to find texts, but I don't know how to implement the shortcut. I found this: if ((e.Control && e.Ke...
more »

2017-07-17 08:07 (1) Answers

C# targetting ARM: How to deserialize JSON?

I'm writing my first C# application for Windows 10 IoT. I've got everything working, my web requests, etc and I am able to retrieve my desired content to render to the user.'s in JSON and I can't seem it into a regular variable so that I c...
more »

2017-07-10 04:07 (2) Answers