silverlight-4.0

How to create a custom slider control in silverlight 4 for WP7?

I need a custom control where I can select a value from a horizontal scrolling text. Basically I am building a converter app in WP7 and want a control which allows me to select a value from a scrolling text. The values should scroll horizontally and as soon as the value comes in focus should get selected. Any advice would be of great hel...

silverlight 4 and DataForm and currenItem and AutoCommit

Hi All, I'have a datagrid and a dataform. I'm assigning data to DataForm with currently selected Item in the datagrid individually as DataForm.CurrenItem. This means that I do not have any Next/Previous button on the DataForm and user can switch to any row in the datagrid. My problem is that Although I have set the Property AutoCommi...

Reloading Domain Datasource

I am using an export utility to to export the contents of a datagrid in csv format. When the page loads the grids load all data. The grids have datapagers. When the user filter's, I want to be able to export the data using a click event. I have a grid in the background that I am loading on the click event then exporting the conte...

bypass silverlight tcp port restrictions

Hi, Is there a way to bypass the Silverlight port range (4502-4532) security restriction for TCP connections? Maybe a 3rd party implementation of TcpSocket that does not enforce the 4502-4532 port range? ...

silverlight domain datasource refreshed only after F5

Hi there, I am using SL4 with WCF RIA services. I have a domain datasource which I am using to populate a listbox. I have attached a context menu attached to the list items that I want to trigger an update to a fields value in the database. so I am trying EmployeeDetail employee = (EmployeeDetail)sender; if(employee.EmployeeDetails!=nul...

Silverlight User Control in MainPage.xaml

I'm currently investigating building a User Control in a Silverlight Project in Expression Blend 4. The control has an associated set of sample data for the User Control, and the data is appearing correctly in the User Control. When I place the User Control on the main page, the sample data does not appear in the User Control. Is this c...

Silverlight ListBoxDragDropTarget Dynamically Added Lists

I need code of how to drag and drop ListBoxDragDropTarget with example.one thing more i need only dynamic drag and drop. Thanks ...

Silverlight - GridView Binding object to cell template

Hi, I am new to the Silverlight. In our application, we are using Silverlight 4.0, Telerik 2010. I am solving one issue that is related to RadGridView. Because of some implementation details [Need to create dynamic column names] , i have to create Custom data Table object. and bind that object to the Grid. E.g. Class Employee { ...

Azure table with Silverlight 4

Hi! I'm looking for a way to manage Azure table with Silverlight 4, can someone tell me where can I find something useful? ...

Problem with image from server in Silverlight

I have a problem with a image when trying to display it. In my project i have a Class witch have a "public String Image" atribute. I have a web server localy wich return me a colection of Class. When i look in debug mode at the Image atribute it show me the corect url (if i paste the url in browser it show me the image) but the image isn...

Asynchronous WCF service, how to return any variable

public int SendServiceCallFromAnotherClass() { client.SendCompleted += new EventHandler<SendCompletedEventArgs>(client_SendCompleted); client.SendAsync(clientSettings); //i have to return some int here from my service } void client_SendCompleted(object sender, SendCompletedEventArgs e) { //so here i have to return int vari...

How to create controls from code in a custom control?

In MainPage.xaml.cs (Silverlight Application) I can do something like this: StackPanel myStackPanel = new StackPanel(); Button myButton = new Button(); myButton.Content = "Button"; myButton.Width = 200; myButton.Height = 30; Button myButton1 = new Button(); myButton1.Content = "Button 1"; myButton1.Width = 200; myButton1.Height = 30; ...

Open Silverlight OOB on url, if installed.

Is there anyway to make the OOB version of my Silverlight app open(if installed) when i go to http://mydomain.com/silverlightapp <--- where the Xap is loaded. Just like a irc client opens when i go to irc://servername but instead of prefix can my app open the OOB version if App.Current.InstallState == InstallState.Installed when it's ...

Silverlight Multiple Row Validation in Datagrid

Hi, There are two requirements 1) Validate row data before saving the record 2) Show Server side errors or business rule failure Now the only issue is how to put error mark and make that row red in silverlight for multiple row. most of the example available on net is for single row ...

Adding usercontrol to another user control.

Hello, This is my user control :- <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ed="http://...

ScrollViewer cuts my the image - silverlight 4

I am trying to create a simple image viewer in silverlight. my code is this: <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" Margin="0" Padding="0" Width="300" Height="300"> <Canvas Width="600" Height="400" Margin="0"> <Image Source="/MapViewer;component/Images/imageFileName.jpg...

Tips on debugging UI errors in Windows Phone 7

I have a Windows Phone 7 application and I regularly see "weird" UI glitches that take me AGES to debug. It's a range of issues like controls appearing to have extra margin, scrollbars not appearing, animations looking really glitchy, entire page scrolled down, combobox items offset, etc. etc. I'm happy to admit it might be me - but ho...

how to Combine the gridview title?

how to Combine the gridview title in silverlight opening? ...

Association properties on Entity not loaded for server-side validation

Hi All, Consider the following situation. I have an Entity named ProductSupplier that is a Presentation Model. It is created by doing an inner join of Products and Suppliers, and creating a new projection from a Linq statement. The ProductSupplier projection also creates a list of PartType objects, which is also a Presentation Model. ...

Is there any way to change BitmapImage size in code? (Silverlight)

Is there any way to change BitmapImage size in code? (Silverlight) ...