silverlight

Silverlight - use a ScrollViewer in a TextBox template

I'm trying to make a TextBox template and I need to include a ScrollViewer in the template - basically I want to add some content (like line numbers) that needs to scroll along with the normal text. The default template for the TextBox is like this: <Border x:Name="Border" BorderBrush="{TemplateBinding Border...

XAML ListBox Binding

I'm working on a GIS website in C# and Silverlight, and I'm trying to populate a ListBox based on map layers. The code works if I lump everything together in a single XAML file (where the Map is defined in the same file), but I am trying to separate things into separate classes, and the ListBox will not populate in the other class. XAM...

F# Library in Silverlight Application?

I have an F# library in the same solution as a Silverlight (C#) project that I'd like to use the library in. When I try to add a reference to the library project, it says I can only add Silverlight references. How can I make this F# library compatible with my Silverlight project? I'm using Visual Studio 2010. ...

Silverlight: Limiting or Filtering Datatypes in Hierarchical Data Binding in XAML

So I'm binding to a generic datasource that's comprised of different types of classes. I'd like to filter the tree based on the class types. I.e., I don't want the tree to show a node at all for certain types of classes. Has anyone run into this? ...

First Time Architecturing?

I was recently given the task of rebuilding an existing RIA. The new RIA that I've designed is based on Silverlight, with a WCF service to connect to MS SQL Server. This is my first time doing something like this, so I'm not sure how to design the entire thing. Basically, the client can look through graphs of "stocks" (allowing the cl...

Why wouldn't an embedded silverlight control work in a page?

Hi, I have a silverlight application project in my solution. The other project is a web application project that has a .xap file in ClientBin. When I created the silverlight project, it asked if I wanted the asp.net application to host it (and I said yes). In the root directory, there is a test page for the silverlight control. That...

What technology is used to build multitouch applications?

Can anyone provide any details, code snippets, examples, etc. of how to go about building something as cool as this "Rock Wall" that Obscura Digital built? http://www.obscuradigital.com/work/detail/rock-wall/ Let's just pretend we have access to whatever technology is required. Where do I start? ...

Silverlight first steps

Hello, I need to build a new website. I would like to use Silverlight. How do I start a Silverlight website? Where can I find a step by step tutorial? TY ...

WebServices does not interact with App

Problem: (Solution at the end) I got a Silverlight App with-in a Web Project Web Silverlight The web contains a service: [WebService(Namespace = "svChat")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. //[S...

Silverlight databinding datagrid to List<List<X>>

I got a List<List<X>> object and I want to bind it to a datagrid in the following way: Each entry in the outer list represents a single column Each list inner list represents the rows for each column I need to do it in code because the size of each of the list depends on user input at runtime. Is this somehow possible? Changeing/wrap...

binding image with 2 values with convertor

hi, is it possiable to set 2 data field for an image control whiling binding **<Image Source="{Binding ItemID, Converter={StaticResource IDToImageConverter}}" Height="50" />** now here i need to add one more value Price now. need to send even price as an paramter for IDToImageConverter function how can i do it? now i...

How can I center a Silverlight DataGridTemplateColumn header?

I want to center the header on a Silverlight DataGridTemplateColumn. The following code gets me most of the way there: DataGridTemplateColumn column = new DataGridTemplateColumn(); column.CellTemplate = Resources[templateName] as DataTemplate; column.Header = headerName; column.HeaderStyle = new Style { TargetType = typeof(DataGridColum...

How to add silverlight project to ASP.NET project?

I have a silverlight application project that I need to add to an ASP.NET Project. I know it can be done because you can choose to have both when you first create a silverlight project, i'm just not sure how you would do it after the fact. Any Ideas? ...

Should we use server generated XAML to deliver our Silverlight/WPF UIs?

Back in January 2009, Dino Esposito published an article on MSDN titled "Managing Dynamic Content Delivery In Silverlight". We are considering using an approach like this for an upcoming project and were wondering if anyone had any advice on whether this is a good approach. Are there any traps or pitfalls we should look out for? We curre...

Implementing themes in Silverlight 4 apps.

I have a 2 part question: Is there anything more to implementing themes than simply placing a <toolkit:BlahBlahBlahTheme> tag around all your content? What is the pattern for switching out themes at runtime? Is there such a thing? ...

SIlverlight Navigate: how does it work? How would you implement in f# w/o VS wizards and helpers?

update 5: brians solution worked: namespace Module1 type Page1() as this = inherit UserControl() let uriStr = "/FSSilverlightApp;component/Page1.xaml" let uri = new System.Uri(uriStr, System.UriKind.Relative) do Application.LoadComponent(this, uri) member public this.Uri with get () = uri type MyApp() as th...

Free en-GB dictionary for spell check in Silverlight

I'm trying to use the Vectorlight spell checker for Silverlight. The demo code comes with the en-US.dic file, but I'm trying to find a compatible one for British English. I have found one here but it doesn't work. The format seems similar to the en-US one, but it just doesn't work (i.e. it doesn't suggest any words). ...

I Get the error message while write data in file --Cannot access the disposable object .Object name :MS.internal.InternalMemorystream

This was the code: public static void SaveFile(Stream stream, string fileName = "") { using (IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication()) { IsolatedStorageFileStream fs = file.CreateFile(fileName); var filesize = stream.Length; var getContent = new...

Highlight the text of listboxitems inside a listbox depending on the textbox :

I have a listbox and I display incremental search result in it based on the text changed event of a textbox, everytime I update the listboxitemsource. The items displayed inside a listbox the text of it must be highlighted. Suppose the person enter in textbox sy and the listbox displays the result all getting started with sy : Somewhat...

call a webservice in the Application_Exit workaround issue AsyncCall

Hi, I am facing the issue in updating the Database during a browser close in the Application_Exit method. Since I cannot call a webmethod in this event to updated the DB, I'm trying for a workaround where I call another simple Silverlight Application for the sole purpose of performing the DB update. The issue is that when I make the A...