silverlight-3.0

How Can I Test the Silverlight Install Process

I would like to customize the user install process for my Silverlight application. I would need to repeatedly go through the installation process on my development workstation Short of uninstalling before each change I make and going through the install process again, is there a way to make my browser think Silverlight is not installed? ...

Creating Silverlight 3 applications with F#

Is there an easy way to create Silverlight 3 applications with F# (October CTP)? I have seen the F# for Silverlight, but that only works with the May CTP. I am using Visual Studio Integrated Shell 2008. ...

silverlight invisible hit area

I would like to know how to make an invisible hit area in silverlight. I have created a UIelement leftmousebuttondown event that calls a planeprojectionfunction(this function rotates the UIelment on its X-axis). However as the element is rotated there is less surface area for the mouse to click on. Any ideas? ...

Prevent Silverlight 3 from caching while debugging

I'm assuming the issue I'm having is related to caching. Code changes I make are not getting picked up when I debug. Most times I get served a previous version of the app. How do I prevent this from happening? ...

Call external XAP from local SL app -> CrossDomain issue

Hy everyone. I want to load a Xap file located on a server from a Silverlight application running in a local winforms browser application. The html site for the browser control is located on the client machine. The problem is I can't download the foreign xap file, I always get a security exception. On the server there is a clientacces...

Silverlight: Switching VisualStates of CustomVisualStateManager in code-behind

Hi folks, i've been trying to deal with the following problem: When creating a custom animations for different visual states in Expression Blend 3, which change size/opacity of multiple elements on the grid, it creates the visual state groups in the grid itself rather than in control style and defines it as CustomVisualStateManager. <...

Silverlight: Find all controls of type in layout

I'm looking for a reliable method to build a list of controls of <Type> contained in a specific <Panel> derived control - this includes those that are direct children, and those which are children of children and so on. The most obvious way was to just do it recursively: Add to list any children of this control of <Type>, then repeat fu...

Silverlight with ado.net DataServices

Does anyone have a good and clear article about why silverlight requires a callback everytime when I make a data access attempt? ...

Silverlight VisualStateManager list of states

I know I've seen a list before of the predefined VisualStateGroups and states for a VisualStateManager, including CommonStates, CheckedStates, etc., but I can't seem to find it again. Does anyone know where such a list might be found? EDIT: I'm catching on to the fact that lots of these obvious reference lists are built in to Expressi...

Silverlight 3 different behavior between browsers

I have a silverlight project that runs normally, its just a listbox that retrieivies some value. This project run correctly in Internet explorer but do not runs correctly in Safari 4 or Firefox 3.5.... Does silverlight have some difference in terms of behavior that can vary from browser to browser? Here's the error that happens in the n...

Dataform in Silverlight 3

I am using Dataform to show a object in my Silverlight application. It is a simple Input page which where you can input value and the SAVE button at the bottom submits the information to the database. My object contains 7 data fields, out of which I need to show only 5 of them. The other two data fields are added in the database directl...

Silverlight ItemsControl

Hello, I am trying to use an ItemsControl to display a DataTemplate. I have this simple example: <navigation:Page.Resources> <DataTemplate x:Key="PictureResultsTemplate"> <!--<Grid/> --> <TextBlock Text="Nick Was Here"></TextBlock> </DataTemplate> </navigation:Page.Resources> <Grid x:Name="LayoutRoot"> <Grid Margin="0,0...

How to customize tooltip for silverlight control?

SL provide ToolTipService.ToolTip for simple tooltip. I want to customize tooltip with my own user control. One way is to do something like: <TextBlock Text="Hello" > <ToolTipService.ToolTip> <TextBlock Text="I can help you." /> <!--replace this with user control --> </ToolTipService.ToolTip> </TextBlock> But what I want is...

Silverlight GridSplitter: simulate "snap to grid"

I am working with Silverlight 3. I have a grid with 2 columns and with a GridSplitter between them. How do I make the GridSplitter snap to 5px increment when dragged? Thank you. ...

PagedCollectionView when wrapping an ObservableCollection in a DataGrid clears Column headers when no data is present

I am using the PagedCollectionView for grouping. I have a DataGrid and a textbox with a search button. The ItemSource of the grid is my PagedCollectionView, and the PagedCollectionView wraps an ObservableCollection because items in the grid can have their bound objects updated by a background process. When you click search, I first clea...

Silverlight app doesn't run i get a Invalid or malformed application error

Hey everyone I have a Silverlight application and when I click 'run' IE starts up and nothing is shown. I get an error icon in the bottom left that when i click i get the following error Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET...

Silverlight WCF service

Initially created a WCF service with one method and everything works fine. I tried to add a new method to the service and for some reason when I try to update the service it does not find this new method. Any advice? ...

Silverlight Date Formats

Hello everyone, I'm getting some very strange date formatting issues in my Silverlight application. My local culture is set to UK, yet I am consistently seeing US dates popping up all over the place. I can easily hardcode these to UK format in specific loactions using: <UserControl ... Language="en-GB"...> But as I'm sure you'd all ...

Silverlight behavior based on update of view model property

Hi, I'd like to have a Silverlight behavior that is triggered by a change to a property in the view model for my page. I can't figure out how to do this, however. So, I have a very simple view model: public class MyViewModel : INotifyPropertyChanged { private bool changingProperty; public bool ChangingProperty { ge...

Silverlight Dynamic Control not displaying

I have a simple control with code to add some paths. When I add my control to the control canvas, nothing shows up. To make sure that I wasn't crazy, I debugged through the code, and created a XAML equivalent and placed it off to the side of where my control should be showing up. I've tried changing the z-index and various Top/Left combi...