silverlight-3.0

Remove focus rectangle from ListBox item

How do you remove the focus rectangle from a silverlight ListBox? I have this code: <ListBox x:Name="MyListBox" > <ListBox.ItemTemplate> <DataTemplate> <Grid > ...snipped... </Grid> </DataTemplate> </ListBox.ItemTemplate> <ListBox.ItemContainerStyle> <Style Targe...

Access Windows Azure API via Silverlight?

I am interested in the best practices to access Windows Azure API from a Silverlight application? I am pretty sure as an experienced developer it will require me to build a back end web service that silverlight can then use as an interface between Azure API and Silverlight. But I am concerned with speed and security...For instance I am...

Is there a JSON serializer in the Silverlight

I really want this so I can serialize / deserialize some complex data objects using JSON. ...

can't pass collection class as parameter to RIA Services

I'm having a problem passing an list of application-defined objects to RIA services. I get a compile error saying "Error Parameter 'filters' of domain operation entry 'GetPagedExams' must be one of the predefined serializable types." Here's the query in the DomainService: [Query] public IQueryable<ExamEntity> GetPagedExams(int first, i...

How to Detach a Behavior from an UIElement in Code Behind for Silverlight ?

In Silverlight 3.0 I have added a custom behavior to some UIElement in Code Behind. I wanted to remove the Behavior later in runtime. What is the C# syntax to Detach an already added Behavior from an UIElement ? ...

Silverlight datagrid, style text in cells

Hi, What I am trying to do - I have a grid with some data, lots of it being text, what I want is to be able to hightlight a certain string within all that text.... I have the term...test The text in the cell is "test 123 testing 123" I want the word test to appear yellow, bold (or any other style I need). I have done this with an asp.n...

Can't access font resource in Silverlight class library

I have a reasonably large Silveright 3.0 project on the go, and I'm having issues accessing a couple of custom font resources from within one of the assemblies. I've got a working test solution where I have added a custom font as a resource, and can access it fine from XAML using: <TextBlock Text="Test" FontFamily="FontName.ttf#Font Na...

general style & CSS support in Silverlight

I have several Silverlight component which are going to be used inside the browser, is it possible to pass the styling from the page to the Silverlight components? I'm aware of 'initParams' in Silverlight and how these could be used to do this, but what I wanted to know is there any support for CSS and what is the preferred way to do st...

Silverlight 3 scroll textblock in code

i need to scroll the textblock text. For example, the textblock contains 700 words. These words are populated to the textblock from code behind as it could be a different 700 words depending on some "stuff". There is a textbox on this form as well. The user types the words in the textblock into the textbox. As they type i keep track of w...

Spacing in Silverlight

Hi All, I am brand new to Silverlight and I am having a hard time with spacing. As you can see below, I have two lines of labels each in a Horizontal StackPanel. When they display there is a wide space (about an inch) between them. I can't figure out how to reduce this spacing. The height characteristics does not seem to do it. Thanks...

Accessibility for Silverlight Combobox Items

In my Silverlight page I have a combobox. In the code-behind I'm filling the combobox items like so: this.ProblemList.Items.Add(Strings.Review_SelectProblem); this.ProblemList.Items.Add(Strings.Review_IncorrectCharacters); this.ProblemList.Items.Add(Strings.Review_MissingText); ... this.ProblemList.SelectedIndex = 0; //Set the default ...

Creating a Business Type Application Using Silverlight 3 - Is it Appropriate?

I'm considering using Silverlight for a business type application which will contain probably a dozen or so screens. The screens will contain data entry forms with edit fields, grids, lookups, calendars, etc. Typical business application type screens. I want this to run in the browser but don't want to mess with HTML, JavaScript, CSS etc...

silverlight 3.0 control in master page in asp.net 3.5

Hi, Can any body tell me how to add silverlight 3.0 control in master page in asp.net 3.5 (ide VS2008)? ...

Can I add dll to Silverlight 3 application?

Hi all. I am tring to add dll file to my Silverlight application but get error which says that I can't add reference which wasn't built with Silverlight runtime. Is there any solution? Thanks. ...

Dynamic (programmaticaly) ItemTemplate (DataTemplate) in Silverlight?

I have this code: <Grid x:Name="LayoutRoot"> <Grid HorizontalAlignment="Left" Height="900" Width="1200"> <Grid.RowDefinitions> <RowDefinition Height="300"></RowDefinition> <RowDefinition Height="200"></RowDefinition> <RowDefinition Height="200"></RowDefinition> </Grid.RowDefinition...

How do I calm down this hyper event listener

I have a simple silverlight toolkit Chart and a standard Slider in the same control. I want the Chart to be updated whenever the slider value changes. This oughta be simple. I tried binding to the .ValueChanged event on the slider but this appears to fire far too often (eg: multiple times while the slider is still in motion). I'm only in...

SL3 Nav framework + MVVM ligh

Hi All, Thanks for taking time to read through my question. Any guidance is really appreciated. I am using SL3 Navigation framework in my LOB application. I m currently using MVVM Light as the framework guidance. I have a datagrid consisting of employees and when the "user" clicks on "employee id link" in the datagrid, i am transferr...

Can I get Silverlight Navigation framework to clear its cache?

Basically, I'm using "View-first" style of MVVM hookup - meaning that the view instantiates the viewmodel (well, it grabs it from the service locator which uses a unity container to resolve it but whatever). This works pretty well most of the time - the Navigation framework paradigm seems to work best with the view-first approach, as the...

silverlight -how to install

please I can't able to install the silverlight on vs2008.please tell me how to install silverlight on vs2008. give me step by step description otherwise any most preferable link for that I am going in correct way.& how the controls are to be in vs2008. & also me give a beginner example for that i can start to teach the silvelight. plea...

Silverlight (WCF RIA) - PagedCollectionView throws ArgumentOutOfRangeException on Context.RejectChanges()

Hi to all I have a problem when i use the PagedCollectionView in my business application. I made a sample solution and i could reproduce the exception that PagedCollectionView throws. This happens when i use two or more i.e. DataGrids which have as an ItemSource sorted and filtered PagedCollectionViews. All this PagedCollectionViews ar...