Hi
The following code for RIA works in my silverlight client. But I dont want all the data from table "tbLeagues" - so how would i filter it?
JasonsDomainContext context = new JasonsDomainContext();
dgLeagues.ItemsSource = context.tbLeagues;
context.Load(context.GetTbLeagueQuery());
Reading many articles ...
Hi,
I want the change the description of the labels on my silverlight dataform which currently show as my table fieldnames (dbEmailAddress).
<StackPanel Grid.Row="0" Grid.Column="1">
<dataFormToolkit:DataForm x:Name="dataForm1"
CurrentItem="{Binding SelectedItem, ElementName=dgLeagues}"...
I am new to Silverlight and want to animate a ball that is shot out of a cannon then moves through the air under the laws of physics (so roughly, on an elliptical path).
My inclination is to use a callback timer and move the little ball every 50ms by changing its Canvas.LeftProperty and Canvas.TopProperty values. Is this the right appr...
I'm working on a Refresh() extension method for ObservableCollection which adds, removes or replaces items based on a matching key (this means when bound to a DataGrid the grid doesn't re-scroll and items don't change their position unless they were removed).
Problem is when I replace items in the ObservableCollection the last item thro...
Hi
I'm getting a AG_E_UNKNOWN_ERROR when running my Silverlight project. The project is ported from WPF, and from what I can gather around the web, I'd assume it's related to something invalid in my XAML
EDIT C# Control sources can be found here: SilverlightCalendar/Controls
Here's Generic.xaml, the styles for my application.
<Resou...
Ok ,this is going to sound silly, but I can't get the ScrollViewer to work properly.
What I need to do is
Have a silverlight page use 100% width/height of the HTML page
Have a Height=160px control on the top part of the Sliverlight page, then have the rest (100% - 160px) be a ScrollViewer with dynamically changing content.
so in th...
How do I share files between WPF and Silverlight projects in Visual Studio 2010?
...
Here's the scenario:
A Silverlight app (just a wireframe) that is hosted on an html page (no aspx/server side solution, just a client side html page loaded from c:\somefolder\mysilverlight.html), actually it is hosted in a WPF app using WebBrowser control.
The WPF app needs to inject Silverlight xaml in to the Silverlight wireframe dyn...
I can't for the life of me figure out why this doesn't work. I've got a simplified piece of Xaml that looks like this:
<UserControl x:Class="Foo.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://sc...
Cursors.SizeAll is one of a few Windows cursors that are apparently off-limits for Silverlight. What is the reason for this?
I read somewhere (not English) that it was done to reduce the size of the runtime. Is that true?
...
Hi, I am pretty new to silverlight and was very surprised to see that only asynchronous file downloading can be done. Well, I've attempted to counter act this by just setting a flag and waiting on it to change..
This is my simple code
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
WebClient webClient = new WebClient();
...
I am building my own web server and want to serve from it a Silverlight application. Is there anything else I have to do besides setting the mime type and pushing the application through the wire?
It probably makes no difference, but the web-server is in C# (the micro-edition).
...
How would I go about implementing a band-pass filter in c#? I'm using a custom MediaStreamSource in Silverlight and am using additive synthesis to produce sound. My audio stream is a continuous stream of int16 shorts:
//over-simplified example:
short sample = oscillator.GetNextSample();
memoryStream.WriteByte((byte)(sample & 0xFF));
m...
I'm trying to add the validation and get the following from the compiler.
The property 'ValidatesOnException' was not found in type 'Binding'.
The property 'ValidatesOnException' does not exist on the type 'Binding' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'.
I tried adding System.Windows.Data in S...
When looking into MVC frameworks for flex, as3, silverlight, and wpf... a common concept of ICommand / commanding keeps appearing... Can anyone explain the advantage of using ICommand / Execute() ?
Where I dont see the value added is - Why can't the controller map the input (ie: a click event) to the correct method inside of the model? ...
What are my options for printing in Silverlight 3? Assume I have this awesome Silverlight application/control that creates a graphical display of some data. Now the user wants to print it.
I have considered a few options but I have yet to test any of these. Before I do that I would like to get some feedback on how it can be done.
Use ...
I have a problem when using LINQ to set a where clause on a query in a domain service call.
If I don't set a where clause it works just fine and I get my result back in my completed event (I have only implemented the eventhandler for the completed event to demonstrate my issue here).
LoadOperation<User> load =
_Context.Load(_Context...
I am looking for a design pattern that handles large data sets over the internet, and does periodic updating of these objects. I am developing an application that will display thousands of records in the UI at one time. Additionally, various properties on these objects are quite transient and need to be updated on the client to keep th...
Can Silverlight 3 OPEN SOCKETS?
If yes.
What do I need
MSDN if there is any help on this.
Open Source Libs/wrappers for encoding/decoding.
Tutorials and blog articles on How to do it.
If no I need where did you get the info from (link to MSDN or other official SL resource)
...
Basically I have a button that I built a control template for. It is currently working but VS 2010 complains about the following line of code in my control template
<TextBlock Text="{TemplateBinding Content}"
Foreground="{TemplateBinding Foreground}"
x:Name="cContentTextBlock" />
The control template is for a Button and I ...