silverlight

How can I use VisualStateManager to change the text color (foreground) of a ListBoxItem?

Here's the deal. I can create a ListBox and style it. I can edit a copy of the template such that the States become available in Expression Blend 3. And I can change the state so that the background color of a line item is modified when selected. But I cannot change the foreground color of the text because of the ContentPresenter! Does a...

Multiple client projects to one server project w/ Silverlight & RIA Services Beta

The type or namespace name 'Resources' does not exist in the namespace 'MyWebProject.Web' (are you missing an assembly reference?) C:\Users\...\MySecondProject\Generated_Code\MyWebProject.Web.g.cs I am having some problems trying to add a second SL client project to my (Ria services) SL Business Application. It has to do w...

Passing user control object to another object as dependency property

My xaml is as follows: <m:Map CredentialsProvider="XXX" x:Name="mainMap"/> <BingEditableMapControl:BingMapEditingControl BingMap="mainMap" /> For BingEditableMapControl, the property BingMap is a dependency property takes the control of Map. How do i pass the mainMap to the BingMap property through xaml? ...

Accessing SP 2010 Object Model from Silverlight 4 Application

I have a Silverlight 4 Beta application where I'd like to use the SharePoint object model to upload a document to a SharePoint site - should be simple enough, except an exception is thrown at: using (SPSite siteCollection = new SPSite(siteCollectionUrl)) The Web application at http://intranet.fabrikam.com could not be found. Ve...

Hide a Folder Using Silverlight 4

Hi all, I am downloading a storing a set of files in a separate folders in My Documents . Is it possible to hide this folder. I am creating an application which runs Out Of Browser and Has Elevated Permissions ...

How to implement it in Silverlight?

Hi all There is a circle on SharePoint2010 page http://sharepoint2010.microsoft.com/Pages/default.aspx which is made by Silverlight. I want to know how to make a Cicle like that with some different parts. Best Regards, ...

Silverlight DLR: SetVariable("app", this) issue

Hello folks. I have the following code in a Silverlight 3 application using Dynamic Language Runtime JavaScript ("button" is the name of a Button control): private void Button_Click(object sender, RoutedEventArgs e) { var scriptRuntime = ScriptRuntime.Create(); foreach (var name in new[] { "mscorlib", "System", "Sy...

How to get / set caret position in silverlight textbox ?

How to get / set caret position in silverlight textbox ? ...

Font not found with merge dictionary

I am using merged dictionaries in an external library with Silverlight 3 and the style I have defined in the resource file (styles.xaml) is applied correctly to my button controls. I want to apply a font to my buttons and I have the font in the same directory as my styles.xaml (in the external dll with build action as resource). In the...

Silverlight / Deepzoom weird flashing rectangle bug

Hi there, I just launched my website - blackspike.com - under the 3D tab on the homepage I've put a deepzoom collection in there. A friend has noticed that if you pan down and to the right there's a weird psycadelic flashing rectangle. I've tried recreating the collection, and reuploaded and there is nothing in the composer project to s...

Multiline textbox in silverlight

How i can set multiline property for silverlight textbox? ...

Dynamic Curves in silverlight

I am writing a graphic editor kind of thing in silverlight 3 to customize tee shirts. there is a functionality to create curved lines i.e. user draws a straight line and then there is a slider to control the radius of curve and as user changes the radius the curve should be update accordingly. I am really unable to find any link on the ...

FindElementsInHostCoordinates Relative To Control Space Not Entire Page

I'm using the VisualTreeHelper method FindElementsInHostCoordinates to find a ListBoxItem at the given X and Y location. However, X and Y value appear to be related to points in the entire page not just the ListBox I'm interested in (even though I'm passing in that element into the subtree parameter of the method). Below, this refers t...

Error when creating a new entity foo, editing a previously existing foo, then saving. Generic 4004 error

The steps are as simple as that so I imagine there's something else going on here, the problem is I just get back 4004, no exception anywhere etc, making it annoying to debug, I get this from the ie error window Microsoft JScript runtime error: Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: ...

Silverlight, MSBuild, VS and some shared files. How?

I have a VS project used for my .NET WCF host with some simple DTOs in it. I then have another project targeted for Silverlight with links to the files from the .NET-project. What's the best way automate the build, so that all files from the .NET project are automatically built to a Silverlight assembly too? I have tried the following ...

LoadedData accumulate results with related objects in Ria Services

Hello, I'm working with SL4 & .Net Ria Services. My datamodel has Devices with a 0..* property called DeviceAndStates, through this <riacontrol/> I get all Devices and his DevicesAndStates of a particular type. <riaControls:DomainDataSource Name="deviceDomainDataSource" QueryName="getDevicesWithOpenStateQuery" .../> In the client sid...

Silverlight deploy misunderstanding

Sorry if my question is too noobish, but i need some help. I'm completly new to silverlight, and now i'm building an application with Paint-like functonality (which is easy in SL3). When i run it through VS - all is OK, firefox opens and show the working application. But when i'm trying to run it through "TestPage.html" (which looks pret...

Do custom controls in Silverlight 4 need to be in separate DLL's ?

Hi, I am creating a number of custom controls for a Silverlight 4 project. I have successfully created one control and am wondering if I can define more in the same project and then have all the controls bundled into one .DLL. Right now, I have the standard files for the first control: /Resources/icon.png /themes/generic.xaml /Custo...

Silverlight 3 with WCF RIA services with VS2010 possible?

Got confused with microsoft website descriptions. or May be the google search results just confused me. My company wants to use silverlight for a line of business application but doesnt want to go with .NET 4.0. Can we develop SL3 applications with WCF RIA services 1.0 using .NET 3.5 with VS2008? Can we develop SL3 applications with W...

How to Bind the Cursor property of a Grid to a Property of my ViewModel in Silverlight 3.0?

I'm attempting to bind an IsLoading property to the Cursor property of my UI's LayoutRoot Grid. I'm trying to have the main app cursor become an hourglass whenever the property says it's loading. I'm binding the property as follows: <Grid Cursor="{Binding IsLoading, Converter={StaticResource CursorConverter}}"> The key "CursorConvert...