September, 2012

  • Wriju's BLOG

    Windows 8 Application and OData with Netflix

    • 3 Comments

    Windows 8 and OData goes hand in hand. Today while discussing with my sweetheart, I started working on this demo on how to consume OData with Windows 8 Style Application. It does not follow the UX design guideline. However, an honest attempt to demonstrate the capability.

    I have used the most famous Netflix OData from http://odata.netflix.com/v2/Catalog/

    So I have created the Blank Windows Store application

    image

    Then have added the reference

    image

    If you get an error, then most probably the WCF Component is not installed. Follow the error message and download from the link

    image

    After that add the below XAML in MainPage.xaml

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
    
        <Grid.RowDefinitions>
    
            <RowDefinition Height="100"></RowDefinition>
    
            <RowDefinition Height="*"></RowDefinition>
    
        </Grid.RowDefinitions>
    
        <Button x:Name="btnLoad" Content="Load Them" Grid.Row="0" FontSize="36" Click="btnLoad_Click"></Button>
    
        <ListBox x:Name="lstData" Grid.Row="1">
    
            <ListBox.ItemTemplate>
    
                <DataTemplate>
    
                    <StackPanel Orientation="Horizontal">
    
                        <Image Stretch="Uniform" Height="100" Width="100" Margin="3,0">
    
                            <Image.Source>
    
                                <BitmapImage UriSource="{Binding Path=BoxArt.LargeUrl}"></BitmapImage>
    
                            </Image.Source>
    
                        </Image>
    
                        <TextBlock Text="{Binding Path=Name}"></TextBlock>
    
                            
    
                    </StackPanel>
    
                </DataTemplate>
    
            </ListBox.ItemTemplate>
    
        </ListBox>
    
    </Grid>

    After that C# Code would look like,

    NetFlixSvc.NetflixCatalog context = new NetFlixSvc.NetflixCatalog(new Uri(@"http://odata.netflix.com/v2/Catalog/", UriKind.RelativeOrAbsolute));
    
    DataServiceCollection<NetFlixSvc.Title> _titles;
    
    public void LoadData()
    
    {
    
        _titles = new DataServiceCollection<NetFlixSvc.Title>();
    
        var query = context.Titles;
    
        _titles.LoadAsync(query);
    
        _titles.LoadCompleted += _titles_LoadCompleted;
    
    }
    
    void _titles_LoadCompleted(object sender, LoadCompletedEventArgs e)
    
    {
    
        lstData.ItemsSource = _titles;
    
    }
    
    private void btnLoad_Click(object sender, RoutedEventArgs e)
    
    {
    
        LoadData();            
    
    }

    The output looks like,

    image

    I am again telling that this violets the basic Windows 8 Style Application design guideline.

    Namoskar!!!

  • Wriju's BLOG

    Windows Phone Webcast Series Recording Link

    • 1 Comments

    Last week we have delivered a series of sessions on Windows Phone. Here are the links

    Event Name Event Date Recording URL
    Getting Started – Development Tools & Dev Center 3-Sep-12 https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=1A-28-E7-B8-57-C9-CF-40-EB-F7-5E-49-73-61-7E-32&Culture=en-IN&community=0
    Designing Apps for Windows Phone 4-Sep-12 https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=D9-D2-E3-D2-1B-4B-96-F9-C8-FA-27-42-F6-02-4F-CC&Culture=en-IN&community=0
    Developing Apps for Windows Phone 5-Sep-12 https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=D9-D2-E3-D2-1B-4B-96-F9-89-1A-6A-A3-EE-C1-87-46&Culture=en-IN&community=0
    Performance analysis & optimization for Windows Phone apps 6-Sep-12 https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=D9-D2-E3-D2-1B-4B-96-F9-8A-3E-D4-B5-57-0A-0F-8E&Culture=en-IN&community=0
    Making your apps submission ready 7-Sep-12 https://msevents.microsoft.com/CUI/InviteOnly.aspx?EventID=D9-D2-E3-D2-1B-4B-96-F9-64-1F-AD-D7-27-18-18-F5&Culture=en-IN&community=0

    Namoskar!!!

  • Wriju's BLOG

    Windows 8 App Fest in India

    • 1 Comments

    Sept 21 - 22, 2012. http://www.microsoft.com/india/events/win8appfest/

     image

    Namoskar!!!

  • Wriju's BLOG

    Windows Phone Post Webcast Resources

    • 0 Comments

    Today Sept 3, 2012 I have delivered MSDN Webcast on Windows Phone Application Development. Thanks for the amazing responses. It went for 2 hours and so many questions

    Below are some resources

    Dev Center

    Windows Phone Developer Center

    This is where you go register for marketplace, submit, and manage your app publication process for Windows Phone. We also attempt to create a rational mapping of the content landscape, but we have some limitations on what we can do here, and it often ends up not being as clear as we'd like. This means that App Hub ends up 'mostly' being targeted at the actual 'program' associated with registering and submitting your application.

    http://dev.windowsphone.com

     

    Learn to Build Windows Phone Apps

    http://wpdev.ms/learnwpdev

     

    Downloads

    This is where you get the latest developer tools for Windows Phone, (always free as in beer).

    http://wpdev.ms/wpdevdownloads

     

    Registration Walkthrough

    Explains how you register for an account.

    http://wpdev.ms/aboutreg

     

    Submission Walkthrough

    Explains how you submit an application for certification.

    http://wpdev.ms/understandsub

     

    Certification Requirements

    http://wpdev.ms/certificationreq

     

    Forums

    http://wpdev.ms/wpdcforums

     

    Developer Support

    http://wpdev.ms/getdevhelp

     

    MSDN

    Primary Windows Phone node in the MSDN Library

    This is our 'official' documentation. Note, not _all_ of the official documentation lives under this node. Since Windows Phone's application platform is predominantly based on Silverlight and XNA, you also need to be aware of the key nodes for those specific technologies as well. (supra.).

    http://wpdev.ms/wponmsdn

     

    MSDN Library, primary node for XNA Game Studio 4.0

    This includes developing Windows Phone games using the XNA Framework, in depth.

    http://wpdev.ms/xnaonmsdn

     

    MSDN Library, primary node for Silverlight for Windows Phone, (WP7.1)

    This is the Silverlight specific documentation for Windows Phone 'Mango'.

    http://wpdev.ms/sl4onmsdn

     

    Windows Phone User Experience Guidelines

    This is pretty comprehensive, but a little to meaty for most folks. We'll have a lot more information about UX on Windows Phone in the coming weeks and months.

    http://wpdev.ms/wpuxguide

     

    Building a Windows Phone Application from Start to Finish

    This is a pretty cool guide the P&P guys did, to walk you through the entire process of building an app.

    http://wpdev.ms/starttofinish

     

    Microsoft Patterns & Practices: WP Developer Guide

    A set of three specific guides to building WP apps, from soup to nuts.

    http://wpdev.ms/wppatt

     

    "How To" Index

    An index of all of the 'how to' documentation put together by the doc team.

    http://wpdev.ms/wphowtos

    Code and resources

    Windows Phone Training Kit 7.1

    A different set of hands on labs, targeting the new features and functionality of Windows Phone 'Mango'.

    http:/wpdev.ms/wpdevtrain

     

    Official Sample Code

    This is a large set of sample code that's published inside our 'official' documentation on the MSDN Library.

    http://wpdev.ms/officialsamples

     

    Patterns & Practices Labs

    Hands on Labs to go with the PNP Guide.

    http://wpdev.ms/pnplabs

     

    Video

    WP for Absolute Beginners

    Astonishingly good series of many videos about how to program for Windows Phone. Even though it is targeted at people who do not know programming at all, I highly recommend it, because it is so well 'grounded,' and gives you a great understanding of why things are done the way they are in C#, IMO.

    http://wpdev.ms/beginvids

     

    Mango Jumpstart Training

    Rob and Andy deliver the end-to-end textbook on Windows Phone development, all right on your computer in an easy to consume video format. From their mouths to your brain.

    http://wpdev.ms/wpmgojs

     

    Microsoft Design Toolbox training

    Includes a lot on Windows Phone, including the 'extra credit course,' four projects with six sessions each, and many new 'tutorials'.

    http://wpdev.ms/designtb

     

    Inside Windows Phone Show

    A weekly interview with a person of note involved in developing and/or evangelizing the Windows Phone developer ecosystem. Hosted by yours truly.

    http://wpdev.ms/insidewp

     

    Streaming videos of our sessions at the MIX 11 event last April, (where we unveiled the WP Mango app platform).

    http://wpdev.ms/wpmix11

     

    Windows Phone at last November's //BUILD event.

    http://wpdev.ms/phoneatbuild

     

    Windows Phone at Tech Ed Europe 2012

    http://wpdev.ms/phoneatteeemea2012

     

    Development AddOns

    Silverlight Toolkit for Windows Phone

    This would have been ideally packaged directly within the WP SDK, but the harsh realities of a big software company sometimes mean you don't get 'ideal'. They are super important and cool.

    http://wpdev.ms/wpsltk

    Coding4Fun Tools

    Who can argue with 'fun'? I know i can't.

    http://wpdev.ms/code4fun

    Windows Azure Toolkit for Windows Phone

    Makes it easy to build apps (and games), that leverage Azure services. This is an amazing feat in and of itself, worthy of several academy awards, at least.

    http://wpdev.ms/wpwaztk

     

    Namoskar!!!

Page 1 of 1 (4 items)