silverlight-4.0

Printing Silverlight 4 RichTextBox content

I am using Silverlight 4 RichTextBox to capture data that will be printed. My problem is when I print using the code below the border surrounding the RichTextBox is also printed, even when BorderThickness is set to 0. PrintDocument theDoc = new PrintDocument(); theDoc.PrintPage += (s, args) => { ...

Upload large file to Sharepoint with Silverlight

Hello, I am trying to upload a photo to a sharepoint library. If I use a relatively small file (370KB) then it works without any problems. But if I try to upload a file that is about 3MB large then I get the error: "Der Remoteserver hat einen Fehler zurückgegeben: NotFound." translated: "The remote server returned an error: NotFound." I...

PRISM exception on not existing method

Hello, I am using PRISM for Silverlight 4.0 in one of my projects where I also access Sharepoint 2010. The strange thing is that randomly I get the error: An exception occurred while initializing module 'SharepointServiceModule'. - The exception message was: Die Methode add_GetListCompleted im Typ SharepointServiceModule.Serv...

Dynamically passing parameters from ASPX host to Silverlight 4 xaml code-behind

Okay, first off, I'm new to Silverlight and am looking for someone to provide guidance as to whether the following solution is the prescribed way of going about this. Yesterday I started working on a problem that, at first blush, seemed pretty simple and straightforward. I need to pass a few parameters from an ASPX code-behind, which ho...

Saving webcam Snapshot silverlight to jpeg

Hi, Ive a Question (im really new in silverlight). Using "saveFileDlg.SafeFileName.ToString();" i can get the name of image file test.jpeg, but how i can get the full path "c:\images\test.jpeg" OR how i can put in the source code an static path as "c:\images\". I aprecciate very much your help, coz im developing an access control appl...

SL4 Binding problem with WCF RIA Services

Basic problem: How do I bind a textbox to the selected item of a combobox who's itemsource is the result of a LINQ query on a WCF RIA Services Domain context. Additional requirement: When the selected item is changed the binding should update. Additional requirement: The binding should be two way. My solution so far: After the user c...

UpdateSourceTrigger / Silverlight

In the MSDN documentation, it documents that you can set the UpdateSourceTrigger to an event of your choosing... MSDN UpdateSourceTrigger Documentation I can't seem to get this to work in Silverlight, as it is seems to want either Explicit or Default... If this is only for WPF - how can you tell from the documentation that Silverlight...

Use right click context menu paste in silverlight (4.0) from clipboard to active control

I have a grid with a bunch of textboxes for input. I wanted to implement Paste functionality. To do this for one textbox I wrapping it in a grid, adding a contextmenu with Paste item, and in the click event I set that textbox's text to the Clipboard.GetText(). But then I thought perhaps the context menu should be in the larger grid co...

Why should I use a DataForm?

I'm on a Silverlight 4 + MVVM project using ASMX for services. I'm finding the DataForm to be cumbersome. IEditableObject, bindings, etc seem to be a pain. I've done some forms in my application without the DataForm and they've worked out really well. So I guess my real question is, what does the dataform give me that hand bombing a ...

HLSL Shader to Subtract Background Image

I am trying to get an HLSL Pixel Shader for Silverlight to work to subtract the background image from a video image. Can anyone suggest a more sophisticated algorithm than I am using because my algorithm isn't doing it correctly? float Tolerance : register(C1); SamplerState ImageSampler : register(S0); SamplerState BackgroundSampler...

Creating image from base64 encoded string (Silverlight 4.0)

I get a Catastrophic Failure error when I try to create an image from a base64 encoded string sent in an XML file. I have the back-end guy who says it works but he uses WPF and Silverlight is different. The code: void TagCloudImageCompleted(object sender, WebApiTagCloud.TagCloudImageCompletedEventArgs e) { String cloud...

'System.OutOfMemoryException' when using Font from local system cache

hi, I have a silverlight slideshow type application ,having number of slides to display text. Each slides may have a number of TextBlock . We have requirement of Creating each TextBlock at runtime add in different panels.For each TextBlock we are assigning the value of TextBlock.Fontsource = new Fontsource(stream) .This 'stream' data is...

Upgrade to Silverlight4 Issues

Hi All, I am new to the Silverlight. ANd right now stuck with the one issue. Before we are using Silverlight 3 and telerik silverlight controls version 2009.3.... Currently we want to upgrade our project to Silerlight 4 and telerik to 2010.1.... I am getting one issue regarding GridView. It is showing totally blank even in the collecti...

Binding to Source property of Frame doesn't work after Frame.GoBack

Hi, I have three pages, and to navigate to each page, I'm binding a property to the Source property of the Frame. It works pretty fine if I just navigate the pages normally, but after calling the GoBack method, the Frame suddenly stopped working. If I set a uri to the Source property directly instead of using binding, it works fine thou...

Using excel type viewer on database tables with Silverlight

Hi, I know in Silverlight 4 excel spread sheets can be read but I need to somehow have Excel type functionality (with filters etc) built into my silverlight application but using the data from my database. Is this possible and/or are the any 3rd party components to do this? JD. ...

Silverlight 4 out of browser application not opening

I have developed a silverlight 4 application and set it up to run out of browser. As is always this case it loads and runs fine from my machine and my testing environments. I can install it on my clients machine but it will not load once I try and launch it, basically nothing happens. Any advice on how to proceed or test this issue. ...

Getting UI virtualization working with ItemsControl in Silverlight

I'm trying to create a scrolling list of fairly large textblocks. I want there to be a vertical scrollbar to show them all, and if they overflow a certain size I want them to display an ellipsis. I actually have all this working pretty good. I have the following Silverlight XAML: <Grid x:Name="LayoutRoot" MaxWidth="500" MinWidth="100...

How to remove a custom item from a listBox and ObservableCollection when click on a button

I have the listBox and a ObservableCollection. The listBox.ItemSource (listNotify.ItemSource) is set to that ObservableCollection (errosList). The problem that i have is that i don`t know how to remove the correct element from errorsList when the user click on the button with content x from listBox. For the item of the listBox i use a I...

WCF RIA Services, SL4

After I edit an entity and save it, how do I reload the datasource to refresh the entities? I have a listbox with entities, and after I edit the entities the datasource is still showing the old information. the MyEntityDataSource.Load() method is not working. The problem arises because I am not navigating to a separate page to do the ed...

How to Manipulate photos with C#/.NET4

I'm looking for the best advice about how to manipulate/morph photographic images. I've been looking around but what I keep coming across is more 3D graphics or game development. What I want to do is manipulate 2D still images. Ideally I'd like to do this in SL4 but WPF would be fine. I am using .NET4/VS2010. Many thanks for the wis...