silverlight

What is the Silverlight equivalent of ComboBox.TextSearch.TextPath?

What is the Silverlight equivalent of ComboBox.TextSearch.TextPath? ...

Ajax-style Style for Silverlight BusyIndicator?

I'm looking for an example Style to change the look of the Silverlight BusyIndicator to more like the "spinning wheel" look of AJAX apps. A lap around google produces some links to where people are creating new controls to achieve the same thing (I suspect they pre-date the BusyIndicator) but I'd rather skin the BusyIndicator if possibl...

How to prevent unauthorized access to media streams

I have a client who is using Siverlight media streaming and wants to start charging for access to certain videos (pay-per-view). Many of those videos with be live-streamed. I am looking for a solution to restrict the media streams to only the clients who have paid. As it stands I think each video resource is located at fixed URL - if y...

Silverlight IIS6 with windows authentication deployment

After a series of extremely frustrating failures I managed to set up Silverlight using windows authentication following these steps in iis7.5 http://rouslan.com/2009/03/20-steps-to-get-together-windows-authentication-silverlight-and-wcf-service/ (I had to build my own windows server box, which was a learning experience in itself). Ho...

Reversing an animation in Silverlight on button press or any other event

Hi, How would I reverse a double animation in Silverlight on an event? For example, lets say I have an ellipse as a path and I am moving a shape along this path in an infinite loop. If I press a button, I want to reverse the direction of the spin (clockwise <-> counterclockwise). To be more specific, I am using the PathListBox object t...

allowing clicks on Button in ComboBoxItem when IsHitTestVisible is false

Setting the IsHitTestVisible="false" has the effect of having the whole ComboBox's drop area unresponsive to clicks. The same goes for setting to true. With a ComboBox I don't have to create any storyboard to make ComboBox animation like but I found this issue. How can one make the ComboBoxItem area unclickable except for the button ...

ListBoxDragDropTarget prevents ListBox from filling its parent control

Its extremely easy with the Silverlight Toolkit to enable basic drag and drop. http://silverlightfeeds.com/post/1325/Silverlight_Toolkit_adds_DragDrop_targets.aspx Unfortunately it seems that the wrapper ListBoxDragDropTarget screws up the normal default behavior of a ListBox which is to stretch itself to the parent control - such as a...

Lookup Edit Column for DataGrid in Silverlight/Wpf?

Hi In windows app and also any data-Grid's Component, released for windows app, kind of column exist. That "Column-type" use for tables have relation(foreign_key) with another table and load one column from master table (have primary_key) Instead of itself (foreign_key)! So I want do same thing for data-grid in the silver-light and wpf.....

Resolve blocking issues when simultaneously calling multiple methods on a WCF service from Silverlight

I've just read this interesting article regarding simultaneously calling multiple methods on a WCF service from Silverlight: http://weblogs.asp.net/olakarlsson/archive/2010/05/20/simultaneously-calling-multiple-methods-on-a-wcf-service-from-silverlight.aspx The article states: "It turns out that the issue is founded in a mix of Silverl...

Silverlight Dockpanel missing in toolbox

I have installed Silverlight3_tools and Silverlight_sdk and still unable to find DockPanel in the toolbox. Both the installers installed without asking for a save location. How do I find the reference now? I am using VS 2008 SP1 on win XP sp2 Thanks for any help.. ...

Rebinding all properties of all elements in the visual tree?

I know that I can rebind all instances of a specific property for a specific type of element, as in this method that rebinds the Text property of all Textblocks. public void Rebind() { foreach (var textBlock in LayoutRoot.GetDescendents().OfType<TextBlock>()) { BindingExpression bindExp = textBlock.GetBindingExpression(TextBlock...

Cannot localize dynamically loaded XAP.

Hello, I have a Silverlight (3.0) application, divided in a couple of XAP-files that are only loaded if the particular application part is needed. Every of this application parts has it's own string resources that are read out by a ResourceManager instance. But it seems that for these dynamically loaded XAPs only the default language is...

Silverlight - Auto-resize textbox to fill up empty space

Hey, Ok this is what I wish to do. I have a resizeable window which has 3 controls in same row in flowing order: textBlock, textBox and button. textBlock and button have dynamic texts. So theirs size depends upon text inside. Now what I wish to do is that textBox in the middle is always filling up all empty space between textBlock a...

Should I pivot/crosstab db data on the server or client?

Hi, I have a Silverlight 3 app using WCF RIA Services and Entity Framework for the data-layer. I need to pivot some data and was wondering what the best practice is: Should the service return pivoted data, or should it just return a standard entity set and the client do the pivoting? Bearing in mind that the data needs to be editable s...

Server <-> silverlight client communication with potential heavy traffic

I'm working on a design for my new application and I need to make a decision what sort of communication is best for Silverlight client and a server. (it could be a winform app or a web app) Couple of main points: Multiple Silverlight clients will connected to the Server. Most of the client-to-client communication will go through the s...

Problem displaying new image resource in Silverlight 4 app

Hi, I have a Silverlight application that I am working on. I have a few different custom button styles that use a ContentTemplate to display an Image as a Button, such as: <Style x:Key="CancelButtonStyle" TargetType="Button"> <Setter Property="Cursor" Value="Hand"/> <Setter Property="Template"> <Setter.Value> ...

Unable to access EntityCollection on silverlight client

Hi! I have created a silverlight application, using the silverlight business application template. I added a ADO.NET entity data model, and created it from scratch in the designer. I then generated a database from the model. The model has a "project" entity and a "client" entity with a many-to-many relationship. Then, I added a doma...

Add Ellipse Position within Canvas

Hi all, I have an ellipse that I'd like to programatically put into a canvas. Unfortunately, the ellipse only draws in the top right. Any help? SolidColorBrush newColor = HotSquare(col); Color newCol = getCol(col); Color newCol2 = getCol2(col); Ellipse el1 = new Ellipse(); el1.Height = 40; el1.W...

Is there a way to a silverlight application trigger a javascript in an ASP page?

I have a Silverlight application with some maps, and in the same page this application is running, I have a table that describe the values related to the map. I want to create a way that when I put the mouse over some icon in the map, the row with the correspondent ID get highlighted. Is that even possible? I'm using simple asp tables, o...

Accessing colors in a resource dictionary from a value converter.

Hi, I defined several colors in a ResourceDictionary. e.g.: <ResourceDictionary ...> <Color x:Key=Gray1>#FFF7F1F3</Color> <Color x:Key=Gray2>#FFDDD8DA</Color> So I can reuse them everywhere in application. Now I wrote a value converter to convert the items inner state to the related color. How can I access the defined colors i...