×

First time here?

You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting!

Two new videos were just posted on the Silverlight learning section.

Embedding Custom Fonts in Silverlight 2

This video demonstrates the supported method for embedding your custom font files into your Silverlight applications and how you might use them in your application as well as how to provide fallback fonts for your application.

OpenFileDialog and File Upload in Silverlight 2

Two for one.  Check out the OpenFileDialog control and how you might even use it with UI-less Silverlight applications.  Also, look at OpenFileDialog in conjunction with uploading files via Silverlight 2 applications.

Make sure to subscribe to the feeds for continued updates!


This work is licensed under a Creative Commons Attribution By license.


7/11/2008 8:13 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Is the silverlight upload example suitable for large file upload scenarios?
7/12/2008 9:43 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Font files can be very large. Do you know how we would do font subsets in Silverlight?
7/13/2008 1:59 AM | # re: Embedding Fonts and File Upload in Silverlight 2
@DaveP:

The limit is currently set to 4096 Bytes = 4MB...
To change this you need to up the buffer in the application and insert the following in your web.config:

<httpRuntime maxRequestLength="8192" />

Just put in somewhere in the system.web tags... (Thats for 8 MB and it works just fine.. havent tried larger files yet...)
7/13/2008 8:48 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Hi Tim;

The font video is great. Two questions:
a) How do you add Fonts to Blend? If I try to to add it by using Add|Existing Item, In the dialog box, it opens the fonts, but does not add it to SL project?

b) Secondly, even if you add it via VS, how could a designer use that font in Blend without manually getting into Xaml code? I'm trying to let some users to choose the fonts in Blend.

Thanks!
..Ben
7/13/2008 9:12 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Tim;

Let me alter my above question:

I can import a custom Font into Blend and use it, but if I go to Windows/fonts, I can not use any of those fonts. And those are the fonts that users use in Word. How can I use those?

Thanks!
..Ben
7/13/2008 11:58 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Ben: good questions. Enhanced font support is coming in Blend to perform these embedding routines (as well as select which parts of the font) easier. In the current Blend beta it isn't there yet, but expect to see better support for this in Blend. The font list you see now in Blend is limited to what is enabled for Silverlight. You could type one in and it would edit the XAML correctly, but unless present in the assembly resources it wouldn't work...again added benefits are coming.
7/13/2008 4:18 PM | # re: Embedding Fonts and File Upload in Silverlight 2
Thank you Tim; BTW, I didn't get reply to the last email ;-)

Now, going to read your iPhone blog! Tim, What's the MSFT plans for writing SL apps for iPhone?

..Ben

7/13/2008 7:38 PM | # re: Embedding Fonts and File Upload in Silverlight 2
Ben: i just played the video fine, are you using FF3 to play the videos?

iPhone: Apple first has to support a model that enables plugins. Until then we can only speculate and wish. We don't have plans to build on platforms that don't support browser plugins...and they don't.
7/13/2008 8:38 PM | # re: Embedding Fonts and File Upload in Silverlight 2
Tim:

>>Ben: i just played the video fine, are you using FF3 to play the videos?<<

Good catch! Just tried it on FF2 @ IE 7 works, but FF3, play for a second and stops. Today I was testing my site with FF3 and the Audio or video, plays for 1 second and stops. FYI

The iPhone info, you're right. I had forgotten about their plug in. But Apple is pushing devs hard to use their SDK, but I don't like their model of programming. .Net spoils you bad! ;-)

Thanks for getting back to me!

Tim, it's none of my business, but I think you should become a full time SL trainer using videos. It saves a lot of time than reading text and we can see exactly how they work. Your recent videos, just solved lots of problems for me. Tell Simon you just want to do videos... ;-)
..Ben
7/18/2008 3:28 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Hi Tim,

Thanks a lot for your screen casts!
I've been watching a few of them and everytime it perfectly met my needs.

@WurzelGogerer :
Thanks for the tip about the maximum file size. Works a treat.

Keep up the good work
7/22/2008 2:49 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Hi Tim,

1 question :
How can we control that the file has be fully uploaded from the Silverlight app ?

What I would like is the class in the .ashx file to send a notice to my silverlight app that the file processing is finished.

Thanks again for your great videos
Guillaume
9/8/2008 8:52 AM | # re: Embedding Fonts and File Upload in Silverlight 2
Hi everyone,

I have the same problem than Guillaume. I would like the server to send a callback to the client when the upload has finished providing information about the operation result, like when calling web services asynchronous operations from the Silverlight client. Is there any "completed" event or similar? Could be an alternative solution to use sockets to send the file and receive a callback from the server? Hope someone can help me.

Thanks,
Edu Moreno
9/8/2008 8:13 PM | # re: Embedding Fonts and File Upload in Silverlight 2
UploadString and OpenWrite provide completed events for their callers.
4/16/2009 4:12 AM | # re: deploy my component into my website
Can anyone help me, i have one silverlight component. how can i add to my website. is this possible.

11/18/2010 5:02 AM | # Error in uploading large size fi
Error in uploading large size (Using silverlight and WCF for uploading file)

ERROR-The remote server returned an error: NotFound.

I try to upload large size file but cannot upload 200 kb size file or above..
minimum 4 kb or above size i can upload.
Can anyone can tell me what the changes i have to do in web.config or in the code.

 
Please add 3 and 8 and type the answer here:

All postings/content on this blog are provided "AS IS" with no warranties, and confer no rights. All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or sponsors. The content on this site is licensed under a Creative Commons Attribution By license.