silverlight

Binding to DomainDataSource with DataGrid in Silverlight 3

Using markup I can't get data to show in the grid: <riacontrols:DomainDataSource x:Name="EstimatesData" QueryName="GetUserEstimates" > <riacontrols:DomainDataSource.DataContext> <ds:MyDomainContext /> </riacontrols:DomainDataSource.DataContext> </riacontrols:DomainDataSource> <datagrid:DataGrid x:Name="EstimatesGrid" ...

Silverlight and Thickbox

I am having some trouble with silverlight's z-index. I have a thickbox dialog that pops up but my silverlight gallery is still pulling up on top, hidden most of the modal dialog. Has anyone experience this problem? I have tried bumping up the z-index on the thickbox control but no luck. ...

How do you get the selected item from a Silverlight AutoCompleteBox?

Hi, I'm hopefully missing something extremely obvious here, but for the life of me I can't figure this out. I have an AutoCompleteBox control that is retrieving results by way of an asynchronous call, although I can't find a reliable way in which to know when a user has selected an option from the list of returned values. I've tried ho...

How to pass action with two parameters using Lambda expression to method?

I have a class that takes an action in it's constructor. Example: public CustomClass(Action<Path> insert) { // logic here... } I currently instantiate this class using the following line of code: var custom = new CustomClass((o) => LayoutRoot.Children.Add(o)); I want to modify the custom class to include an additional construc...

ISelectionAdapter

I am trying to mimic the DataGridSelectionAdapter from the Sivlerlight toolkit samples (Autocomplete box) but ISelectionAdapter is not found. I have refs to System.Windows.Controls and the System.Windows.Controls.Toolkit (C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Toolkit\Nov09\Bin\System.Windows.Controls.Toolkit.dll). Anyone kno...

How to add a TextBlock within a Path?

I have a Silverlight app that adds a Path to the LayoutRoot grid of a UserControl. The path geometry is a simple rectangle. I would like to be able to add a TextBlock that is contained within the Path that was added to the LayoutRoot grid. I am also using a custom Adorner to allow me to resize the Path on the screen and move it around...

How to call javascript function on a Silverlight 3 object?

I have the following Silverlight control defined: <object id="objImageViewer" data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="500px"> <param name="source" value="../ClientBin/SomeImageViewer.xap"/> <param name="onError" value="onSilverlightError" /> <param name="background" va...

Timing of wcf calls in silverlight

Everyone knows that in Silverlight all wcf service calls are asynchronous. But what can we say about the timing of the requests? For the following code, is it always true that "Hello A" will be received by the server before "Hello B"? ServiceClient proxy = new ServiceClient(); ServiceClient proxy2 = new ServiceClient(); proxy.SayHello...

silverlight 3 navigation page not availble in VS as item to add

I've recently upgraded my computer from Vista Home Premium 64-bit to Windows 7 Home Premium 64-bit. I've re-installed VS 2008 web express, and re-installed all the silver light sdk's, tools, etc. But now when I want to add a Silverlight Navigation Page, it is not avialble to me in the list of items that can be added. The navigation dl...

.net System.Threading.Timer needs to access Silverlight 3 UI component in callback

I have a Silverlight 3 page. I use a System.Threading.Timer to perform an Asynchronous WCF service call. I make the call by passing in the Silverlight page class ("this") in as the "state" object in the timer constructor, and accessing the service client proxy through it. By doing it this way, the callback from the WCF service fires f...

Silverlight Canvas Newbie Question

Good Day, I have a Silverlight user control that has several canvas controls within a Stack Panel. I know that I can set the Width and Height of each canvas panel manually in the Xaml, but I want them to be the same size. Is there some way I can define a property in a UserControl.Resources location: <UserControl.Resources> <Sett...

Silverlight DataGrid not returning to edit mode after child window popup

Basically what I'm doing is using the EditEnding event on the DataGrid to check for certain errors and then if found use e.Cancel and a child window to display the errors. Now if you just use e.Cancel without the child window the focus stays on the cell and you are able to edit, if after the child window though your focus is still on th...

What are same *hidden* useful bits of information you can get from the client in Silverlight 3?

I'm wondering whether you can get the client's machine name. I guess you cannot. Its interesting what you can get in the System.Windows.Application namespace. I guess hidden is not the right word, more like "less-used" or unknowns. For example I use the one below to get the current URL var hostName = Application.Current.Host.Source.Ho...

Silverlight and Blend - How do I programmatically access sample data?

Hello, I have created a user interface for my Silverlight application in Blend. This application is currently using some sample data that I created within Blend. I need to do something with this sample data at runtime. How do I access sample data that has been created in Blend at runtime? Thank you! ...

Silverlight RichTextSomething

I'm building an application with Silverlight 3.0 and I need a Text control that can provide the following features: Copy and paste Formating (either bold or color) Scrollable progamatically (either natively or through a ScrollViewer) Any ideas? ...

Silverlight: Cannot use reflection to GetValue of a field across XAPs?

I have a Silverlight application which has two different XAPs - an InitialXAP which is loaded statically by the HTML page and a DynamicXAP which is loaded from code within the initial XAP. The DynamicXAP is loaded with code similar to this: var asm = LoadAssemblyFromXap(stream, "DLLName"); // LoadAssemblyFromXAP will load the DynamicXA...

Out of Browser Application Installation

Can out of browser installation be made in places other than desktop and start menu? If possible what change must be made in AppManifest.xml file ...

Visual State Manager on Custom Control

I have built a custom control that extends content control. Within this I have a parts and states model that is working fine. I then use this as the root of my xaml(placing the code in the templates folder in Blend) Everything works fine, I can open a new 'DaveControl' and get the functionality that I want. However, If I then add make...

Configurable grid layout with Silverlight 3 and Prism

I’m developing a composite Silverlight application using Prism. Part of the application is a highly configurable dashboard. A configuration file is downloaded by application through web service and the dashboard is constructed at runtime from the configuration file. Along with references to data sources and views (in terms of Prism), a c...

Can we call a c++ dll in silverlight out of browser application

Hi can any one tell how can we call dlls written in c++/vc++ in out of browser application in silver light. If possible can any give the link to see how it can be done. ...