silverlight-4.0

Converting XAML to bitmap in Silverlight

Hi, I want to convert XAML to bitmap in Silverlight (I'm using version 4). I saw that there was a simple solution for WPF but the needed classes do not exist in Silverlight. Has anyone done such a thing? ...

Time out Exception whiling accesing web service(wcf)

hi, i have an webservcie written it works fine . but some time i get this message error telling time outexception was unhandled Time out Exception how can i increase time for accessing the webservice for the application. is there any setting need to be done. please let me know. if any one knows the silution for it tha...

passing paramter as to webservcie function in wcf

hi, this my datagrid event here i am calling the webservice. private void dgProject_RowDetailsVisibilityChanged(object sender, DataGridRowDetailsEventArgs e) { WSDataServiceClient wsService = new WSDataServiceClient(); wsService.GetProjectCompleted += new EventHandler<GetProjectCompletedEventArgs>(wsService_GetProjectComple...

events not getting fired properly

hi, this is my xaml code. datagrid within another data grid. <sdk:DataGrid x:Name="dgLevel1" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="12,12,0,0" RowDetailsVisibilityChanged="dgLevel1_RowDetailsVisibilityChanged" SelectionMode="Extended" RowDetailsVisibilityMode="VisibleWhenSelected" Height="...

how to format the data inside the DataGridTemplateColumn in datagrid

hi, this is my xaml code where i have 2 fields placed under one template column. now i am getting the format the output like this so that i can specify the space betweeen these 2 columns Color red image1 green image2 green image2 white image6 so that output looks good. How can i define space b...

Why can't I test Data Annotations in Silverlight 4 DLL within a normal unit test project?

Here's the setup: A Silverlight DLL containing some very basic class definitions. These classes have DataAnnotations via System.ComponentModel.DataAnnotations A "normal" C# unit test library. It references the Silverlight DLL via its binary - not via its project. (And yes, I always rebuild the silverlight DLL manually before running...

Deployment Error: Silverlight 4.0 w/WCF RIA Services in ASP.NET MVC 2 App

I've got an MVC 2 App with an RIA Services link to a Silverlight Application. The public facing portion of my site will be strictly MVC/HTML, but the administive portion will be silverlight (hosted in an MVC view page with data coming from RIA Services). On my development machine, all is well, but when I deploy to Discount ASP servers,...

Why are the using directives inside of the namespace in Silverlight 4/VS 2010?

Why are the using statements inside of the namespace in Silverlight 4/VS 2010 auto-generated code? The new convention seems to be namespace myNamespace { using System.Windows.Controls; using System.Windows.Navigation; . . . public myClass() {} } rather than the standard: using System.Windows.Controls; using System....

silverlight 4/datagrid/change the highlighted cell in highlighted row

Hello, I have a silverlight datagrid which have as DataContext a list of SuiviCaBo(personnal object). I also have a chart with columnSeries. My goal is when I click on a bar inside the chart, the line of the datagrid that match the information is highlighted and the right column is selected. I succeeded in hightling the row by using th...

nested datagrid issue with collpase issue

hi, i have an nested datagrid( which is of three datagrid) . so once i click my first data grid i get the second data grid rows( expanded).once i click the rows of the second data grid third data grid is been show( expanded). which is but once i click the row of the first data grid which i had clicked earlier all the row...

Binding position to ActualHeight

Hi I want to bind a lists position to its own height in XAML. So its lower left corner always will be at 0.0 of the canvas. I'm using elementBinding to get the ActualHeight and a converter to invert the property. But the height sent to the converter is 0. How do I solve this or am I going at this the wrong way? <Canvas x:Name="DisplayS...

How do I bind to a property on the TemplatedParent of my TemplatedParent?

I'm creating a silverlight 4 custom control. The control's template is defined through generic.xaml. The control includes ItemsSource and ItemTemplate properties similar to an ItemsControl. The template includes (amongst other things) and ItemsControl which has its own DataTemplate, however inside that DataTemplate I have a ContentContr...

Entity Framework insert error ("The Version field is required.")

I am using Silverlight 4 and RIA services. When I try to insert into my database, I get the following error: "Submit operation failed validation. Please inspect Entity.ValidationErrors for each entity in EntitiesInError for more information." Upon inspecting the ValidationErrors, I see: "The Version field is required." Isn't...

How to display a UserControl with satisfying all imports

Dear SO, I'm having some issues with Silverlight 4/ MEF. I have a basic framework setup with a Silverlight Navigation app at the core. Image link to the diagram for clarification The main app (Desu) contains some pages and controls that export en import nicely. I dynamicly load controls from Desu.Controls(like an imageviewer which i ...

StackPanel loded is not getting fired in.cs page

<sdk:DataGridTemplateColumn> <sdk:DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel Loaded ="SPImage_Loaded" Orientation="Horizontal" Background="Transparent" > <Button x:Name="myButton" Click="Btn_Click"> ...

Is there a Silverlight equivalent to "Application.OpenForms"?

Basically, I'm trying to take information entered by the user on one page and print it out to another page via a "printer friendly" version, or report, of something. I have a MainPage.xaml that is, as the name suggests, my main page, but in a window there is the subpage AdCalculator.xaml where the user enters the information and PrintEs...

how to bind the image dynamically for datagrid in.cs

hi, this is my xaml code. <sdk:DataGrid x:Name="dgMarks" CanUserResizeColumns="False" SelectionMode="Single" AutoGenerateColumns="False" VerticalAlignment="Top" IsReadOnly="True" Margin="13,44,0,0" RowDetailsVisibilityChanged="dgMarks_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="Collapsed" Height="391" HorizontalAlig...

Silverlight 4 Drag and Drop Treeview

Does anyone have an example for any of the following scenarios. Given, these are all dynamically populated trees. Not using a Heirarchal data template, but by iterating through object collections manually and appending children at the appropriate level. Treeview1 has 3 levels, but items can only be reordered within their level. So, ...

LevelToVisibilityConverter in silverligt 4

<UserControl x:Class="SLGridImage.MainPage" 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" mc:Ignorable="d" d...

Auto Scroll listboxitems placed inside a listbox

HI , i want to auto scroll the listboxitems placed inside a listbox., it has nothing to do related with the scrollbar. Somewhat like what marquee does..Thanks in advance. ...