silverlight-3.0

Silverlight and WCF Ria Services

Hi guys, I've created a new Silverlight 3 Business Application with VS 2008. The creation has completed correctly. When I try to open the xaml, it opens but in meanwhile this error is shown: Failed to load metadata assembly System.Windows.Controls.Data.Input.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364...

How to access File over the Network

Hi! I am having a hard time on this one, I have a folder over the network with public access (no credential restriction). I am trying to do a File.Exist or Directory.Exist and I keep on having a exception. Can someone tell me the good way to do IO over the network. EDIT 1 FOR DETAILS: if i do execture => \agoodip\Public\test.txt I ge...

How do I add additional data to a DataGridRowGroupHeader?

I have a DataGrid that is showing some data via a PagedCollectionView with one group definition. I have created a Style for the corresponding DataGridRowGroupHeader under which I have added a ControlTemplate containing an additional TextBlock and a spacing Rectangle. I would like to bind the widths of these controls to the widths of part...

Web Services: more frequent "small" calls, or less frequent "big" calls

In general, is it better to have a web application make lots of calls to a web service getting smaller chunks of data back, or to have the web app make fewer calls and get larger chunks of data? In particular, I'm building a Silverlight app that needs to get large amounts of data back from the server in response to a query created by a ...

Validating Application Settings Key Values in Isolated Storage for Windows Phone Applications

Hello everyone. I am very new at all this c# Windows Phone programming, so this is most probably a dumb question, but I need to know anywho... IsolatedStorageSettings appSettings = IsolatedStorageSettings.ApplicationSettings; if (!appSettings.Contains("isFirstRun")) { firstrunChe...

How to add a menu item in a xaml file

Hi there.. I am new in silverlight .. unlike windows form ,I am unable to find menu item in silverlight . How to add menu item in xaml file. I have to do this Thanks ...

Very basic Silverlight binding question

I have a custom UserControl called (for instance) MyPanel, and I want to use it in another XAML file. I would like to set a property of MyPanel, such as "Title" in the XAML file into which MyPanel is placed, as follows: <UserControl x:Name="ContainerControl"> <local:MyPanel Title="Whatever I Want" /> </UserControl> I would like f...

Silverlight 3 and System.ServiceProcess - Doesn't allow the reference to be added.

I'm trying to write a program that can stop and start services using SilverLight 3 and VS2010. I can't add the reference to the System.ServiceProcess dll. C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.ServiceProcess.dll 1st why? - It it just a security precaution? 2- Is there a work around? Does SilverLight have a different lib...

How does one change the background color for a loading out-of-browser Silverlight 3 application?

When running our Silverlight 3 application out-of-browser, startup takes a little time, but it's long enough to be noticeable. During this startup, the background of the window hosting the application displays an ugly white background color. When running in-browser, we have a splash screen, but that's loaded via JavaScript of course. ...

Typed DataSet In silverlight 3

I want to know why there is no support of TypedDateSet in SilverLight 3? what was reason behind that for not providing the TypeDataSet support ? Thanks in advance ...

using Silverlight 3's HtmlPage.Window.Navigate method to reuse an already open browser window

Hi, I want to use an external browser window to implement a preview functionality in a silverlight application. There is a list of items and whenever the user clicks one of these items, it's opened in a separate browser window (the content is a pdf document, which is why it is handled ouside of the SL app). Now, to achieve this, I si...

Rotating an Image in Silverlight without cropping

I am currently working on a simple Silverlight app that will allow people to upload an image, crop, resize and rotate it and then load it via a webservice to a CMS. Cropping and resizing is done, however rotation is causing some problems. The image gets cropped and is off centre after the rotation. WriteableBitmap wb = new WriteableBit...

Manipulating a Storyboard's target object

In the handler for the Completed event of a Storyboard, how do i get the element that the storyboard was being applied to? My Storyboard is part of an ItemTemplate: <ListBox x:Name="MyListBox" > <ListBox.ItemTemplate> <DataTemplate> <Grid x:Name="Container" Height="30" > <Grid.Resources> ...

Is the usage of Isolated Storage in Silverlight 3 a security concern

I am using Silverlight 3 on my website. I have a Login Page for role based authentication, that routes users with different privileges to different parts of the website. I want to use something analogous to the Session Variables available in standard ASP.Net applications. I intend to use Isolated Storage to achieve this. But I am skepti...

Where is the Microsoft.Windows.Controls.dll in the Nov 2009 Silverlight Toolkit?

I want to use WrapPanel in Silverlight 3. It is apparently in the Silverlight Toolkit. All the information I can find on it say to download the toolkit, unzip the download, look in the folder binaries and you will find Microsoft.Windows.Controls.dll. This works for December 2008 version of the Silverlight toolkit just fine, since it i...

Opening response stream in silverlight

Hello, I am attempting to return a image from a server using Silverlight 3. The server returns the Response stream like this: context.Response.ContentType = imageFactory.ContentType imgStream.WriteTo(context.Response.OutputStream) imgStream.Close() context.Response.End() On the Silverlight client I am handling the stream like: ...

MultiBinding in Silverlight 3

How to implement MultiBinding in Silverlight 3? ...

Access of Variables in Multiple Xaml files

How can we access variable from one Xaml file in to another xaml file in a same project ...

How to Set focus on the 1st Item of Nested Listbox in Silverlight?

Hi , I have a List box which contains another lisbox Inside it. <ListBox x:Name="listBoxParent"> <ListBox.ItemTemplate> <DataTemplate> <Image x:Name="thumbNailImagePath" Source="/this.jpg" Style="{StaticResource ThumbNailPreview}" /> <TextBlock Margin="5" Text="{Binding Smt...

How would I write an HLSL bevel shader for Silverlight?

I know that Silverlight doesn't directly support the WPF bitmap effects, but I also know that Silverlight 3 supports HLSL shaders. Would it be relatively simple to write a bevel effect, ilke the one in WPF, and if so, can somebody recommend a good resource to learn how to do it? ...