Downloads and Samples

It’s getting a bit hard to find the most recent versions of my samples and downloads
within my blog, so I thought I’d create a separate page just to summarize. I’m sure
this list will grow over time, and hopefully it’ll help keep things organized.

  1. #1 by danny honeycutt on July 21, 2009 - 2:46 pm

    Just a note to thank you for taking the time to document your exploration. Your examples are spot on relative to the needs I have in my work. I have been looking for ways to use Silverlight as the total framework and you seem to be blazing down a trail right in front of me. Again, thanks, danny

  2. #2 by Gen C on July 24, 2009 - 2:16 am

    this site is godsend! keep it up!

  3. #3 by Christian on December 26, 2009 - 5:21 am

    Thank you for the info and demos.. The time you are taking to do this blog is GREATLY appreciated

  4. #4 by ASP.NET MvcPager on March 16, 2010 - 8:27 pm

    Thanks for sharing your great work!

  5. #5 by Rui Marinho on March 23, 2010 - 6:29 pm

    Great work David.I saw other day in scott morrison mix10 talk that ria services will have some kind of authentication in the navigation framework, is that correct? or maybe i’m wrong, we said that would be possible for example to redirect the user to a default login page. just wondering if we have it already in the last bits.
    Thanks

    Greetings
    Rui

    • #6 by david.poll on April 9, 2010 - 10:50 am

      I’m not familliar with that change if it will be there, but it’s quite easy using the atuh content loader I provided to make this work.

  6. #7 by sashidhar on May 19, 2010 - 11:59 pm

    Great Work Man.Thx for your Support..!

  7. #8 by Jay Kluborg on July 1, 2010 - 7:39 am

    Hi David!
    I read at http://silverlightreporting.codeplex.com/ that you and Pete Brown may expand the project to include printing datagrids. That would be very, very helpful to me. Any idea what timeframe I might expect? Thanks to you and Pete for your efforts!

  8. #10 by Nk54 on July 5, 2010 - 8:08 am

    Hi David, i’m using your navigation project.

    I ‘ve met a problem : i got a menu where each menuItem send to another xap.

    I got 3 xap in addition of the shell xap (the one loaded at the beginning)

    When i load the module 1, it works, then i move the second xap, it works too, then i move on the third it’s still good.

    But when i try to move to the second xap another time, i get an error :
    à System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
    à _ContentLoaders.MEF.MEFContentLoader.Loader.NavigateToPage(Uri targetUri)
    à _ContentLoaders.MEF.MEFContentLoader.Loader.c__DisplayClass5.b__0(Object s, AsyncCompletedEventArgs e)
    à System.ComponentModel.Composition.Hosting.DeploymentCatalog.OnDownloadCompleted(AsyncCompletedEventArgs e)
    à System.ComponentModel.Composition.Hosting.DeploymentCatalog.HandleOpenReadCompleted(Object sender, OpenReadCompletedEventArgs e)
    à System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)
    à System.Net.WebClient.OpenReadOperationCompleted(Object arg)

    See
    http://pics.imagup.com/member4/1278400739_menu error.png

  9. #11 by Nk54 on July 5, 2010 - 8:12 am

    Don’t forget the space to see the picture or use that link with %20 :

    http://pics.imagup.com/member4/1278400739_menu%20error.png

    thank you, if you get an idea it will be great because i’d like to use mef navigation.

  10. #12 by Cleyton on September 16, 2010 - 2:41 am

    Hi David,

    I downloaded your Slab 0.9 project but when I try to compile I get 245 errors.

    Could you please shed some light on the best way to compile it? Do you have any instructions on how to get the solution to work?

    I am using Silverlight 4 and VS 2010 release.

    Cheers

    C

    • #13 by david.poll on September 18, 2010 - 11:34 pm

      Make sure you have the Silverlight toolkit installed (silverlight.codeplex.com). This is the primary source of compile errors.

  11. #14 by Malcolm Swaine on September 23, 2010 - 1:16 pm

    Firstly, let me say thank you so much for sharing your work with everyone.

    I did however run into a little problem when using your SLaB loader. For some reason adding a reference to the System.Windows.Controls.Data.DataForm.Toolkit.dll breaks my loader, but the problem is actually at the WebClient level. The WebClient refuses to load the Xap if the dll is presentent???

    Anyway – the error is ‘No parameterless constructor defined’ which is way way out. The error being caused at the level where the WebClient is actually loading the is swallowed up by the loading framework – so you would never never know the real error.

    public IAsyncResult BeginLoadXap(Uri uri, AsyncCallback callback, object asyncState)
    {
    WebClient wc = new WebClient();
    XapAsyncResult result = new XapAsyncResult(asyncState);
    wc.OpenReadCompleted += (sender, args) =>
    {
    try
    {
    if (args.Error != null)
    throw args.Error;

    It would be really useful if this error bubbled it’s way all the way up to the UI. I always enjoy looking through other peoples code – and the code here is beautiful, but sometimes when you’ve got a client on your back waiting for results and things are going quite as planned, you don’t have the time to hunt down why things aren’t working.

    Again, many thanks for sharing your code. Keep up the fine work :)

    Malcolm

  12. #15 by John on October 24, 2010 - 10:21 am

    Is SLaB free for use? What are the restrictions if any?

    • #16 by david.poll on October 24, 2010 - 3:11 pm

      SLaB is about as open as it gets — I’ve put it out there under Ms-PL, and you’re more than welcome to use it as you see fit. Please remember, however, that I make no guarantees about it behaving correctly, supporting it, etc. Nonetheless, you’re welcome to go use/modify/distribute the code as you see fit :) .

  13. #17 by Nathan on December 17, 2010 - 12:55 pm

    Hi David,

    I was wondering if it would be possible to modify the Allow and Deny authorization rule to match against a RegEx pattern for matching roles and users? Would making this change potentially break anything in the content loader?

    Thanks,

    Nathan

    • #18 by david.poll on December 26, 2010 - 2:11 am

      In principle, it shouldn’t do anything bad/scary. I also thought about doing this, but ultimately decided to do simple string matching to simplify the syntax. You’re welcome to make modifications (and for that matter, though it’s been a long time since I looked carefully at that code, I think I provided extensibility through an interface for rules, so you can make your AllowRegex/DenyRegex if you want :) )

  14. #19 by Shane Ritchie on December 19, 2010 - 3:22 am

    Hi David,

    What is the best way I can change the xmlns:SLaB namespace reference on the MainPage.xaml to a local reference. I have put a lot of work getting my application working with your ContentLoader solution but I have just realized it has a dependency on your website being up. Can you help me please?

    Shane

    • #20 by david.poll on December 26, 2010 - 2:14 am

      Shane,

      There is no such dependency. The “xmlns:SLaB” reference is to an arbitrary string — it’s defined locally in the assemblies themselves and does not rely on my website being up. I could just have easily have made it “xmlns:SLaB=’http://somefakesite.com’”, and it likewise would have no dependency on that site’s existence. The Uri there is just an alias to the set of CLR namespaces defined in the SLaB assemblies. I had to choose something, so I chose a Uri that corresponds with my website — there’s no online magic there :)

      -David

  15. #21 by slyi on January 3, 2011 - 3:20 am

    Did you consider creating a xaml splash page for SLaB like http://dl.dropbox.com/u/6589941/jsdatabinding/index.html ?

  16. #22 by Denis Moiseenko on March 17, 2011 - 12:42 am

    Hi David,

    I tried to use your UiXamlSerializer from SLaB.Utilities.Xaml.Serializer.Phone.dll and SLaB.Utilities.Xaml.Serializer.UI.Phone.dll from SLaBv0.11 for Windows Phone 7 application, but any simple XAML object, such I serialized, throw me InvalidOperationException like “The Writer is closed or in error state”.

    XAML:

    C#:


    UiXamlSerializer uxs = new UiXamlSerializer();
    string s = uxs.Serialize(button); //throw Exception

    Libraries SLaB.Utilities.Xaml.Serializer.dll and SLaB.Utilities.Xaml.Serializer.UI.dll from SLaBv0.11work very well at the same code in Silverlight application.
    Does UiXamlSerializer work also for Windows Phone 7? Could you kindly clarify this for me?

    Denis

    • #23 by david.poll on March 17, 2011 - 7:48 pm

      UiXamlSerializer is less tested for WP7 — I may revisit it at some point (among other things, there are missing behaviors in WP7 that make it impossible to serialize things like Paths, etc. from 3rd party code). The regular XamlSerializer, on the other hand, should work fine.

  17. #24 by Carlos on April 20, 2011 - 2:54 pm

    I hope so David that your post will grow over time. Continue your good work. You helped a lot of people specially people like me who just started to make my away around.

    Carlos K.
    My Blog: womensplussizeclothes.org

  18. #25 by megasheng on May 31, 2011 - 1:13 am

    Very interesting topic.SLaB.Utilities.Xaml.Serializer.UI.Phone.dll from SLaBv0.11 for Windows Phone 7 application, but any simple XAML object, such I serialized, throw me InvalidOperationException like “The Writer is closed or in error state”.

(will not be published)



Please wrap all source code with [code][/code] tags.