I'm using SL4 and RIA Services to build a new solution based on the Silverlight Business Application template. Since I'm still developing, I'm just using localhost.
I'm trying to test the SubmitChanges functionality by making a single change in an associated (composition) entity and calling SubmitChanges. I have a breakpoint in my Dom...
I'm using SL4 and the version of RIA Services that was released at the same time as SL4 (mid-April 2010).
I have a datagrid that is bound to a PagedCollectionView that wraps the EntitySet returned by RIA Services, i.e. context.MyEntities. I don't allow editing directly in the grid. Instead, I have a separate "update" panel (a UserCo...
Hi!
I have a assembly with template control. I want write a program, that will get a copy of control implict style, like that do the Expression Bland (Edit Template/Edit a Copy...). In out i want get XAML (ResourceDictionary with copy of style).
How I can do that?
...
In Silverlight 4, I have a button with AllowDrop = True. If I drag a file and drop on this Button, drop event fires up and I write some code in it (regardless of whether I run Elevated or Non-Elevated!)
Same drop event doesn't seem to work for at least 2 controls, mediaelement and image control. Am I missing anything?
...
Hi!
I have pane with two grid and there is a listbox in both grid. I'd like to add Drag & Drop feature to the pane, so the user can drag a list element in the left listbox and drop it in the right listbox. I found many great tutorials and I could add the appropriate code to my pane but when the application is running and I click on the m...
I have a datagrid and a PagedCollectionView with more than 1000 objects and a pagesize of 100.
How can I add the PagedCollectionView to the datagrid such that when its scroll bar riches the bottom end will add an additional 100 rows to the datagrid?
...
Hi Stackoverflowers!
imagine the following simple Models (example for simplicity reasons; in fact, we have MVVM here but it doesn't matter):
public class User {
public string Username { get; set; }
}
public class StackOverflowUser : User {
public int Reputation { get; set; }
}
Now we have a Silverlight UserControl which contains...
Hello:
Wondering whether it is advisable to develop web applications under the "Silverlight 4 Business Application" template or under the "ASP.NET MVC 2 web application" template.
In any case, what are the PROS and CONS?
Thank you.
...
I want to integrate Alfresco with SL 4 app.
As Alfrsco provided restful services, it should be avaiable for SL 4 app.
Can anyone share a sample for this senario?
...
I have a progress bar bound to 2 integer values - One is the total seconds and the other is the seconds left (which counts down on a timer: always <= Total seconds).
I have the LayoutRoot datacontext set to my top level object (of which BlindSet is a property -see code).
When I run the project the progress bar updates perfectly. It cou...
Hi, experts,
I have a .rtf file and want to put it in a richtextbox in silverlight 4. Unfortunately we do not have .rtf property in silverlight 4 richtextbox, we only have .xaml.
So what i did is to create a FlowDocument, than load the .rtf to this FlowDocument, then format it to xaml. then assigned it to richtextbox. But i got a argum...
Is there a way to fire an event when the user clicks on link on a web page. I looked at all the events available for the webbrowser control and the only one I saw was the LoadCompleted event. But this event fires after a page has been loaded. I need to fire an event right before a page is loaded.
...
I created my first Silverlight application. In the client project, I want to define a Dataset object. To do so, I figured I first need to reference the System.Data namespace in the dll of the same name.
When I add a reference to the dll, I get a msg that "it was successfully added," I see thje dll in copied to the bin folder, and then ...
Hello friends , im using Silverlight and Ria services i have the following linq function in ria that returns an object called DependantPerson:
public IQueryable<DependantPerson> GetDependantPersons(int PerID)
{
return this.ObjectContext.DependantPerson
.Include("Person1")
.Where(dp => dp.Person_FK...
I've created a custom control with, amongst others, the following:
public partial class MyButton : UserControl
{
public bool Enabled
{
get { return (bool)GetValue(EnabledProperty); }
set {
SetValue(EnabledProperty, value);
SomeOtherStuff();
}
}
}
public static readonly DependencyProperty EnabledP...
Hi.
I may be confused about the purpose behind INotifyPropertyChanged and Silverlight...
I have XAML that I created in the designer:
<UserControl.Resources>
<CollectionViewSource x:Key="theViewSource" d:DesignSource="{d:DesignInstance my:transferObject, CreateList=True}" />
</UserControl.Resources>
as well as this
<...
If WebApp is configured as Windows Authentication, how to get the user credential in code?
How to create NetworkCredential using this exsiting user credential?
...
Hello,
I am creating a master detials silverlight page and am having trouble updating the datagrid after inserting a new record. On the top of the page I have text boxes to enter information, when a user clicks on save I would like the information automatically updated in the database and displayed on the datagrid without refreshing th...
Following the Saving Snapshots to PNG in Silverlight 4 and the WebCam sample code, I have a silverlight app that I can place on my html form to capture an image from a web cam.
I would now like to include the image in a html form post to my MVC controller/action. At this stange in the project I'm restricted from moving the whole data e...
Hi,
I have a RIA SubmitChanges call off my domain context:
_context.SubmitChanges((results) => ...do something for errors on return
Is there anyway to monitor the progress of SubmitChanges while it is transferring the entity set over RIA ? I use a BackgroundWorker thread to do my processing (not the RIA calls, as they seem to spawn ...