silverlight-3.0

Creating Silverlight UserControl

I'm creating a silverlight user control that I should be able to drag and drop via blend. But this control needs to accept a map that is already on the page. For eg. Main.xaml contains a map control. MapEditor.xaml contains buttons and other controls. In the .cs file, it needs to access a map control (the one in Main.xaml). How do ...

Silverlight TemplateBinding to RotateTransform

I am trying to create the simplest Silverlight templated control, and I can't seem to get TemplateBinding to work on the Angle property of a RotateTransform. Here's the ControlTemplate from generic.xaml: <ControlTemplate TargetType="local:CtlKnob"> <Grid x:Name="grid" RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> ...

Display unsorted data in SL3 line chart

I'm having trouble with my Silverlight Chart. My model is unsorted, that is, the sorting is done on the server side. It needs to support year transitions, but as you can see from the screenshot the charting control automatically sorts the model and fills in the gaps. The line sort be ever increasing and not taking a dip on new year. How...

Silverlight 3 Books

I am looking for a good book on Silverlight 3, for myself and my development team. We are all experienced .NET developers, but with virtually no exposure to Silverlight. This site on Silverlight.Net lists the following books on Silverlight 3 development - Silverlight 3 Programmer's Reference by J. Ambrose Little, Jason Beres, Grant ...

Silverlight 3 alternative to FileVersionInfo.GetVersionInfo

Within a Silverlight 3.0 application I want to use the AssemblyFileVersion to display the version information of the application. This is not the same as the AssemblyVersion and is typically retrieved in a .NET application using code such as: var executingAssembly = Assembly.GetExecutingAssembly(); var fileVersionInfo = FileVersionInfo....

How can I put a Silverlight 3 DataGridCell into edit mode in code?

I want to be able to pick a specific cell in a Silverlight 3.0 DataGrid and put it into edit mode. I can use the VisualTreeManager to locate the cell. How do I switch to edit mode? Each DataGridCell looks like this in the VisualTreeManager: System.Windows.Controls.DataGridCell System.Windows.Controls.Grid ...

Expression Blend 3 launch error

I've made a fresh install of Expression Blend 3 on Windows 7 64-Bit Ultimate and every time I create a brand new Silverlight 3 Application + Website project in Expression Blend 3 then try and run it I get the error: Could not start "http://localhost:63523/Default.html" due to the following error: System.ComponentModel.Win32Exception:App...

Silverlight Application Causes Internet Explorer To Close

Some users of a silverlight application I develop are complaining that IE will close sporadically. The sequence of events the users are doing are inconsequential, they are unable to reproduce the issue. Our application uses isolated storage to save exceptions that occur on the client, but no exceptions appear in the log. Has anyone el...

How Can I Add Event Aggregation To An Existing Silverlight App?

I have an existing Silverlight application where Page.xaml has some buttons on it that load user controls into a TransitioningContentControl content host. Each of these user controls is bound to a viewmodel. Sometimes when changes are made to one user control, data in others would need to be updated. I have been looking at using the eve...

Solutions for dynamic WCF client proxy in Silverlight?

I currently need to access WCF services from within Silverlight (3.0) application, but I need it dynamic. What I have access to : the service interfaces (ServiceContracts) and data definitions (DataContracts). What I need : runtime generated/created WCF client proxy. Have some solutions? ...

LinqToSql how to implement calculated columns

I want to have a field in my entity where the returned data comes from a class function in mydomainservice and not from the database. The reason is that I want to generate an image URL (Silverlight bind) based rather loosely upon other fields in a table How can I obtain that ? ...

How to modify Silverlight AutoCompleteBox commit behavior

I needed to modify the AutoCompleteBox behavior slightly and Jeff Wilcox's excellent blog entry got me on the right track. I was able to use his example to modify the behavior so that it doesn't update the TextBox as the selection is changed, but I need to go one step further. I need to modify the default commit behavior so that rather...

TimHeuer's FloatableWindow Issue

Hi, I've some trouble with Tim's FloatableWindow. (<--SourceCode & DLLs) It throws the following Exception once closed the control. Object reference not set to an instance of an object in System.Windows.Controls.FloatableWindow.b__0(Object s, EventArgs args) in System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Dele...

What is the Silverlight 3.0 equivalent for BasedOn="{StaticResource {x:Type TextBlock}}"

Hi, I am trying to extend a base style for a TextBlock. Simple think in WPF world, should be the same in Silverlight. But I get a error on x:Type. How can I translate BasedOn="{StaticResource {x:Type TextBlock}}" in Silverlight. Anyone out there who achieved this ? Thank you. ...

Accessing Silverlight 3.0 App from JavaScript

I'm trying to access properties on the RootVisual object: [ScriptableType] public class ApplicationInfo { public string Name { get; set; } public string Version { get; set; } } [ScriptableType] public partial class MainPage : UserControl { [ScriptableMember] public ApplicationInfo ApplicationInfo { get; set; } p...

silverlight 3 wcf service configuration -- getting maxreceivedmessagesize error

I'm getting the maxreceivedmessagesize error for messages greater than 64K. The problem is that I've already changed everything in both server and client, and it's not fixing the problem. here's my web.config on the server and then the silverlight client config: <system.serviceModel> <bindings> <basicHttpBinding> <binding ...

Silverlight Stability

Hi... I don't know if anyone can advise about this one. We have written and implemented a LOB Silverlight 3 application - which we are currently testing at a clients site. We have come across the problem, where on a few of the machines on site the browsers crash randomly. The machines run Windows XP SP3 - the browser is Firefox. We sus...

Binding a Command from Template

Hy. I'm using PRISM in Silvelight and I want to create a base control which will have to 2 buttons at bottom (Save, Cancel), and I want in the empty space to put the control which inherit the base one. I have tried to create a TemplatedControl and set it's style. <Button Content="Save" cal:Click.Command="{TemplateBinding SaveCommand}"...

Seeking Font Strategies for Silverlight Apps

As I'm working through an SL3/SL4 application, and starting to work with fonts, I'm finding a lack of documentation and best practices on font strategies. For example: Are there common fallback fonts for the supported font set (Arial, Comic Sans MS, etc.)? Is there a set of recommendations on fallback fonts between Windows and Macintos...

Silverlight 3 DataGrid (w/ PagedCollectionView) RowGroupHeaderStyles not reapplied on sort

I am trying to use a DataGrid with hidden group row headers (so that there is a sort boundary). My style simply sets the visibility to collapsed (and I also am setting the SublevelIndent to 0 during the LoadingGroup event). Initial display is exactly what I want, but the data grid is sorted the appearance is unstyled, and the default ...