I have a class like this:
public class Contest {
List<ContestTeam> Teams { get; set; }
}
public class ContestTeam {
int TeamId { get; set; }
int FinalScore { get; set; }
}
And my view model looks like this:
public class ScheduleViewModel {
int CurrentTeamId { get; }
List<Contest> Schedule { get; }
}
My Xaml loo...
I have an image on my silverlight app and I want it to shake a little bit when the mouse is on top.
How can I achieve this? I'm really new to silverlight animations.
I need it to bounce a bit and tilt from left to right. Can anyone help?
...
Has anyone one every created a method for Silverlight which does the same thing as Matrix3D.pointAt() does in Flash? In flash pointAt rotates a display object so that it faces a specified position. In my situation I want it to face the same direction as its velocity vector.
...
Hi all, I'm writing my very first Silverlight app. I have a datagrid with a column that has two labels, for the labels, i am using an IValueConverter to conditionally format the data.
The label's "Content" is set as such:
Content="{Binding HomeScore, Converter={StaticResource fmtshs}}"
and
Content="{Binding AwayScore, Converter={...
Hi all,
I'm bumbling my way through creating a Silverlight 3 application. I need some high level guidance for the following scenario.
I have a page where a user fills out a bunch of information. At the bottom of the page there is basically a submit button.
When clicked, it commits the info to the database (via ria services), and then ...
We have this nice Silverlight 3 application that communicates with a web server running some WCF web services. It works well when it is running in the browser, but at soon we try to run it outside the browser it doesn't call our webservices.
I have tried to find out why this is happening, but I can't find any explanation.
When attach...
Okay, still on my silverlight app here, what I need to do is to somehow perform conditional formatting on the cells of a datagrid, but the "conditional" part needs to be based upon the values of several different fields/properties in the datasource.
I thought i could use the typical IValueConverter method of conditional formatting and ...
I'm currently using the WebAii automation framework to write some user interface tests against a Silverlight 3 application. I'm new to Silverlight and suspect that I'm missing some bit of information about the HyperlinkButton.
The application has a HyperlinkButton and I'm attempting to write code that navigates to the page, finds the b...
I have a baffling situation, which maybe you guys can help.
My RIA Solution does not retrieve the data from the service...
To give you an idea...
My domain service is derived from LinqToSqlDomainService and is in a Web Application project.
I had first created a RIA Services project with MVC and the Get query to the service (DomainConte...
I am working on a Silverlight 3 app with C#. I would like to allow the user to download an image from the Silverlight app. I am using SaveFileDialog to perform the file download task. The flow goes this way:
User clicks on Download button in the SL app.
Web service call invoked to get the image from server
OnCompleted async event h...
Hello,
I like ChildWindow in Silverlight 3 but I don't like the manner it appears on the screen. It appears too quick and even irritates the eyes.
Maybe does someone know how to change this manner, make it softer and maybe slower?
Thanks
...
Hi all,
I was wondering how to add our own custom icon to the web page for our Silverlight application? I know how to set the text (using the Title property for the Page), but the icon eludes me.
For example, see the below image. The most left tab has the G for Google, and the most right one has the CNN icon. How can I get my own there...
I created a deep zoom image with Silverlight 3.0, but I want to make it into a 360° image. How do I do this?
...
Suppose I have following tables with the right relationships built:
Employee(empID, ...)
Address(AddresID, ...)
EmployeeAddress(EmpID, AddressID, ...)
Then modified the generated code for GetEmployee by .NET RIA Services like:
public IQueryable<Employee> GetEmployee()
{
var Employee = this.Context.Employee.Include("Employ...
I have a square 400 x 400 with a plane projection attached to it
<Rectangle x:Name="Ground" Width="400" Height="400" Stroke="Black" VerticalAlignment="Bottom" Canvas.Left="60" Canvas.Top="50" >
<Rectangle.Fill>
<ImageBrush ImageSource="_images/grass.jpg"/>
</Rectangle.Fill>
<Rectangle.Projection>
<P...
I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0. It must be a no-brainer but probably I forgot my brain home today...
I defined a Model class to represent my .. 'data'. I implemented the INotifyPropertyChanged interface to enable the UI to see when the data changes.
public class Model : INotifyPropert...
I have a checkbox column bound to a dependency property. When editing the checked property is it possible to update the bound property immediately rather than waiting for the cell to lose focus?
Thanks,
Mark
...
I want to be able to store various Canvas items in seperate XAML files so for example they are declared as:
<canvas x:Class="Item.One" Height="300" Width="400">
...
</canvas>
and another like this
<canvas x:Class="Item.Two" Height="300" Width="400">
...
</canvas>
I am wondering why I cannot get this to work when I try and load them...
Microsoft has a handy reference of the various controls in the System.Windows.Controls namespace and which controls are included in the runtime.
For any controls listed here that aren't included in the runtime, you have to include the reference to the System.Windows.Controls assembly and select "copy local" in Visual Studio. So that's ...
I'm trying to write a silverlight application that takes in InitParams and then uses those InitParams to make a change to the Source of the MediaElement on the page. I'm trying to figure out the proper place to put my code.
I watched Tim Heuer's excellent video on InitParams, but in the video (which was for Silverlight 2), it shows the...