I have a memorystream in a silverlight app. I have to copy this memorystream to a filestream object. If I call:
memoryStream.Position = 0;
memoryStream.Seek(0,SeekOrigin.Begin);
It does not work, I debug the application, check the properties of the memorystream, and the position still points to the end of the file. Any clues?
...
I've got a RIA silverlight 4 app with a complex data type as a model. As a familiar example let's call it aspnet_User which has a member object called aspnet_Membership; aspnet_User has a member called "UserName" and aspnet_Membership has a member called "Email". Now using the aspnet_User as a datacontext I want to bind to any changes in...
Currently as my job profile i am more working on asp .net application but i also wanted to have my hands on silverlight application. so, i just decided to build one silverlight 4 application in my spare time and on weekends.
We are having a team of around 4 people. We also tried for commercial application but as we can only develop it i...
Using Silverlight4, how can I make datagrid grouping look up a display name from another table when the grouping value is a foreign key?
I could denormalise the entity so that it resolves the join itself but this introduces update issues. The approach that leaps to mind is a value converter and I shall look into it, but if you have a de...
I am just trying to learn .Net RIA Service, so i am creating one hello world example. Now in domainserviceclass i am using below code
[ServiceOperation]
public string SayHello()
{
return "Hello RIA World!";
}
It is giving me error for reference, i have tried to search on the net but i am unable to identify that which namespace...
I have used the ViewBox Silverlight Toolkit control to bind to, however Silverlight 4 add this to the Core, however it no longer has a specific "Content" property to bind to - how to I bind Content to the new ViewBox?
For example I want to be able to do this (not valid syntax):
<ViewBox Content="{Binding Path=Canvas}"/>
Where the C...
I read in a few places it can run "desktop programs such as Office" but I haven't seen any other details or concrete confirmation of this. Anyone know? If so, how can it be done if SL4 OoB apps only have read/write access to User Special Folders.
...
I'm trying to make an Address control that has an IsReadOnly property, which will make every TextBox inside read only when set to true.
<my:AddressControl Grid.Column="1" Margin="5" IsReadOnly="True"/>
I've managed to do this just fine with a dependency property and it works.
Here's a simple class with the dependency property declar...
Databinding in WPF/Silverlight revolves around dependency properties, DataContext objects and DataSource objects. As far as I can tell, dependency properties are the same thing as ambient properties and their significance to binding is basically that if you put a bunch of widgets in a container then you only need to specify a DataContext...
I've installed the Silverlight 4 beta toolkit and created a new silverlight business application. Without making anychanges at all, when I try to look at the Mainpage.xaml in designer view I get the following error in the designer window:
System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocatio...
I've read that several browser plugin's support UDP sockets (eg Java, Unity), however the most popular plugin, Flash, doesn't support UDP sockets!? And neither does my favorite, Silverlight.
Now, I know that Silverlight 4.0 Beta has Multicast UDP sockets, but these are useless on the public internet, which is where I want to use the...
Do Silverlight 4 applications require that they target .NET 4.
With the delay in .NET 4 and Visual Studio 2010; can I still get the advantages of Silverlight 4 running against the .NET 3.5 framework?
...
I'm returning a List (own class) from Silverlight to a service, in this list there are old entities with updated values and completely new entities, how do I save this back to the database using the entity framework?
Using cEnts.CardItems.AddObject gives me duplicates obviously.
...
Silverligh 4, VS 2010.
Making a Custom Control. (Non just UserControl, but public class HandPart : Control, and a template in \themes)
Then I creating a new DependencyProperty with a helper snippet:
#region SomeDouble (DependencyProperty)
/// <summary>
/// A description of the property.
/// </summary>
public Double SomeDouble
{
...
I have a style template (below) that does not update some my custom control properties.
...
<Style x:Name="KeyboardButton" TargetType="Controls:KeyboardButton">
...
<Setter Property="ArrowDirection" Value="Right" />
<Setter Property="ArrowBeginColor" Value="Red" />
<Setter Property="Template">
...
ArrowBeg...
One of the Silverlight 4 features listed in a lot of the PDC documents is Print Preview.
I've searched for examples on how to use this and found nothing so far. Has anyone got this working yet? Can you give me some pointers on how to implement a simple web app with print preview in.
...
With SL there is no access to underlying text rendering engine like the WPF allows to do using DrawingContext. All the rendering is internal. In SL4, we have the RichTextControl, the SL Framework still renders in some way by API's, Is these possible to access? Like, is it possible for the us developers to access it? Anyone knows how :).
...
I'm trying to buid a site with the following:
VS 2010 (for the updated WCF RIA Services)
Silverlight 4.0 (packaged with WCF RIA Services).
MVC 2
EF 4.0
I am setting it up so that the public facing pages will be html from MVC, but the administration portion will be a silverlight navigation application using using WCF RIA Services for ...
Update: This is a confirmed bug in Silverlight 4 beta. http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=523052
I solved this issue by switching to a full blown WPF application and using regular old Microsoft.Office.Interop.Word. But I'm still very interested in how to get this to work using the dynamic val...
I have a web app that sends ADO Entity data model classes over a WCF service to Silverlight.
Imagine this simplified structure for the database
[Item]
Id
Name
[ItemDetail] Id ItemId value
While the Item is in my SilverlightApp I add an ItemDetail to the Item, this is ADO so it's something like:
var fv = new ItemDetail();
...