silverlight

Check which UIElement the mouse is entering in a MouseLeave event in Silverlight?

I have two UI elements next to each other that I want to behave as if they are one MouseLeave area. How can I check if the mouse is over a UI element being entered during a MouseLeave event? Currently, checking the mouse position using the following solution shows the mouse over the element being left during the MouseLeave event: http...

What options are there to make a list of labelled controls in Silverlight/WPF?

I have a lot of XAML that is in a complete mess and it's usually due to one thing. GRID, Grid.Column and Grid.Row craziness!! Now theres a few common ways you can make labelled lists in XAML:. With a <Grid> Advantages: Autosizing width of columns and rows Disadvantages: No easy way to insert rows/columns either in VS or Blend [STILL!!...

Silverlight In Code DataTemplate NameSpace Error

When I create a DataTemplate in code I am getting a error when defining the namespaces. Below is the code I am using public static DataTemplate CreateDataTemplate(string bindingValue) { StringBuilder dataTemplateText = new StringBuilder(); dataTemplateText.Append("<DataTemplate "); dataTemplateTe...

Silverlight xaml: building/concatenating Uris or other strings

I have a HyperlinkButton in a ListBox, the latter being bound to a list of items. I want the HyperLinkButton's Uri to be bound in this sort of fashion: NavigateUri="/some/url.xaml?tag={Binding}" Which obviously doesn't work, but you get the idea. Does anyone have a nice workaround for this? Preferably something compatible with WP7. Th...

Removing the MouseOver effect from a Silverlight Context Menu

I'm trying to achieve the effect of a pop-up when the user right-clicks in a Silverlight application that shows essentially a custom control. I'm using a Context Menu, and all is working great except that I'm having trouble styling the context menu so that it doesn't highlight itself when the user mouses over. Here's a snippet of what ...

Any good report/multiple grid/multiple gridview component for Silverlight?

Looking for a Silverlight report component. Nothing fancy, typical report layout would be - a bunch of colored grids on the same endless page. Currently contemplating about giving a try to a Component's One flexi grid control. Is it any good. Any directions and recomendations? Thank you. ...

How do I disable validation in a Silverlight 4 application?

update How do I disable validation in a Silverlight 4 application? It looks like this is something not unique to RIA Services (as my original question below implies). I observe this when I bind my datagrid to a list of POCOs and I trigger a validation error in my grid (e.g. typing in a non-numeric in a cell bound to a numeric property)...

Two way binding to a global 'boolean' in XAML?

There's quite a lot out there regarding binding a XAML StaticResource, such as a string constant to a XAML control. However I cannot find a good way to do two way binding in this scenario. I want to bind a global boolean to a checkbox which enables 'debugging' mode, that toggles visibility of certain things throughout my application. I...

From Code Behind to XAML

I have the folowwing C# code in the .cs file and I want to move it to the XAML. the code includes property called: OperationConverte Binding binding1 = new Binding("DisplayNames") { Source = OperationConverter, }; ComboBox4.SetBinding(ComboBox.ItemsSourceProperty, binding1); Binding binding2 = new Binding("...

Google Translate API and Silverlight

Anybody can show an example of using google translate api for silverlight with source code? Thanks in advance ...

Styling the Last Row of a DataGrid alone

Hi All, I have a DataGrid in my Silverlight Usercontrol in which the last row is a Grand Total of of all the other rows so I need to highlight it by giving it a different style. So is it possible to stlye the last row of a DataGrid?? Thank you ...

Open MediaElement in FullScreen

There is a MediaElement in my silverLight4 Application that plays videos. There are also other controls in the form (listbox, buttons etc...). When vieweing a Video, i want the option to switch to Fullscreen, but only the video and not all the form (something like youtube), is there a way to switch just the 'MediaElement' control to full...

Silverlight limitations regarding database access/multi threading

Speaking of in-browser (having not much experience with a SL, I can only assume this is a very common usage scenario) SL applications - do they have any programming restrictions with respect to database access and multi-threading? ...

Silverlight 4: F5 / refresh

Hi, I want to determine how to filter F5 or the refresh button in browser in silverlight 4.0. thank you ...

Deflate (or similar) compression available for Silverlight 3?

Is there any deflate implementation for Silverlight 3 that is compatible with the .NET one? Or, barring that, is there any similar compression algorithm available for both .NET and Silverlight I can use? I tried this LZW example: http://paste.lisp.org/display/12198, but unfortunately it doesn't work very well. ...

how to add mouserightbuttondown event to stackpanel in silverlight 3

how to add mouserightbuttondown event to stackpanel in silverlight 3 ...

Reporting on server and client

I'm looking for a reporting solution that works on the server and in the front-end. The problem is that the front-end technology has yet to be decided from ASP.NET web forms, ASP.NET MVC or Silverlight. So I'd like to use the same reporting framework for generating reports on the server (business layer abstracted through WCF) to PDF for...

Applying a theme to a silverlight control that doesn't cascade to child controls

I am using both the Microsoft Toolkit themes, and the C1 Themes (which are a subset of the MS Toolkit themes). The reason for this is that I need the range of Themes that MS offer, but I need one of the controls that C1 offers. The problem is, when you apply the Application Theme to one of the MS themes, it doesn't apply to the C1 contr...

Zune theme for WPF

Hi, I would like to know where i can get the theme that looks like Zune application for Windows (or MetroTwit) for WPF. I google it but i only get the theme for Silverlight 4, not WPF. ...

XAML test data - designer can convert types but runtime cannot

I am designing a user control to display a note. So I have a NoteViewModel. In my designer I want to have a test note. So I have the following in my XAML: <UserControl.Resources> <local:NoteViewModel x:Key="ViewModel" d:IsDataSource="True"> <local:NoteViewModel.Note> <localweb:Note NoteID="1" ...