• Home
  • About
  • BestBloggingIdeas
  • DotNetLearningSource
  • FORUM
  • Joblinks
  • Latest News
  • Policy
  • POSTS
  • SimplySqlServer.Com && SimplyAspDotNet.Com
  • Sitemap

Join Ours Forum

Asp.Net,C#,Ajax,Sql server,silverlight,Javascript codes exambles articles,Programming exambles

RSS Feed
  • Bounty Huge Roll [Amazon Frustration-Free Packaging]
  • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
  • The Basic Overview of Windows Mobile Development Asp.Net C#
  • Overview of Sql server extended properties Asp.Net C#
  • How to Use Sql Server Extended properties using visual studio Asp.Net C#
  • Adobe Dreamweaver Templates Accelerate Web Development
  • Top Tips for Web Design Projects
  • How to Achieve a Good Web Design Structure
  • To Use Or Not To Use Website Templates
  • Five Tips to a Successful Website
  • Top 10 Articles,


    Silverlight Datagrid Select Update Delete Insert Asp.Net C#

    Differences Similarities Benefits Between Typed Datasets and Untyped Datasets asp.net c#

    Linq to Sql Introduction Entities Ado.Net C# SqlClasses Attributes Linq Mapping

    Linq Programming/How Linq Works?/Linq Implementation In Asp.Net C# Ado.Net

    Performing Developing Using Investigating Asp.Net 2.0 Ajax Application Development Asp.Net C#

    Hosting/Install Wcf Services in a Windows Service Asp.Net C#

    Connecting Silverlight to Wcf Asp.Net C#

    Silverlight Data Grid Data Binding WCF Asp.Net C#

    Invoking/Accessing/Calling WCF Service Without Adding/Creating Proxy/Reference Asp.Net C#

    Performing Doing Creating Insert Update Delete sql data Using Linq Database Asp.Net C#

    How to localize a silverlight application

    Posted by on April 13, 2010 Leave a comment (10) Go to comments

    Introduction:
    In this article,i am going to explain about how to localize a silverlight application.Localized resources in Silverlight are very similar to the resource file methods just
    given.

    Main:
    1. After you create your Silverlight project, add a new resource file called, for
    example, Resources.resx. This is the default resource file. Visual Studio will
    also create a class to access these resources.
    2. Add a resource file for each culture you will need, including the appropriate
    culture code in the filename, e.g., Resources.it.resx or Resources.
    fr-CA.resx.
    3. In the project properties, go to the Sliverlight tab, and click the Assembly
    Information… button. Select the neutral language for your project (in my
    example, this is English, with no country).
    4. Now edit the project file manually by right-clicking it in the Solution Explorer
    and selecting Unload Project. Right-click the project again and select Edit
    project.csproj.
    5. Edit the tag to include the non-default cultures you
    want. For example:
    it;fr-CA
    6. Save and close the file.
    7. Reload the project by right-clicking the project in Solution Explorer and selecting
    Reload Project.
    8. Modify each resource file appropriately with translated versions of each
    resource. Make sure each resource file’s access modifier is public.
    9. Wrap the Visual Studio-generated wrapper class in another class:

    //for Silverlight to be able to bind to resources, we need to wrap
    //them in another class
    public class LocResources
    {
    public LocResources()
    { }
    private static LocSilverlight.Resources resource = new
    ?Resources();
    public LocSilverlight.Resources Resource
    { get { return resource; } }
    }

    10. Add a reference to the wrapper class to the Application.Resources section of
    App.xaml:

    <Application xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/
    presentation”
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
    xmlns:local=”clr-namespace:LocSilverlight”
    x:Class=”LocSilverlight.App”>
    <Application.Resources>
    <local:LocResources x:Key=”LocResources”/>
    </Application.Resources>
    </Application>
    11. Bind UI elements to the resources:
    <UserControl x:Class=”LocSilverlight.MainPage”
    xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/
    ?presentation”
    xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
    xmlns:d=”http://schemas.microsoft.com/expression/blend/2008”
    xmlns:mc=”http://schemas.openxmlformats.org/
    ?markup-compatibility/2006”
    xmlns:dataInput=”clr-
    ?namespace:System.Windows.Controls;assembly=
    ?System.Windows.Controls.Data.Input”
    mc:Ignorable=”d”
    d:DesignHeight=”220” d:DesignWidth=”243” >
    <Grid x:Name=”LayoutRoot” Background=”White”
    Height=”181” Width=”183”>
    <dataInput:Label Name=”labelMessage”
    Height=”50”
    Width=”100”
    Margin=”12,12,0,0”
    HorizontalAlignment=”Left”
    VerticalAlignment=”Top”
    Content=”{Binding Path=Resource.Message,
    Source={StaticResource
    LocResources}}”/>
    <Button Name=”button1”
    Height=”23”
    Width=”75”
    Margin=”37,76,0,0”
    HorizontalAlignment=”Left”
    VerticalAlignment=”Top”
    Content=”{Binding Path=Resource.buttonExit,
    Source={StaticResource
    LocResources}}”/>
    </Grid>
    </UserControl>

    12. Test the application in different languages by editing the HTML or ASPX file in
    the accompanying web project with the following lines in the tag:

    <object ...>
    ...
    <param name=”culture” value=”it-it” />
    <param name=”uiculture” value=”it-it” />
    ...
    </object>

    Conclusion:
    Hope this helps,
    Happy Coding.

    SILVERLIGHT
    ← How to Protect Data Used in Multiple Threads/asp.net/c#
    How to transfer/Import database/sql data to xml using asp.net/c# →

    Learn Easily Using Video Tutorials


    How to choose the right Java IDE – explained Eclipse NetBeans BlueJ

    Developing/Creating/Performing/Configuring Java Applications Using Eclipse IDE

    Step By Step Guide for Download/Install Configure Eclipse IDE for Java

    Editing data with the GridView control Asp.Net C#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Registering/Configuring Web Controls globally in web.config file asp.net c#

    Best way to prepare asp.net Interview - Success Stories

    Download Important Questions and PPT's:

    Sql Server Important Questions Online free download

    Dotnet Important Questions Online free download

    Exploring Linq to Sql Process Flow

    Learn how to perform silverlight programming

    Learn OOPs concepts in better and well manner

    Learn Ajax in better and well manner

    Leave a comment

    10 Comments.

    1. seo April 22, 2010 at 12:32 am

      Whats happening, I discovered this blog by error when I was browsing Bing ,next I arrived to your web site. I need to say your site is interesting I really like your theme! Today I don’t have the free time at the current moment to fully browse your sitebut I have bookmarked it. I will be back in a day or two. Thanks for a good site.

    2. forex robot May 6, 2010 at 4:41 am

      What a great resource!

    3. contested divorce May 14, 2010 at 1:30 pm

      Hi – I wanted to say thank you for an cool site about a subject I have had an interest in for a long time now. I have been lurking and reading the comments avidly so just wanted to express my thanks for providing me with some very good information. I look forward to more, and taking a more proactive part in the discussions here, whilst picking up some knowledge too!!

    4. quickie divorce May 15, 2010 at 9:26 am

      Have found your web page. My pal mentioned it to me before, yet never got around to checking it out until now. I must express, I’m floored. I really enjoyed reading through your posts and will absolutely be back to get more.

    5. Coretta Murrill June 17, 2010 at 11:29 pm

      Hi there, I found your blog via Google while searching for first aid for a heart attack and your post looks very interesting for me.

    6. Tom And Jerry Games June 26, 2010 at 7:09 am

      I believe you might like what I came across on this internet site today.

    7. Catrice Slusher July 17, 2010 at 3:03 pm

      I have been looking for these, and now find, thank you.

    8. Claire Lauters August 5, 2010 at 2:05 am

      Book marked the sites. Appreciate discussing. Absolutely value enough time from my tests.

    9. Birgit Been August 16, 2010 at 10:43 am

      you look like a million dollars.you lood outstanding.

    10. antique cabinet May 7, 2011 at 6:53 pm

      The new Zune browser is surprisingly good, but not as good as the iPod’s. It works well, but isn’t as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser that’s not an issue, but if you’re planning to browse the web alot from your PMP then the iPod’s larger screen and better browser may be important.

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    *

    *


    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Enter your email address:

    Delivered by FeedBurner

    • Recent Posts

      • Bounty Huge Roll [Amazon Frustration-Free Packaging]
      • XML Introduction to XML VHS Video Training, 1 hr., 32 minutes.
      • The Basic Overview of Windows Mobile Development Asp.Net C#
      • Overview of Sql server extended properties Asp.Net C#
      • How to Use Sql Server Extended properties using visual studio Asp.Net C#
    • Search by Tags!

      Application AspNet Basic between Black Bluetooth Build Business Collection Consultants Design Development Downloading effective Excel Experts Generics Implement Installing Interview Logic Management Microsoft Minutes Object Outlook Professional Programmer Programming Project Projects Questions Ready Select Server Services Silverlight Source Strings Studio Through using Visual Website Wordpress
    • Archives

      • August 2011
      • June 2011
      • May 2011
      • April 2011
      • March 2011
      • February 2011
      • December 2010
      • November 2010
      • October 2010
      • September 2010
      • August 2010
      • July 2010
      • June 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
      • October 2009
      • September 2009

    Copyright © 2012 NetProgrammingHelp.com

    Δ Top