silverlight

presentationcore cannot load into silverlight application

Hi, I have created a silverlight application and I couldn't load PresenetationCore.dll into it. I need to convert the UIElements into image or Bitmap. How to do it...? ...

Is possible in WCF service: method return IList<object> when object can be Person class?

Is possible in WCF service: method return IList when object can be Person class? Ex: in IServiceContract.cs [ServiceContract] public interface IDAS { [OperationContract] void DoWork(); [OperationContract] List<object> GetAnyClass(); } And class: public class DAS : IDAS { public void DoWork() { } pu...

Silverlight 3: How to retrieve large(approx: 50 MB) xml string from ASP.NET webpage?

What is the preferred way to retrieve large(approx: 50 MB) xml string from ASP.NET webpage? Placing the xml string in file and downloading the file is not a choice.(This should be my last resort if nothing else works) I have following method on ASP.NET server which is exposed through WCF service to silverlight client. [OperationContr...

Scroll text in a textblock from code behind

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...

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...

Next Silverlight 4 public release

Does anyone have any idea when Microsoft might be dropping another Silverlight 4 public release? As ScottGu has been quoted many times: "We will be adding VS 2010 RC support for SL4 with the next public Silverlight 4 drop." I've read speculation that there might not even be another Silverlight 4 public release until RTW. It's painful...

Enumerate ItemsControl.Items as UIElements

I have a list of hyperlinks that are displayed through an ItemsControl, something like this: <ItemsControl x:Name="SubMenu" Visibility="Collapsed"> <ItemsControl.ItemTemplate> <DataTemplate> <HyperlinkButton Content="{Binding Name}" NavigateUri="{Binding Url}" ...

Is there an easy solution to show Yes and No in a silverlight combobox and bind to database?

I have a bit defined in my database 0=no, 1=yes. I have a silverlight combo with the values "Yes" and "No" in it. How can I bind my bit value to the combo? ...

C# / Silverlight / WPF / Fast rendering lots of circles

I want to render a lot of circles or small graphics within either silverlight or wpf (around 1000-10000) as fast and as frequently as possible. If I have to go to DX or OGL, that's fine, but I'm wondering about doing this within either of those two frameworks first (read: it's OK if an answer is WPF-only or Silverlight-only). Also, if ...

From asp.net code behind (aspx.cs) on the server how can I determine if Silverlight is installed on the client?

IIS 6.0 hosting ASP.NET 3.5. From the Visual Studio 2008 aspx code behind (aspx.cs) running on the server I need to determine if Silverlight is installed on the client and if so which version. I know from Java on the client this can be done. That is not what I need. I know I can put in a control that will render if Silverlight ...

Silverlight: How to create a page dynamically

Problem: I store the page name I want opened in Silverlight in a database. When I startup the application I want to set the page to this string so rather than this: this.RootVisual = new MainPage(); I want something like this string pageName = getValueFromDatabase() if (!PageExists(pageName)) throw error else this.RootVisual =...

How do I continue showing a decorated empty result list with AutoCompleteBox?

I have an AutoCompleteBox that needs to wrap the filtered items with some other controls, such as a link to a different search form. I need the AutoCompleteBox's dropdown to show even when the filtered list is empty. Currently, AutoCompleteBox forces the Popup to close when the item list is filtered to nothing. How do I keep the dang...

NHibernate.Linq, WCF RIA Services, weird error.

Hi all. I have a Silverlight Business Application project set up, with these codes. I have this domain class: public class BaseDomain { public virtual Guid Id { get; set; } public virtual DateTime CreatedOn { get; set; } } public class Sector : BaseDomain { public virtual string Code { get; set; } public virtual string...

How to find child control added in a style in silverlight 4?

Hi I have ContentControl and I am applying style in which I have ListBox. I want to find ListBoxItem in Xaml.cs. ...

Audio Cutter in Silverlight

1. I have created a audio player in silverlight. within that player user is able to select a portion of song to save as ringtone. but i got the time duration from .. but I have to cut the partial portion of stream or audio stream and save it to the server dick. Plz suggest me how I can convert the selected audio time duration into the...

WPF to Silverlight project conversion

I need to convert an existing WPF project to Silverlight. I know that there is no an automatic way of doing it. Could you share your experience and give advise regarding steps for this conversion and what pitfalls one should be aware of? ...

Silverlight - Printing

Hello, I have a Silverlight application that has a DataGrid. I need to print the selected items in the DataGrid. However, I do not want to use a WritableBitmap. Is there a way for me to pass just those items to either a WCF Service or a .aspx page and render HTML that will prompt the user to print? If so, how? Thank you, ...

Silverlight localization with reactive framework. How to?

So, what is a best approach to implement silverlight localization with Reactive Framework (Rx) to achive on-the-fly UI changing? I would be very much obliged for examples. Here is an example of on-the-fly UI changing. But I can't figure out how it works. ...

Nested ListBox in DataGrid? Inherit style?

I have a DataGrid with multiple columns. The data grid has a style that changes the forecolor of text on a row where the mouse is over or the row has been selected. So the text color will change from black to white, for example. In one of the columns in the data grid, I have a ListBox. Is it possible for the items in the list box to ...

Databound Canvas control in Silverlight

Is it possible to have the controls on a canvas be bound to a list of objects? I am thinking something like this: <UserControl.Resources> <DataTemplate x:Key="MyItemTemplate"> <ContentControl Content="{Binding Converter={StaticResource MyControlConverter}}"></ContentControl> </DataTemplate> </UserControl.Resources> <Can...