Where is the RadialGradientBrush in WinRT XAML? - windows-8

Building XAML WinRT application & noticed the RadialGradientBrush is nowhere to be found?
Where is the RadialGradientBrush in WinRT XAML?

The radial gradient brush, which is an essential part of xaml IMHO is not supported. I'm hoping this will change. I heard Microsoft felt the brush was not very metro but it is used in huge number if otherways like logos, games etc.

Unfortunately, in this initial version, RadialGrandientBrush is not supported.

Related

Xamarin forms designing for multiple resolutions

How can we design according to various resolutions in Xamarin forms application. I have been using Viewbox control for Windows application but it is not found in Xamarin forms.My requirement is, if I set 50 px for a control , it should scale up or down according to various resolutions. Please provide some design guide lines to achieve this. I have been using Grid row definitions and column definitions, but for some cases I have to manually set height / width or padding for some controls. Please help me.
Xamarin.Forms does not use pixels. It uses platform specific density aware units.
Xamarin.Forms has a philosophy of using the conventions of the
underlying platforms as much as possible. In accordance with this
philosophy, the Xamarin.Forms programmer works with sizes defined by
each particular platform. All sizes that the programmer encounters
through the Xamarin.Forms API are in these platform-specific
device-independent units.
That would be "points" in iOS and "dpi" on Android.
There's a whole book chapter about it (free)
https://download.xamarin.com/developer/xamarin-forms-book/BookPreview2-Ch05-Rel0203.pdf

Implementing Packed bubble Graph in WinRT

How I can implement packed bubble graph in WinRT. I am trying to achieve graph similar to attached image..
I tried for a similar implementation / sample for silverlight / Windows 8 in google, But didn't get any. Please anyone help me to achieve the same graph. My main issue is with implementing the logic correctly.
What kind of project are you using? There's actually a way to do this in each kind of supported project.
For javascript you can use the Canvas element, which has easy 2D api's for drawing circles and text.
In C++ you can use the DirectX 2D api's to draw circles. In C# you can embed a DirectX panel into your xaml and then use DirectX to draw the circles.
In C# or C++ you can also solve this problem with just xaml, using a ListView with Canvas for an ItemsPanel, and Circle objects. Here is a blog post I found with a tutorial (except with rectangles):
http://zamjad.wordpress.com/2010/03/17/using-canvas-as-a-itempanel-template-in-listbox/
Not sure if this fits your need. If you are not averse to using JS + HTML in WinRT, d3.js should be very very useful
Example of packed bubble chart - http://bl.ocks.org/mbostock/4063269
http://d3js.org/
Hope this helps!

Color Picker for Windows store App

I want to add a color picker control to a windows store App (using VB), I came to know that there is no standard control for that. So any ideas about what could be a good purchased or open source option?
So I started building one into WinRT XAML Toolkit here but never got round to finishing it. Mainly because I figured there would need to be very different designs for different platforms. The control isn't finished, but a lot of the components that are there you could use to build a color picker that fits your design. There's a ColorExtensions class that might help you convert between HSL/HSV/RGB models, there's a FromString() method in it that can parse a color string in the formats available in XAML (e.g. "Transparent" or #FFAA0080 or #FB0) and there's a WriteableBitmapColorPickerExtensions class that you can use to render a hue ring, 2D color selector bitmap or a 1D color bar. I'll probably create some usable controls one day to use all of these primitives, but for now - you have that power! :)
I've created a simple color picker for Universal Apps, you can read about it from this blog post...

Where to start on a tile view

I would like an exact copy of the windows 8 startpage (or windows phone if you like) as a control in my WinRT application..
Like this one in silverlight telerik but than for WinRT
Must be clickable (the easy part) and dragable (the hardest part)
I've been searching for examples but couldn't find any good.. does anybody has a good starting point or tip?
You should try Telerik HubTile.
Telerik offers different types of tile type
Windows 8 Style Tiles
Rotating and Sliding Tiles
Other Tile Types

Is it possible to mix Direct3D content in a WinRT XAML application?

My XAML application could use some 3d elements. Is it possible to mix Direct3D content in a WinRT XAML application?
Yes, it's actually very easy to do. See the SurfaceImageSource class. That provides a DirectX surface that can be drawn to like any other surface. See this doc for a lot of detail on this.