How to draw graphics object in windows 8 winRT - windows-8

How i can draw hand free graphic objects in windows 8, like paint can. I implemented such things in windows phone with Inkpresenter. But in winRT it seems that no such items are present. So i decided to use WritablebitmapEX, but idont know hot to implement this in windows 8. No sample code present in the downloading site. please any one help me to solve this issue.

http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/282a211e-e3bf-4184-8868-40208aa596dd

there is a good quickstart page on the Microsoft Site
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh974457.aspx

Related

UWP transparent window

I realize something like this has been asked before, but I would like to create an app with UI elements atop a transparent window (basically, an app without a window frame and with transparent background).
I've read the following posts:
transparent app in windows 10 uwp
Transparent UWP windows 10
I checked the BlurPlayground.
It seems that this isn't possible. However, the Sticky Notes application in Windows 10 is definitely managing to do this. Either this is some special API only available to Microsoft, or it can be done.
Can someone confirm?
This cannot be done in UWP today. The custom frame you see in Sticky Notes is a one-off implementation that does not have a public API.
Curious what is your scenario you want to accomplish here? (feel free to ping me offline - swick [at] Microsoft.com)
Thanks,
Stefan Wick - Windows Developer Platform

How do i add XAML to an existing C++ DirectX windows 8 app?

I have a fully working C++ game, all done and ready to go... But i'd like to add some adverts to it. I have found out that in order to do that you require XAML.
How do I go about putting a XAML page on top of my DirectX C++ application so I can display the adverts?
#Jimmyt1988 - take a look at SwapChainPanel (newer in Win8.1 and preferred) and/or SwapChainBackgroundPanel.
Some resources for you:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.swapchainpanel.aspx
http://code.msdn.microsoft.com/windowsapps/XAML-SwapChainPanel-00cb688b
http://channel9.msdn.com/Events/Windows-Camp/Developing-Windows-8-Metro-style-apps-in-Cpp/Building-Apps-with-Cpp-XAML-and-DirectX
Hope this helps!
Apart from the resources Tim mentioned in his answer above, also check out: http://www.youtube.com/watch?v=LpLMSbxKEIU
That helped me get started with DirectX on Windows 8.
[This should ideally be a comment, but I am new and I don't have enough reputation points]

How to use StreamGeometry class on Windows Phone

I try to draw curve reference to Petzold Book Block
and I try use this in Windows Phone 8. These libraries not support StreamGeometry class in namespace System.Windows.Media.
How to try draw it on WP8? Thanks
StreamGeometry is not supported in Silverlight for Windows Phone. To see the full list of available classes, see this MSDN link.
You will have to find another way of simulating StreamGeometry for your application. You should be able to simply use PathGeometry instead.

Using Path Animation in Windows 8 using XAML

I would like to animate a UI control (an Image actually) over a Path provided.
It is looking that it is not possible to do it in Windows 8 using XAML although it was possible with .NET 4.5 as far as I could see from the below reference.
http://msdn.microsoft.com/en-us/library/ms746981.aspx
My question is whether there is a work around that I can use to achieve my goal or get closer to it.
WinRT is very similar to Silverlight, so many Silverlight solutions can work in WinRT with minimal or no changes. This sample on CodeProject should give you DoubleAnimationUsingPath with little work.
http://www.codeproject.com/Articles/30819/Animation-Along-a-Path-for-Silverlight

is there something like a hubtile (WP7) in win 8 metro style?

i want to port one of my windows phone 7 apps to the windows 8 metro style plattform.
the problem is, that i need a element like the hubtile which i use from the silverlight toolkit for windows phone.
is there something equal in the windows 8 metro style platform? maybe open source like the silverlight toolkit.
i dont want to add the livetile outside my app, this is easy. i want to have something like hubtile for WP7 for win8. This means a tile which is inside my application.
If I'm right I'm planning to do the same task. I didn't find any reference of a control which performs like a HubTile. Thus, I decided importing the one from the Silverlight Toolkit (for Windows Phone). Luckily it worked almost smoothly, you can see my sample at:
https://github.com/hmadrigal/playground-dotnet/tree/master/MsWinPhone.EmbedFont (tested on Windows 8 RP and Visual Studio 2012 RC)
Kind regards,
Herber
you can work with the live tiles of course and in several ways. You can use badge notifications, toast notifications, and so on.
I'll suggest you to take a look to this documentation.
And also take a look to those two samples: App tiles and badge sample and Push and periodic notifications client-side sample
By the way don't forget to enable the features you need in the package manifest.