Extensible Templates in Deep Zoom Composer
July 19th, 2009 | View Comments
In the previous post, I started talking about some of the collection-related improvements we made in Deep Zoom Composer. The crux of that post was describing how you can defer to the Silverlight application the task of arranging and positioning your images.
Deep Zoom Composer ships with one basic template, based on my earlier Tag Browser, that handles simple arrangement of like-sized images during runtime. Of course, there are many more things that you may want to do beyond just having items be arranged in a grid. You may want to arrange them circularly. You may even choose to go scattershot like one of the layouts you have in DeepZoomPix:
Beyond just the layout of the images, you have access to several pieces of metadata in the scene.xml and metadata.xml files!
Essentially, there are a lot of things that you can do that our default templates simply do not expose in Deep Zoom Composer (DZC). To help solve that problem, we made the process of selecting a template from within DZC extensible:
While we currently ship with three templates, you can easily add your own. This post will describe briefly the two types of templates you can add.
Template Without Source Files/Project
To simply provide your own template, all you need is an HTML file named test.html and the corresponding XAP that is used to display your Deep Zoom images. Your Deep Zoom Images will be in GeneratedImages/dzc_output.xml relative to your XAP.
Note: The test.html file needs to have the appropriate tags to actually display the XAP file.
Once you have your HTML file and XAP file, you will have to find the Deep Zoom Composer installation directory. By default, that is found under Program Files/Microsoft Expression/Deep Zoom Composer. Once there, find the folder named Export Templates. You will see three folders whose name matches the name of the templates you see in the above screenshot:
In this location, add a new folder whose name will be what you want to have showing up inside the templates drop-down in DZC. I am going to name my folder Kirupa’s Template:
Once I have created this folder, I simply paste my HTML file named test.html and corresponding XAP file into it.
After doing all of this, if I restart Deep Zoom Composer, switch to the Custom tab under Export, and expand the templates drop-down menu, notice that Kirupa’s Template now appears:
When you export with your chosen template, your HTML file and XAP will be copied along with the GeneratedImages folder that contains the various XML files and Deep Zoom image tiles:
If you find yourself stuck, you can always look at how the Tag Browser and Default templates inside your Export Templates are laid out.
Template With Source Files/Project
In the previous section, I explained how to add your own custom template with just an HTML and XAP file. There will be cases where what you want to use involves source files. For example, you may create a generic template that does something really cool with the various metadata files we generate. The actual look of the application is something that you would want a more technically/design savvy end-user to modify instead.
For those cases, an HTML file and XAP file are grossly inadequate. What you need to be able to provide is both the HTML file and XAP along with the source files associated with it. To add your custom template that includes source files, the steps are a little similar to the general XAP + HTML case. What is different is what DZC expects in terms of folder names and project locations.
Note: For reference, look at how the project under Deep Zoom Classic + Source are laid out.
Inside your Export Templates folder, create a folder whose name is what you want your template to be known as.
Next, create a new Silverlight project using Expression Blend 3 named DeepZoomProject, this solution and folder structure is created for you. When you build your application, you will basically see the following structure:
If you compare this directory with what you see in your Deep Zoom Classic + Source folder, you will see that almost everything is identical:
The only thing that is missing in what you created in Blend and what DZC expects is a GeneratedImages folder in your ClientBin directory living alongside your XAP. You can add this folder easily using Blend 3 by right-clicking on the ClientBin folder and selecting Add New Folder:
All that is left after you add your new folder is to rename it to GeneratedImages to make DZC happy:
Once you have your project done, just copy and paste your DeepZoomProject Solution file, the DeepZoomProject folder, and the DeepZoomProjectSite folder into the folder you created under DZC’s Export Templates directory. The folder you paste your source files into must contain the word Source as part of its name. For example, my folder is called Kirupa’s Template + Source:
Conclusion
This post wraps up my coverage of the new Export-related features we now have inside Deep Zoom Composer. Hopefully this post and the previous post help you create the really nice Deep Zoom collections and visuals that you had always wanted to do easily.
Cheers!
Kirupa





July 20th, 2009 at 3:17 am
please more as3!
July 20th, 2009 at 8:59 am
antal – there is plenty of AS3 here: http://www.kirupa.com/developer/flash/index.htm !!!!
I will be writing more about Silverlight and Blend 3 for the next couple of weeks because there is a lot of things our team did that is just too cool to not share.
July 21st, 2009 at 10:22 pm
Is there any chance that you could point me in the direction of the Headlight Authoring Tool that is referenced in scene.xml?
July 21st, 2009 at 10:49 pm
Hi Neil – that is actually Deep Zoom Composer. Headlight was an internal prototype of a variant of Deep Zoom Composer
July 23rd, 2009 at 7:02 am
[...] 更多关于导出特性,可以看这两篇博客:Extensible Templates in Deep Zoom Composer, Improved Collection Support in Deep Zoom Composer [...]
July 23rd, 2009 at 1:54 pm
[...] and/or, if you want to find out more about the new exporting features, Kirupa’s blog posts about Extensible Templates in Deep Zoom Composer and Improved Collection Support in Deep Zoom Composer. They will continue to blog more about some [...]
July 29th, 2009 at 1:55 am
[...] a bit more about our new exporting features, check out Kirupa’s two blog posts on this topic: Extensible Templates in Deep Zoom Composer and Improved Collection Support in Deep Zoom [...]
August 14th, 2009 at 3:18 am
http://spyhistory.ru – Спасибо за объяснение. Я не знал этого.
December 10th, 2009 at 6:05 am
hi kirupa .,
i seen your blog & other things its reallly superb.,
i m new to blend 3,silverlight..
my boss told me to create one button in blend and include in existing asp.net project..
i m struggling to do this …
i know how to create button in xaml file .. but i dont know how to embedd in my existing .net project..
can u suggest me how to do this .,
i think from your name shows ur tamilan right ….
i feel happy to hear your position in microsoft…
plz mail me @ vellore.balaji@gmail.com
September 27th, 2010 at 2:45 pm
cialis rezeptfrei aus deutschland
comprar propecia en espana
November 17th, 2010 at 3:36 pm
you make some fascinating factors and, to me at least, a couple of new ones. However participating with individuals at an emotional level isn’t a simple thing to do, especially when comments are always left in written form.
November 26th, 2010 at 1:53 am
nice blog
January 10th, 2011 at 4:15 pm
I am so quite delighted reading this posting as well as I agree with the very last portion of this post. However, I have read this somewhere else too. Have you got any additional site too?
January 13th, 2011 at 3:47 am
thanks for the info
January 31st, 2011 at 1:15 am
Hi, I seemed to be in need of kirupaBlog – If it isn’t broken, take it apart and fix it! » Blog Archive » Extensible Templates in Deep Zoom Composer while i encountered your blog. Knowledge for sharing this amazing content. Many thanks!
February 16th, 2011 at 3:26 am
nice comment, guys
February 17th, 2011 at 9:16 am
I totally accept as true with what you have explained. In fact, I browsed through your additional posts and I believe you are totally right. Best wishes with this website.
February 25th, 2011 at 7:08 am
Well said! This was a really quality post. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.
February 25th, 2011 at 8:53 am
ada
March 2nd, 2011 at 8:44 am
You just saw something really cool, but your natural instinct would be ask how this actually benefits you as a developer and your users. For you as a developer, the amount of code you save from writing is huge. Translating the above queries into traditional code would probably take around 2x or 3x the amount of code that it took using LINQ.
March 7th, 2011 at 9:07 am
People should know that some changes are in our lifestyle can save the earth. Everyone say that pollution and global warming is increasing day by day but nobody don’t do anything to stop it.
March 8th, 2011 at 7:53 am
Utterly understand what your stance in this matter. Though I’d disagree on some of the finer details, I feel you probably did an awesome job explaining it. Sure beats having to analysis it on my own. Thanks. Anyway, in my language, there aren’t a lot good
March 8th, 2011 at 8:11 am
I’ve been trying to Achieve access to this website for a while. I used to be using IE then when I tried Firefox, it labored just high-quality? Just wished to bring this to your attention. This is really good blog. I have a bunch myself. I actually admire your design. I know this is off subject however,did you make this design yourself,or buy from someplace? Anyway, in my language, there aren’t a lot good source like this.
March 8th, 2011 at 8:13 am
I used to be on the lookout for crucial info on this subject. The information was necessary as I am about to launch my own portal. Thanks for providing a lacking hyperlink in my business. Anyway, in my language, there are not much good supply like this.
March 8th, 2011 at 8:14 am
I used to be on the lookout for crucial info on this subject. The information was necessary as I am about to launch my own portal. Thanks for providing a lacking hyperlink in my business. Anyway, in my language, there are not much good supply like this.
March 8th, 2011 at 8:28 am
I’ve to say, I dont know if its the clashing colors or the bad grammar, but this blog is hideous! I simply, I dont wish to sound like a know-it-all or anything, however may you will have probably put just a little bit extra effort into this subject. Its really interesting, however you dont characterize it well at all, man. Anyway, in my language, there usually are not much good supply like this.
March 8th, 2011 at 8:30 am
I was wondering should you can be fascinated about changing into a guest poster on my weblog? and in trade you could possibly put a link the submit? Please let me know once you get a chance and I will send you my contact particulars – thanks. Anyway, in my language, there should not a lot good source like this.
March 8th, 2011 at 8:35 am
I’ve to say, I dont know if its the clashing colors or the bad grammar, but this blog is hideous! I simply, I dont wish to sound like a know-it-all or anything, however may you will have probably put just a little bit extra effort into this subject. Its really interesting, however you dont characterize it well at all, man. Anyway, in my language, there usually are not much good supply like this.
March 9th, 2011 at 2:26 am
Your blog is fine. I just want to comment on the design. Its too loud. Its doing approach an excessive amount of and it takes away from what youve received to say –which I think is de facto important. I dont know when you didnt suppose that your words could hold everyones consideration, but you have been wrong. Anyway, in my language, there are not a lot good source like this.
April 24th, 2011 at 3:11 pm
I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you might have hit the nail on the head. Your idea is outstanding, the problem is a thing that not enough folks are speaking intelligently about. I will be happy that I stumbled across this during my search for something relating to this.
April 26th, 2011 at 7:28 am
what would you like in your bp claims process ? Let us help you
April 26th, 2011 at 7:31 am
what would you like in your bp claims process ? Let us help you
April 27th, 2011 at 3:34 am
There are definitely cabbage soup diet a number of particulars like that to take into consideration. That may be a great point to bring up. I supply the thoughts above as common inspiration cabbage soup diet however clearly there are questions like the one you convey up the place the most important factor might be working cabbage soup diet in honest good faith. cabbage soup diet I don?t know if greatest practices have emerged around issues like that, but I am positive that your job is clearly recognized as a good game. cabbage soup diet Anyway, in my language, there aren’t a lot good source like this.cabbage soup diet
April 28th, 2011 at 12:33 am
Your blog is fine health articles. I just want to comment health articles on the design. Its too loud. Its doing approach an excessive amount of health articles and it takes away from what youve received to say –which I think is health articles de facto important. I dont know health articles when you didnt suppose that your health articles words could hold everyones consideration, but you health articles have been wrong. Anyway, in my language, there are not health articles a lot good source like this.
May 3rd, 2011 at 8:07 am
I was very happy to link wheel seek out this site.I wanted link wheel to thank you for this great learn!! link wheel I undoubtedly enjoying every little bit of it and I have you bookmarked to check out new stuff you post. link wheel Anyway, in my language, there aren’t a lot good supply link wheel like this.
May 5th, 2011 at 10:33 am
It’s been a few weeks since I blogged so I’m being a good girl and posting! Friday is a great night to do that as it’s the day that all the stresses fall away. Where are the weeks going? Spring is here this weekend and with it the promise of a great summer.
I’ve got so much coming up. Four weeks from today I will be seeing the U2 tribute band NU2. They have been disbanded for a while but are coming back to do a final “farewell” gig as the last time they played no one knew that would be it so no one was able to give them a send off.
May 6th, 2011 at 2:33 pm
I have been studying your entries through my morning holiday, and i also should admit the complete article continues to be very enlightening and rather well crafted. I believed Id help you recognise that for a couple reason this weblog does will no longer view smartly in Web Explorer 8. I wish Microsoft might forestall changing their software. Ive a query to suit your needs. Might you thoughts replacing blog roll links? That’ll be truly neat!
May 8th, 2011 at 4:15 pm
I’m impressed, I must say. Actually hardly ever do I encounter a blog that’s each educative and entertaining, and let me tell you, you might have hit the nail on the head. Your concept is excellent; the issue is one thing that not enough persons are talking intelligently about. I’m very happy that I stumbled across this in my search for something referring to this.
May 10th, 2011 at 5:20 am
Buy Tadacip Online In Kansas, Buy Tadacip In New Mexico , Tadalis Sx 20 New Gers , Buy Tadalis Sx 20 , Buy Tadacip In Pennsylvania, Tadalista Super Active In New York , Tadalis Soft Minnesota , Tadalis Generic In Michigan , Tadalis Women, Buy Tadacip In Wyoming, Tadalis Generic In Luisiny ,Tadalis Tablets In Oklahoma ,Tadalista Super Active In Tennessee ,Buy Cheap Tadacip Online.
May 14th, 2011 at 6:12 pm
This weblog generally seems to obtain a large ammount of visitors. How do you get people to it? It provides a nice individual twist on things. I suppose having something authentic or substantial to express is an essential factor.
May 15th, 2011 at 12:51 pm
hi kirupa,
I was trying to follow the below – it works but how come I am not receiving any email though? advice pls. thanks in advance. my email : tllow01@hotmail.com.
< ?phpif(isset($_POST['submit'])) {$to = "you@you.com";$subject = "Form Tutorial";$name_field = $_POST['name'];$email_field = $_POST['email'];$message = $_POST['message']; $body = "From: $name_fieldn E-Mail: $email_fieldn Message:n $message"; echo "Data has been submitted to $to!";mail($to, $subject, $body);} else {echo "blarg!";}?>
May 19th, 2011 at 7:54 am
A few days ago the atmosphere got even worse. On Saturdays they do separate markets so yesterday morning, after she had left, I told her husband that I was not happy. He said the only thing to do was to leave. He said to pack and he would take me in the van on Sunday. But she wanted me gone that evening.
May 20th, 2011 at 8:30 am
I
want to go to Alaska. It would be cool if I could make it happen this
summer. I still think about when I went to New York a couple years back.
I want to go back there too. That would be cool I if could make them
both happen this year. Prolly not gonna happen, but it would be cool
none the less.
May 25th, 2011 at 3:06 am
Members across the country will now have to decide what their personal response is to this significant change to the CTC as a membership organisation for cyclists and what choices they have. I’m sure that we shall be considering those options.
June 2nd, 2011 at 11:06 am
I’m having a little problem. I can’t subscribe your give food to.
June 2nd, 2011 at 5:08 pm
Good to become going to your web site again, it has been months for me.
June 6th, 2011 at 8:12 pm
Is this a weblog? Where would you get the particular theme through?
June 27th, 2011 at 3:25 am
路过,看下!!!
July 12th, 2011 at 7:22 am
http://www.ranking-kart.pl/visa-czy-mastercard/ Visa
July 12th, 2011 at 7:29 am
We’re a group of volunteers and starting a new scheme in our community. Your website offered us with valuable info to work on. You’ve done an impressive job and our entire community will be grateful to you. que es el acne
July 17th, 2011 at 12:34 am
Hello, fantastic article I have just subscribed to your RSS
July 21st, 2011 at 5:21 am
I differ with most guys here; since I found this post Maxguard Shredders I couldn’t stop until I was done, although it wasn’t just what I had been searching for, was a very good read though Alexandras Jewelry Box. I will instantaneously grab your blog feed to stay in touch of any updates. That’s a very good point there. I made a investigation on the topic and found many people will agree with your article. Spider Network Any way I’ll be subscribing to your feed and I wish you post again soon.
July 22nd, 2011 at 3:15 am
is good for me
July 23rd, 2011 at 5:20 am
Keep up the rare intricacy you have going here!
July 28th, 2011 at 6:41 am
2CMBKL http://fnYwlOpd2n9t4Vx6A3lbk.com
July 31st, 2011 at 4:41 pm
Best Site good looking lolita magazines nude girls 279
August 2nd, 2011 at 9:10 am
How much does the job pay? board3 cgiworld nn lolitas
PP gallery pics girly lolita 303147 bbs dark loli vombat 77298 young lolita bbs nude >:-[[[ loltia young model toplist vdul lolitas ls magazine issue
( nude girl pic lolita 93466 love cp dark lolita 3819 turk teen lolita toplist hrzay shy lolilta clip girls udnyh lolita top 50 websites mee little lolita cp bbs 2849 preteen lolita kiddie pic 532746 lolitop no nude 9 680 loli teen nude pics 1992
52373 charming angels lolitas nude 771741 free teen porn lolita tlrkd tiny angel lolita tgp
voj young lolas modeling underwear 8[[ lolita pre hair pussey
August 5th, 2011 at 4:42 am
An envelope Kds Flymentor 3d
) Nude Preteen Lolitas Kds Pedo
190549 Kds Top Bbs
114708 Nn Preteenz
alasw Nude Preteen Lolitas Kds Pedo Little Underage
euasg Nn Models List
ego Lolita Bbs Kds
pbyib Nn Lingerie
763044 Preteen Kds
wkrfdy Top Kds Bbs Videos
ngct Kds
>:-O Little Girls Underage Nn Perteen Nude
:[[ Kds Bbs Pics
%DD Kds Porn
vnt Kds Cumshot
caiq Kds Bbs
%))) Free Nn Lolita Clips
64125 Lolita Kds
gllqj Kds Sex Index
povtal Nn Lolitas Tgp
syy
August 11th, 2011 at 3:53 pm
Will I be paid weekly or monthly? Felixx Boy Bbs
1499 Sudteen Bbs
fixjc Loli Guest Book Bbs Imageboard
876 Bb Guns
>:-OOO Zeps Bbs Guide
220370 Ls Magazine Bbs
8] Peachy Bbs
jeq Charming Angels Bbs
vbmt Svens Place Bbs
307155 Ls Stars Bbs
poj Ranchi Bbs Gateway
219464 Voodoo Bbs
%((( Thai Boy Bbs
oizlna Pre Bbs
>:DD Young Bbs Links
720883 Child Model Bbs
%) Great Bbs
>:] Teeny Bbs
6649 Ls Models Bbs
>:OO Combat Bbs
vnh
August 12th, 2011 at 7:25 am
I’d like to tell you about a change of address Nn Model Bbs
8-] Nn Teen Model
oji Child Modeling Nn Video
3198 Very Young Nn Girls
348 Nn Young Models
217 Teen Nn Models
067902 Young Nn Model Videos
=))) Nn Girl
hwuja Nn Loli Top
8-[ Lolita Nn
jfuydg Nn Pre Teen
=-) Preteen Nn Model
33419 Little Nn Girls
lmnscc Nn Lolitas
310 Nn Preteen Model
slq Nn Preteenage Models
0559 Young Nn Models Pics
tncu Nn Models Video
09052 Cute Nn Models
63035 Ls Nn Models
ayncbg
August 13th, 2011 at 6:40 am
What do you study? Extreme Fisting Nn Bdsm Toplist
(( Teenage Nude Model Toplist
) Teenage Model Toplist
356441 Young Boy Lovers Toplist
8DDD Schoolgirl Toplist
8((( Totally Nudes Toplist
8[ Nude Toplist
>:-OO Shy Lolita Toplist
002110 Lolicon Toplist
536818 Preteen Toplist Xxx
7892 Naked Preteen Toplist
238782 Loltia Dark Girl Toplist Models
8OO Dark Lola Toplist
8-] Bondage Toplist Tgp Net
evnsyb Jailbait Chan Toplist
zps Russian Uncensored Toplist
otmh Underage Incest Toplist
918543 Preteen Glamour Models Toplist
8-((( Preteam Nn Bdsm Toplist
=-[ Naked Lolita Toplist
22129
August 13th, 2011 at 7:25 pm
I’ve lost my bank card preteen picture model xkx dirty young preteens 8P preteen models nudists 426 extreme models preteens bear model preteens photography %OO beautiful japanese preteens 84251 sexy preteen girld gisl preteen incest free 637531 young preteen masterbating
cp preteen pics :-OOO lil darlings preteen 296 preteens nymphets nude 536603 preteen rape preview 590 pre teen gallories =]] my candid preteen 8]]] body hot preteen
nn preteen japanese >:-(( preteen angels art izhny
8-OOO preteen redhead pics 4772 cam preteen free
August 14th, 2011 at 3:38 am
I will be writing more about Silverlight and Blend 3 for the next couple of weeks because there is a lot of things our team did that is just too cool to not share.
August 15th, 2011 at 7:49 am
Coach Online
August 27th, 2011 at 7:48 am
Thanks for another new content. Where different might anyone get that style of facts in this fantastic way of writing? I’ve got a demonstration next week, and i’m to the try to find similarly info.P90X
September 9th, 2011 at 3:32 am
This is a great web page, will you be thinking about performing an interview about just how you created it? If so e-mail me!
October 2nd, 2011 at 1:47 pm
Helpful info. Lucky me I found your website by chance, and I’m surprised why this twist of fate didn’t took place in advance! I bookmarked it.
October 14th, 2011 at 2:42 am
thanks for your sharing. very clear steps for me to handle it for the le pliage. Great.
October 31st, 2011 at 10:07 pm
Very great post. I just stumbled upon your weblog and wanted to mention that I have truly enjoyed browsing your blog posts. After all I’ll be subscribing to your rss feed and I hope you write once more very soon!
November 2nd, 2011 at 5:23 am
nice post
November 9th, 2011 at 11:02 am
I relish, cause I discovered just what I used to be taking a look for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye
November 15th, 2011 at 1:47 pm
It’s really cool in
terms of the resources and look. It saved a great deal of time of mine as I
get all the information accumulated here I have you on my bookmark. Reading
it really helps in getting proper idea about the topic. It’s quite elaborate
rift platinum
rift plat
November 15th, 2011 at 5:54 pm
You’d outstanding tips there. I did a hunt about the topic and found out that certainly most of us will agree with your website.
November 16th, 2011 at 3:09 pm
Nice tips. I”m still fighting with silverlight applications, This gave me an idea on how to tackle a problem
November 16th, 2011 at 9:47 am
I have an ED problem and I use Ciallis. Though it’ s very expensive I tried Tadalista 20 which I bought through Internet. The problem is I feel almost nothing using Tadalista. Does anyone know a cheap ED drug which actually works?
November 17th, 2011 at 5:00 am
Normally I don’t read article on blogs, but I wish to say that this write-up very pressured me to check out and do it! Your writing taste has been amazed me. Thanks, very nice post.
November 26th, 2011 at 4:11 pm
Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just extremely fantastic. I really like what you’ve acquired here, really like what you are stating and the way in which you say it. You make it enjoyable and you still take care of to keep it wise. I can’t wait to read far more from you. This is actually a great site.
cheap wedding shoes
November 26th, 2011 at 4:11 pm
Magnificent goods from you, man. I’ve understand your stuff previous to and you’re just extremely fantastic. I really like what you’ve acquired here, really like what you are stating and the way in which you say it. You make it enjoyable and you still take care of to keep it wise. I can’t wait to read far more from you. This is actually a great site.
cheap wedding shoes
February 13th, 2012 at 1:28 pm
Please give some more …its awesome..
software testing institute in pune
February 28th, 2012 at 11:02 am
Executing for a second time exercise routines concerning every day soles is certainly very healthy as well as remarks large medication while in the on the spot along with imminent.
March 20th, 2012 at 6:43 pm
I was just looking for this info for a while. After 6 hours of continuous Googleing, at last I got it in your website. I wonder what’s the lack of Google strategy that don’t rank this kind of informative websites in top of the list. Generally the top web sites are full of garbage. Best Escorts, 8, 31 Maddox Street, London, W1S 2PB, 020 3011 2418
November 13th, 2012 at 6:03 pm
You’re definitely someone that has something to say that people should hear. Hedge Fund Trader X
November 19th, 2012 at 1:35 am
wow gold everyone looks this article that I’ve shown. Deep zoom is great.
December 17th, 2012 at 7:12 am
This is a great tutorials I think it’s very well
href=”https://www.qbht.com/”>web dubai
April 9th, 2013 at 8:56 pm
mrirdcmph, zrnthxzean