none
Problem in Creating Silverlight 4 Projects using Visual Studio 2010 SP1

    Question

  • Hi,

    I have installed the following in my machine to work on Silverlight 4 development.

    1. Microsoft Silverlight 4 SDK

    2. Microsoft Silverlight 4 Developer Runtime

    3. Microsoft Visual Studio 2010 Professional Edition Service Pack 1

    4. Microsoft Silverlight 4 Tools for Visual Studio 2010

    When I create a new Silverlight 4 project in VS2010, I am getting an error "An update to Microsoft Visual Studio is required to work in Silverlight 4" and a link that takes me to a page where I can download "Microsoft Silverlight 5 Tools for Visual Studio 2010".

    My questions is, I have installed all the required sofware to work on Silverlight 4 developement. But why I need to install Silverlight 5 tools for VS2010 to work on Silverlight 4 development. I guess we don't need Silverlight 5 Runtime or SDK to work on Silverlight 4 development. Please advice.

    Thanks in advance.

    Tuesday, April 24, 2012 11:33 PM

Answers

  • Thanks for the reply, Syed.

    I have fixed the problem after doing the below steps.

    1. Uninstalled Silverlight 4 SDK, Silverlight 4 Runtime and Silverlight 4 tools for Visual Studio 2010.

    2. Reinstalled the components in the following order. i) Silverlight 4 Tools for Visual Studio 2010. ii) Silverlight 4 SDK and Runtime.

    Do you have any samples with Silverlight DataGrid? Thanks.

    Thursday, April 26, 2012 12:01 AM

All replies

  • anandanbalagan.ms

    there was no need to install visual studio SP1 for Silvelright 4, after you installed sp1, it might created the problem for silvelright 4, I suggest you to install silverlight 5 version too and if you want you can select silverlight 4 for development.

    Wednesday, April 25, 2012 10:08 AM
  • anandanbalagan.ms

    there was no need to install visual studio SP1 for Silvelright 4, after you installed sp1, it might created the problem for silvelright 4, I suggest you to install silverlight 5 version too and if you want you can select silverlight 4 for development.

    Wednesday, April 25, 2012 10:09 AM
  • anandanbalagan.ms

    there was no need to install visual studio SP1 for Silvelright 4, after you installed sp1, it might created the problem for silvelright 4, I suggest you to install silverlight 5 version too and if you want you can select silverlight 4 for development.

    Wednesday, April 25, 2012 10:09 AM
  • [url=http://www.spelaspel.se/]spela spel[/url]
    [url=http://www.bingomania.com/paas/bmn/mobile-bingo-games.action]mobile bingo[/url]
    
    Wednesday, April 25, 2012 11:13 PM
  • [url=http://www.spelaspel.se/]spela spel[/url]
    [url=http://www.bingomania.com/paas/bmn/mobile-bingo-games.action]mobile bingo[/url]
    
    Wednesday, April 25, 2012 11:13 PM
  • [url=http://www.spelaspel.se/]spela spel[/url]
    [url=http://www.bingomania.com/paas/bmn/mobile-bingo-games.action]mobile bingo[/url]
    
    Wednesday, April 25, 2012 11:13 PM
  • Thanks for the reply, Syed.

    I have fixed the problem after doing the below steps.

    1. Uninstalled Silverlight 4 SDK, Silverlight 4 Runtime and Silverlight 4 tools for Visual Studio 2010.

    2. Reinstalled the components in the following order. i) Silverlight 4 Tools for Visual Studio 2010. ii) Silverlight 4 SDK and Runtime.

    Do you have any samples with Silverlight DataGrid? Thanks.

    Thursday, April 26, 2012 12:01 AM
  • Do you have any samples with Silverlight DataGrid? Thanks.

    Nice to hear this.

    what do you want as datagrid sample.

    <UserControl x:Class="datagrid.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" 
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data">
      <Grid x:Name="LayoutRoot">
            <StackPanel Orientation="Vertical" >
    
                <data:DataGrid AutoGenerateColumns="True" x:Name="Dtgrd" IsReadOnly="True" Height="auto" HorizontalAlignment="Left"   VerticalAlignment="Top" Width="Auto" CanUserResizeColumns="False" CanUserReorderColumns="False" BorderThickness="3" />
            <data:DataPager HorizontalAlignment="Left"   Name="dataPager1" VerticalAlignment="Top"  PageSize="0"   Width="500" IsTotalItemCountFixed="True" />
            </StackPanel>
           
        </Grid>
    </UserControl>
    
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Animation;
    using System.Windows.Shapes;
    using System.Windows.Data;
    using System.Collections;
    using System.Reflection;
    
    namespace datagrid
    {
        public partial class MainPage : UserControl
        {
            static List<MyClass> _list = new List<MyClass>();
            
            public MainPage()
            {
                InitializeComponent();
                 fillCustomer();
               
                  var view = new PagedCollectionView(_list);
                  view.PageSize = 15;
                  Dtgrd.ItemsSource = view;
    
                  dataPager1.Source = view;
            }
    
    
            
    
            void fillCustomer()
            {
                for (int i = 0; i <100; i++)
                {
                    MyClass myclass = new MyClass();
                    myclass.Customerid = (i + 10).ToString();
                    myclass.Customer = (i + 10).ToString();
                    myclass.Customeradd = (i + 10).ToString();
                    myclass.Customerage = (i + 10).ToString();
                    myclass.Customerpincode = (i + 10).ToString();
                    myclass.Customerrname = (i + 10).ToString();
                    myclass.Customertel = (i + 10).ToString();
                    myclass.DOB = DateTime.Now;
                    _list.Add(myclass);
                }
    
            }
    
            private void ListBox_Loaded(object sender, RoutedEventArgs e)
            {
    
            }
    
            private void ListBox_SizeChanged(object sender, SizeChangedEventArgs e)
            {
    
            }
        }
    
        
        public class MyClass
        {
            private string customer = string.Empty;
    
            private string customerid = string.Empty;
    
            public string Customerid
            {
                get { return customerid; }
                set { customerid = value; }
            }
            public string Customer
            {
                get { return customer; }
                set { customer = value; }
            }
            private string customerrname = string.Empty;
    
            public string Customerrname
            {
                get { return customerrname; }
                set { customerrname = value; }
            }
            private string customeradd = string.Empty;
    
            public string Customeradd
            {
                get { return customeradd; }
                set { customeradd = value; }
            }
            private string customertel = string.Empty;
    
            public string Customertel
            {
                get { return customertel; }
                set { customertel = value; }
            }
            private string customerpincode = string.Empty;
    
            public string Customerpincode
            {
                get { return customerpincode; }
                set { customerpincode = value; }
            }
            private string customerage = string.Empty;
    
            public string Customerage
            {
                get { return customerage; }
                set { customerage = value; }
            }
    
            public bool IsThere { get; set; }
            public DateTime DOB { get; set; }
    
            public IEnumerable PhoneNos { set; get; }
        }
    
    
    
    }
    
    Thursday, April 26, 2012 2:38 AM