Welcome to MSDN Blogs Sign in | Join | Help

Toolkit Extender for creating WPF/E components

If you haven't already seen ScottGu's post on WPF/E, I'd recommend checking it out.  WPF/E is a new technology that opens up incredible new possibilities for improving the richness and interactivity of the web.  Scott links to a few demos, and the WPF/E install is quick simple, and even works on a Mac!

Adding a WPF/E component to your page is still a little bit of work though.  To make it easier, I've created a simple Toolkit extender that automates this code so you can just create the extender and go.  See the attached file below - there is a C# and a VB.Net version of the component (though if you're just using the extender, it doesn't matter).

To add WPF/E to your website:

    1. Create your XAML file (there is a simple XAML file in the sample attached, otherwise you can use the Expression Interactive Designer beta).  Add the file to your website.  Also add any other scriptiing you'd like for your WPF/E component.
    2. Build the attached solution and add the WPFEHost DLL to your website's bin directory (you'll also need to add AjaxControlToolkit.dll if you don't already have it).
    3. In your website, create a Panel where you want the WPF/E content to show.  
    4. Add the WPFEHost extender.  Note that if you're writing any script against your WPF/E control, the ID of the WPF/E control will be set to the ID of Extender, for example "wpfeControl" below.

<wpfe:WPFEHostExtender ID="wpfeControl" Runat="server" Height="350px" TargetControlID="Panel1" Width="350px" XamlPath="myWpfeControl.xaml" BackgroundColor="transparent"/>

That's it! 

 

Published Tuesday, December 05, 2006 3:19 AM by sburke

Attachment(s): WPFEHostExtender.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Toolkit Extender for creating WPF/E components

If you haven't already seen ScottGu's post on WPF/E , I'd recommend checking it out. WPF/E is a new technology

Monday, December 04, 2006 9:55 PM by Prog

# Get WPF/E onto a Web Page in seconds using ASP.NET AJAX Extenders

Kudos to the ASP.NET AJAX Toolkit team for creating a killer extender to simplify getting a "WPF/E" control

Tuesday, December 05, 2006 3:05 AM by Brian Goldfarb's Blog

# WPF\E links

A few links I have collected for your WPF\E journey. John Rayner on WPF\E and IE security (this will

Tuesday, December 05, 2006 5:13 AM by Andrew Stopford's Weblog

# More samples and posts

Nikhil Kothari has a sample that demonstrates Script# and “WPF/E” integration. Shawn Burke posted a Toolkit

Tuesday, December 05, 2006 10:42 AM by Joe Stegman's WebBlog

# re: Toolkit Extender for creating WPF/E components

Quick question: why does it have to be an extender and not a simple control?

Tuesday, December 05, 2006 3:14 PM by bleroy

# re: Toolkit Extender for creating WPF/E components

No real reason - going the extender route was quicker since we have the templates, etc. for it.  It could just as easily be a control.

Tuesday, December 05, 2006 3:23 PM by sburke

# WPF/E と ASP.NET の連携についてオススメ投稿

新 PC への移行作業中でのんびりとは読めなかったのですが、ASP.NET と WPF/E は今後連携して利用していく事が可能になるようですね(統合して開発していく事が可能になるようです。) WPF/E

Thursday, December 07, 2006 5:28 AM by ナオキにASP.NET(仮)

# MS AJAX e WPF/E insieme

E&rsquo; di qualche giorno fa l&rsquo;annuncio dell&rsquo;uscita della CTP di Dicembre di WPF/E . E&rsquo;

Friday, December 08, 2006 6:00 AM by Pietro Brambati Blog

# re: Toolkit Extender for creating WPF/E components

Shawn, do you plan to update this for AJAX 1.0 RC ?

Thanks

Saturday, December 16, 2006 5:59 PM by cpjolly

# re: Toolkit Extender for creating WPF/E components

Hello Shawn

Any plan for updating this(Toolkit Extender for creating WPF/E components) to ASP.Net AJAX 1.0 RC and WPF/E Dec06 CTP

Thursday, December 21, 2006 7:29 AM by Pinal Bhatt

# re: Toolkit Extender for creating WPF/E components

Actual i was trying to compile WPFEHostExtender website and WPFEHost class library with ASP.Net AJAX RC1.

Any way i could compile WPFEHost class library by (1) changing refercences to new AjaxControlToolkit.dll and (2) changing Microsoft.Web.Extensions to System.Web.Extensions and (3) Microsoft.Web.Extensions.Design to System.Web.Extensions.Design

Also for WPFEHostExtender website i did above changes but yes i get following error:

" Could not load type 'System.Web.Handlers.WebResourceCompressionModule' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."

Thursday, December 21, 2006 7:43 AM by Pinal Bhatt

# re: Toolkit Extender for creating WPF/E components

Yes i could successfully compile and Run  WPFEHostExtender website using ASP.Net AJAX RC1 toolkit after removing lot many lines of code from web.config.

Following contetnts in Web.config were sufficient to run the xaml clock :

<?xml version="1.0"?>

<configuration>

<system.web>

<compilation debug="true">

<assemblies>

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies>

</compilation>

<httpHandlers>

<add verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler" validate="false"/>

</httpHandlers>

</system.web>

</configuration>

Friday, December 22, 2006 1:23 AM by Pinal Bhatt

# Creating &quot;WPF/E&quot; components inside your page

While browsing today about the "WPF/E" i found a nice post that i thought to share with you, it's from...

Sunday, December 24, 2006 11:12 AM by .Net Gate

# using wpf/e to create interactive web charts ...

First CTP of Windows Presentation Foundation Everywhere (WPF/E) was released last december, Joe Stegman

Wednesday, January 24, 2007 12:07 PM by On .net client stuff..

# Toolkit talk, take two [Spoke at the TechReady4 conference]

Earlier today I presented the DEV304: ASP.NET AJAX Control Toolkit Unleashed: Creating Rich Client-Side

Thursday, February 08, 2007 10:45 PM by Delay's Blog

# WPF/E技术文章

Thursday, March 01, 2007 7:21 PM by 坚强2002

# WPF E 文章汇总

对网上的WPF/E文章汇总,前一部分来自思归的WPF/E技术文章,每天整理一些资源.

1。WPF/E起步--GettingStartedwith

Saturday, March 03, 2007 9:45 PM by 自由、创新、研究、探索……

# WPF/E技术文章

新的技术层出不穷啊,微软的任何一个动作都有可能引起程序界的轰动或者骚动。追着微软真累:(

Friday, October 26, 2007 11:43 PM by 半山旅客

# 【收藏】本周ASP.NET英文技术文章推荐[12/03 - 12/09](

摘要

昨天诸事不顺,早晨起来肠胃开始不舒服。下午坚持写好本篇推荐文章之后,还没发布居然鬼使神差一般就把草稿删除了?!WindowsLiveWriter处理数据安全方面确实有一套,删除的草稿无论用...

Tuesday, October 30, 2007 11:08 PM by Jacky_xu

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker