Creating chart sdk in Metro UI using C# - c#

Do we have any free chart sdk which works with Metro UI (Windows 8)?

Since there is no native controls available, I was able to port the C# wrapper over Google Charts (http://code.google.com/p/googlechartsharp/) to Metro Library. This wrapper will return the URL of the chart image which you can render on screen.

Related

How to capture the screen except for some windows in UWP app?

I'm developing an screen recorder app with Media Capture API in UWP. Now I'm trying to make the application able to record the screen except the windows of my application.I have heard that Magnification API can help me to do this if I develop the application in Win32 environment,but how to do this in UWP and Media Capture API?
How to capture the screen except for some windows in UWP app?
Starting in Windows 10, version 1803, the Windows.Graphics.Capture namespace provides APIs to acquire frames from a display or application window.
You could use the GraphicsCapturePicker class to invoke the system picker UI. The end user uses this UI to select the display or application window of which to take screen captures. The picker will return a GraphicsCaptureItem that will be used to create a GraphicsCaptureSession.
Please refer this document that contains complete sample code.

How to communicate from DirectX (C++) to XAML (C#) in a "Windows Phone Direct3D with XAML" project

I have used Visual Studio 2012 to create a new project based on the "Windows Phone Direct3D with XAML" template. I need two-way communication of variables and functions between the XAML (C#) portion and the DirectX (C++) portion.
I can communicate in the XAML->DirectX direction via the Direct3DBackground (m_d3dBackground) object, which is accessible from MainPage.xaml.cs.
Is it possible to do this in the reverse (DirectX->XAML) direction? Does the Direct3DBackground container have any knowledge of the XAML page it's embedded in?
Alternatively: As a poor man's substitute, can I set up an event on the XAML page that fires on each frame and polls for changes in Direct3DBackground's member variables?
If you are creating a new project, why not try the new interop model on Windows Phone 8.1. WP8.1 has adopted SwapChainBackgroundPanel and SurfaceImageSource, already available to Windows Store apps, so apps can combine DirectX graphics with XAML. This replaces the XAML and Direct3D project templates you use for Windows Phone 8 apps. For information on using XAML and Direct3D together, see DirectX and XAML interop.
Here you can get more detailed feature introduction about windows phone 8.1.

How to Draw chart in windows phone 8 or 8.1 without using external library?

How can I can draw a simple chart in Windows Phone 8 or 8.1 without using an external library, I want to use C# + XAML code only.
I searched for a free library to do that on Windows Phone 8.1 (universal app) but I couldn't find any. All libraries I've found supported Windows Phone 8 or 7, not Windows Phone 8.1.
I made in answer in this similar question How to do Chart on Windows Phone Universal App
It might be able to help you. Telerik has an API that costs money and Google have a free one where you can get Charts through http requests. Check my reply - you might wanna use one of these. My answer is not about drawing it through XAML / C# which can be quite comprehensive.
To Draw it yourself through code you probably wanna create a Custom Control. Here is a few links to get you started:
http://code.msdn.microsoft.com/windowsapps/WPF-Line-Graph-Basics-033dd90e
http://msdn.microsoft.com/en-us/magazine/ee291567.aspx
Using the default tools is very hard, you can use telerik controls, though

Drawing Control for Windows Phone 8.1 (universal app)

There are any Drawing Control for Windows Phone 8.1 (universal app)?
I want to drawing chart on windows phone 8.1 but i need some libraries to help me to do that.
I prefer to be free library.
Telerik UI for Windows Universal debuting with a Powerful Chart Library
Telerik UI for Windows Universal debuting with a Powerful Chart Library
Try WinRTXamlToolkit.Controls.DataVisualization on NuGet or I think it's home page is here.
WinRT XAML Toolkit
Old Answer:
There are a few charting libraries you can get from NuGet:
Here are my favorites:
Sparrow Chart Sparrow Toolkit Home
amCharts
Quick Charts
I have a easy example of Sparrow Chart xaml here: Simple Charting
And if you're adventurous it's not that difficult to draw a grid and some points/fill with the
<canvas> tag.

Display svg in Metro App with c# and xaml

I'm working at a Windows 8 Metro Application with XAML and C#
I have got a Uri to a SVG Image, which really works, but I have no Idea how to get this Image and display it in the XAML.
Or is it impossible to work with SVG în .NET Core?
One way could be to convert the SVG to XAML paths - which you can display in any XAML view/control. I use this approach to show vector icons in my app. Do a quick search for SVG to(http://benpittoors.wordpress.com/2009/03/17/convert-svg-to-xaml/)
Or is it impossible to work with SVG în .NET Core?
The .NET Metro Profile is NOT the .NET 4.5 Full Profile or even the .NET Client Profile. One of the requirements or limitations of the Metro application is the inability to link to any content not compiled with Metro Profile.
I suggest you use WPF instead.

Categories