Answered by:
System.Windows.UI.Xaml.Controls to System.Windows.Controls

Question
-
I want to use Printing in KIOSK mode of Windows 8.1 and unfortunately it is not currently present by design.
So what I want to do is, create a Portable Class Library and add the reference to my Kiosk mode app (Windows Store app) and communicate with the default printer.
Since PrintDialog uses System.Windows.Media.Visual for printing therefore, I would like to convert Windows.UI.Xaml.Controls (Windows Store app) to Windows.Controls or Windows.Media.Visual.
Please let me know how can I achieve this conversion or is there any alternate?
Thanks Arafat
Monday, May 19, 2014 3:31 PM
Answers
-
No, that is not possible. You cannot use Windows.UI.Xaml and System.Windows in the same project.
You can share the data but not the UI.
- Edited by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, May 20, 2014 7:21 AM
- Marked as answer by Arafat Tehsin Tuesday, May 20, 2014 7:48 AM
Tuesday, May 20, 2014 7:21 AMModerator
All replies
-
Hi Arafat,
Let's summarize what you want to do, you want to use the method from namespace Windows.Control or Windows.Media.Visual in the Windows Store App portable class, I don't think it is possible since the namespace is not supported by Windows Store App.
However to communicate with Desktop Application is possible if your app is side-loaded, read this blog for more information: http://blogs.msdn.com/b/wsdevsol/archive/2014/04/14/cheat-sheet-for-using-brokered-windows-runtime-components-for-side-loaded-windows-store-apps.aspx and this: Brokered Windows Runtime Components for side-loaded Windows Store apps could be a help for you.
--James
<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
Thanks
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.
- Edited by Jamles HezModerator Tuesday, May 20, 2014 2:00 AM
Tuesday, May 20, 2014 1:40 AMModerator -
That was not my question.
To make it more simpler; I want to cast Windows Store app UI element such as Grid into WPF UI element such as Grid.
Please let me know if there's any way.
Regards
Arafat
Tuesday, May 20, 2014 6:40 AM -
No, that is not possible. You cannot use Windows.UI.Xaml and System.Windows in the same project.
You can share the data but not the UI.
- Edited by Rob Caplan [MSFT]Microsoft employee, Moderator Tuesday, May 20, 2014 7:21 AM
- Marked as answer by Arafat Tehsin Tuesday, May 20, 2014 7:48 AM
Tuesday, May 20, 2014 7:21 AMModerator -
Thanks for the clarification.Tuesday, May 20, 2014 7:49 AM