Mouse in Silverlight
Hello, Is it possible to get the mouse position on Silverlight, without hooking on some MouseEvent? Like in WPF which is Mouse.GetPosition(object relativeTo). Thanks ...
Hello, Is it possible to get the mouse position on Silverlight, without hooking on some MouseEvent? Like in WPF which is Mouse.GetPosition(object relativeTo). Thanks ...
In a framework for an app that I'm creating, I can have multiple "plug-in" 's added to a "workspace", where they can be rearranged and re-sized as necessary. I want each plug-in to be able to register WorkspaceParameters (global parameters shared by all plug-ins) with a WorkspaceManager (exposed through IWorkspaceManager interface) class...
I'm working on a small silverlight application that involves passing some data between javascript and silverlight. I am also using the silverlight virtual earth control. The weirdness I have come across is that is possible to register Microsoft.Maps.MapControl.LocationCollection as a script createable type and instantiate and pass it t...
Silverlight's dataInput:Label and dataInput:DescriptionViewer controls provide a useful function through their ability to bind to a TextBox. Rather than hard-coding the text content of my labels and descriptions with System.ComponentModel.DataAnnotations.DisplayAttribute, I'd prefer to bind these attributes to properties of a class that...
With Navigation Framework, Silverlight becomes better suited for content pages. The next big thing would be to make it crawlable. I think one of the approaches could be abstracting the content in a database and using it within a Silverlight page for humans or returning a plain HTML for crawlers. Did anybody try to make their Silverlight ...
I have seen that in Blend you can see which properties have been changed and use the reset option to get back to default values. Is there any other way of finding what the default values of a control are? JD ...
Hi, The problem: The returned localized string for the non-string binding properties (DateTime, double...) is always set to "en-US" culture, regardless of the CurrentThread.CurrentCulture. The solution I am looking for: I am looking for a solution other than using a converter (The localization works properly if a converter is used), ...
I have a custom UserConrol in a Silverlight 3 application. The control uses databinding for some properties, so I need to give it a name. When I try to put more than one of these controls in my main silverlight control, I get a XamlParseException with the message "The name already exists in the tree". How can I use this control more ...
I am starting to learn silverlight, WCF and LINQ here. the silverlight is hosted in the asp.net website. in the asp.net website, 1. added LINQ to SQL Classes with one table "ABC". 2. added WCF Service with one method "RetrieveABC" to retrieve "ABC" table from database. 3. in Silverlight Added WCF Service and successfully run RetrieveAB...
Hi there, When I bind my datasource to my grid dataGrid.DataContext = myObservableCollection; .. and when a value of a cell is for example >100 how can I have the cell pulsate on and off in a different color? Thanks for the help ...
Hello, A simple silverlight app: <Grid x:Name="LayoutRoot"> <Canvas x:Name="C1" MouseLeftButtonDown="C1_MouseLeftButtonDown" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Canvas x:Name="C2" MouseLeftButtonDown="C2_MouseLeftButtonDown" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Recta...
It seems the world is awash with people having problems deploying RIA WCF services, and now I'm one too. I've already tried a bunch of things, but to no avail. I need WCF RIA to support a Silverlight 3 application I've built. The short story is, using the new WCF RIA services (Nov 09?) I open VS 2008, create new project (silverlight a...
Hi there, i have a validation rule like so: public class MyRule : ValidationRule { public override ValidationResult Validate(object value, CultureInfo cultureInfo) { if ((int)value < 0) { return new ValidationResult("Error, value must be > 0"); } else { return Val...
I'm trying to think of a way to make an individual cell within a datagrid glow. I know that you can apply a dropshadoweffect like this to the whole grid: [data:DataGrid.Effect> [DropShadowEffect BlurRadius="100" ShadowDepth="0" Color="Red"/> [/data:DataGrid.Effect> but what I really want to do is have the individual cell glow red...
I have code on my server which works very well. It must crawl a few pages on remote sites to work properly. I know some users may want to abuse my site so instead of running the code which uses webclient and HttpRequest i would like it to run on client side so if it is abused the user may have his IP blacklisted instead of my server. How...
It's easy to repeat templated data, using List box, or StackPanel + ItemsControl, etc. However, I cant figure how to get multiple columns, ie, column alignment. Example: Name: John Doe Street: 123 st City: Seattle State: WA This link below shows the general layout I am trying to programmatically replicate (scroll near bottom):...
Hello, I'm fairly new to the Silverlight and the MVVM / Prism pattern so this may be a stupid question. I have a View which has custom controls within it. These custom controls are actually Views too and have ViewModels to drive them. Currently to add these 'child' Views to the View I'm using (see Fig.1) and then in the ViewModel I ha...
Is it possible to group items in a ItemsControl or Listbox in Silverlight? These controls are bound to a DomainDataSource. Or are there any 3rd party controls that do this? UPDATE: This is the sort of UI I am trying to create. ...
Hi, I'm using IsloatedStorage in a Silverlight app to log information on the client, and I added a function to clear the log file... However I have had problems with the two approaches I tried: Approach one: use IsolatedStorageFile.DeleteFile("log.log"); Result: This fails and returns an "[IsolatedStorage_DeleteFile]" error (No othe...
If any one want to start developing new web application with real cool and reliable UI, good throughput, maintainability, scalability which one can be the winner ? Also which one can be the winner in case we are migrating age old sites with new look and feel? ...