Mar 16 2010

FREE EBOOK: Programming Windows Phone 7 Series

Category: Mix 2010 | Silverlight | Windows PhoneBil@l @ 22:56

Grab it here: Programming Windows Phone 7 Series

Enjoy!!

Tags: , ,

Mar 16 2010

Windows Phone 7 Development (Silverlight & XNA)

Category: Mix 2010 | Silverlight | Windows Phone 7Bil@l @ 22:46

Here is a bunch of great resources for you to start:

- Windows Phone 7 Series Developer Training Kit

- Introducing Windows Phone 7 Development Tools

- Getting started with Silverlight and Windows Phone 7 Development

- Developing for Windows Phone 7 for Silverlight

 

This is just a start ;)

 

Enjoy

Tags: , ,

Mar 15 2010

Develop for Windows Phone 7

Category: Mix 2010 | Silverlight | Windows PhoneBil@l @ 22:47

Today at Mix, the Windows Phone Application Platform was revealed!

I attended a lecture on the application model, flavors of what we can develop on a Windows Phone, WP emulator and much more!

Visit the Windows Phone 7 Series and download all you need to start your first app!!

You can also find good bits here: Windows Phone Development

Enjoy it!

Tags: , ,

Jan 7 2010

Loading XAML at runtime when using external assemblies in Silverlight

Category: Silverlight | Telerik | Telerik ControlsBil@l @ 20:20

In an application I am working on, there is a need to load XAML dynamically from the server to populate a Telerik RadRibbonBar control. The XAML to be loaded is something similar to this:

<StackPanel xmlns:telerikRibbonBar="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonBar"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:cmd="clr-namespace:Microsoft.Practices.Composite.Presentation.Commands;assembly=Microsoft.Practices.Composite.Presentation">
    <telerikRibbonBar:RadRibbonBar x:Name="rbnBar"
                                   ApplicationName="VBC Office Tool"
                                   Margin="0"
                                   ApplicationButtonImageSource="../AppIcon.png">
        <telerikRibbonBar:RadRibbonTab Header="VBC">
            <telerikRibbonBar:RadRibbonGroup Header="Clipboard">
                <StackPanel Orientation="Horizontal">
                    <telerikRibbonBar:RadRibbonButton x:Name="btn1"
                                                      CollapseToSmall="Never"
                                                      Size="Large"
                                                      Tag="Module 1"
                                                      cmd:Click.Command="{Binding Path=RibbonCommand}"
                                                      cmd:Click.CommandParameter="{Binding Path=Tag, RelativeSource={RelativeSource Self}}"
                                                      Text="Paste">
                        <telerikRibbonBar:RadRibbonButton.Content>
                            <Image Source="../paste.png" />
                        </telerikRibbonBar:RadRibbonButton.Content>
                    </telerikRibbonBar:RadRibbonButton>
                    <telerikRibbonBar:RadRibbonButton x:Name="btn2"
                                                      HorizontalContentAlignment="Center"
                                                      CollapseToSmall="Never"
                                                      Size="Large"
                                                      Tag="Module 2"
                                                      cmd:Click.Command="{Binding Path=RibbonCommand}"
                                                      cmd:Click.CommandParameter="{Binding Path=Tag, RelativeSource={RelativeSource Self}}"
                                                      Text="Create Document">
                        <telerikRibbonBar:RadRibbonButton.Content>
                            <Image Source="../save.png" />
                        </telerikRibbonBar:RadRibbonButton.Content>
                    </telerikRibbonBar:RadRibbonButton>
                </StackPanel>
            </telerikRibbonBar:RadRibbonGroup>
        </telerikRibbonBar:RadRibbonTab>
        <telerikRibbonBar:RadRibbonTab Header="iRisk" />
    </telerikRibbonBar:RadRibbonBar>
</StackPanel>

 

At the client-side, I am adding the XAML into a ContentControl as follows:

System.Windows.Resources.StreamResourceInfo streamInfo =
    System.Windows.Application.GetResourceStream(new Uri("ContextMenuModule;component/View/RibbonBar.xaml", UriKind.Relative));
if ((streamInfo != null) && (streamInfo.Stream != null))
{
    using (System.IO.StreamReader reader = new System.IO.StreamReader(streamInfo.Stream))
    {
        UIElement uribbon = (UIElement)XamlReader.Load(reader.ReadToEnd());
        this.ribbon.Content = uribbon;
    }
}

On the XamlReader.Load() method, I was getting the following exception:

AG_E_PARSER_BAD_TYPE 

Before I give the solution that I found on a forums’ blog post (http://forums.silverlight.net/forums/t/44877.aspx), let me explain to you the environment where the above code is executing.

It is a Silverlight-Prism application where I have the following structure:

  1. Shell app
  2. Module app

 

The above code is executing inside the Module app and proper references are added to all Telerik assemblies.

Seems that in Silverlight, when loading XAML dynamically in a class library (A) or Silverlight application (B), and then that app or class library is used by another class library (C) or Silverlight app (D), then all external assemblies that were used by (A) and (B) should also be added to (C) and (D).

Therefore, all Telerik assemblies used by Module app should also be added to the Shell application.

 

Hope this helps,
Regards

Tags: , ,

Dec 20 2009

Silverlight SDK Sample Browser

Category: SilverlightBil@l @ 21:38

I have read the Silverlight documentation several times and never noticed the SDK Sample Browser, really interesting. You can run all the samples that are written as part of the official documentation.

Check it out here: Silverlight SDK Sample Browser

 

Hope this helps,
Regards

Tags:

Dec 19 2009

PRISM - A Developer's Introduction

Category: prism | Silverlight | WPFBil@l @ 10:06

I will be presenting next week a session on Composite Application Library - Prism, an introduction to developers to start using Prism in their applications.

If you like to join, please come join us at: PRISM - A Developer's Introduction

 

See you there ;)
Regards

Tags: , ,

Dec 10 2009

WebUI Test Studio 2.0 launches today

Category: Silverlight | Telerik Controls | WebUIBil@l @ 07:08

Read more here:

WebUI Test Studio 2.0 launches tomorrow (with webinar)

 

Hope this helps,
Regards

Tags: , ,

Dec 9 2009

Service Pack 1 released – RadControls for Silverlight/WPF Q3 2009

Category: Silverlight | Telerik ControlsBil@l @ 14:39

Telerik just released SP1 for the RadControls for Sivlerlight/WPF Q3 2009.

Read more here: Service Pack 1 released - RadControls for Silverlight/WPF Q3 2009

 

Hope this helps,
Regards

Tags: ,

Dec 4 2009

Sharing Silverlight Assemblies with .NET Apps

Category: .NET | SilverlightBil@l @ 07:03

Here is a great article from the CLR team on how to share some of the .NET assemblies with Silverlight:

 Sharing Silverlight Assemblies with .NET Apps

 

Hope it helps,
Regards

Tags: ,

Dec 3 2009

Prism Videos by Mike Taulty

Category: Prism 2.0 | SilverlightBil@l @ 06:31

A very good resource to learn more about Prism can be found here:

Mike Taulty Video Series on Prism

 

Hope you enjoy them,
Regards

Tags: ,