2005년 3월 11일 금요일

Gaston Milano's WebLog

Xaml Viewer for Whidbey

At this time I suppose you know about the CTP for Avalon but may be you didn't install it yet. I have installed the CTP without problems, my installation order was:

- Whidbey beta 1 (this install framework 2.0 beta)

- Windows SP 2 ( because it is required by the CTP)

- Avalon CTP

After install you should go to Chris Anderson blog and check for cool samples.

Chris Anderson point to a tool XamlPad in order to edit and test xaml, I really like it but obviously I'm a VS man so I wanna edit my xaml files in VS (with intellisense, syntax error check, etc the XML editor in VS is really cool) and more I wanna have a viewer for my xaml file in VS.

So I started developing a Xaml Viewer for VS, it is an interesting sample because I had to use XAML controls in Windows Forms, use VSIP for Whidbey, automation, etc. I gotta post something about this later.

Now I gotta post just my first night of work ;)

Features:

- Right click in xaml files to call to the viewer.

- Switch from viewer to associated file

- Show errors in output window and task list, so you can go to the line with double click.

- Call the viewer directly from View\Other Windows\Xaml Viewer

- Text to Xaml, sometimes I need to transform just a text fragment, so you can paste the text in the text view and refresh the viewer in order to see the result.

Here some screen shots:

This sample is in Chris Anderson blog

 

Installation:

Download msi  

After install the msi run: devenv /setup in the Whidbey command prompt.

Obviously you need CTP installed in order to go.                   

 

posted on Wednesday, November 24, 2004 1:12 AM

Feedback

# re: Xaml Viewer for Whidbey 11/24/2004 3:30 AM William Luu

Nice work there Gaston!

# re: Xaml Viewer for Whidbey 11/24/2004 8:24 AM RebelGeekz

Thumbs up!

# re: Xaml Viewer for Whidbey 11/24/2004 8:31 AM Rob Relyea

Tried this with VC# Express and VB Express without luck. (That is what is on my laptop.)

Crash during msi execution:
An unhandled win32 exception occurred in dexplore.exe [2792].

Otherwise setup seemed fine.

Instead of devenv /setup, I ran VBExpress /setup and VCSExpress /setup.

Launched VCSExpress, didn't see the option to turn on that viewer.

Are the express skus missing the extensibility that this requires or does your setup need to do something slightly differently for the express skus?

This looks great...would love to try it!

Thanks, Rob

# re: Xaml Viewer for Whidbey 11/24/2004 8:36 AM Gaston

Rob,
Sorry but VSIP extensibility is missing for express versions. Standard or Professional is needed.

Sorry for inconveniences.
Regards,
Gaston

# XAML Viewer for Whidbey 11/24/2004 8:42 AM Andres Aguiar's Weblog

# re: Xaml Viewer for Whidbey 11/24/2004 8:45 AM Rob Relyea

Ok. I guess I'll buy the real VS... :-)
Thanks, Rob

# Un visualizzatore grafico di codice XAML 11/24/2004 12:46 PM UGbLog di Pierre Greborio

# re: Xaml Viewer for Whidbey 11/24/2004 5:37 PM gani

Hi Gaston,

Do you have similar viewer for VS running on Longhorn? Thanks!

# re: Xaml Viewer for Whidbey 11/24/2004 7:02 PM Rob Relyea

Gaston-
I've got this running now.

Please give me your email address via this form: http://www.longhornblogs.com/rrelyea/contact.aspx

I've noticed a few problems:
1) sizing of the preview page seems very small. I can't make it get bigger.
2) errors are being raised for things that are ok. For example, x:Class, is valid. The markup compiler can handle that, the parser can't.

I'd like to work through them with you.

We need to fail gracefully...and we should discuss how it could be done...

Thanks, Rob

# re: Xaml Viewer for Whidbey 11/24/2004 9:11 PM GMilano

gani,

I don't know if VSIP SDK can be installed in Longhorn if you can then it seems easy to port this viewer for Whidbey running over Longhorn

Regards,
Gaston

# re: Xaml Viewer for Whidbey 11/25/2004 1:51 AM Jose

Thanks it look great. I have the same problem as Rob, sizing of the preview page seems very small. I can't make it get bigger. Is there some way to resize the preview to the correct size?
Regards,
Jose

# XAML Viewer for Whidbey 11/25/2004 6:57 AM 中の技術日誌

XAML Viewer for Whidbey

# XAML viewer for Whidbey 11/30/2004 7:41 AM SmartWombat Blog

Comments on this post are closed

댓글 없음:

댓글 쓰기