Here is my data type:
using System;
namespace UI
{
public class AddressType
{
public byte ID { get; set; }
public string Name { get; set; }
}
}
Here is my collection:
using System.Collections.ObjectModel;
namespace UI
{
public class AddressTypes : ObservableCollection<AddressType>
{
}
}
...
I am interested in trying out Silverlight, but I wonder about its capabilities. For example, I know it supports C#, but does it support all C#? Can I do anything with it, which I can do with normal C# for example? Are there limitation, would I for example be able to use any graphic engine/framework already written for C# or is there some...
What I have installed...
Windows Vista Ultimate Service Pack 1
Visual Studio 2008 Service Pack 1
.Net Framework 3.5 Service Pack 1
Silverlight 3.0
My First Problem...
I modify themes\generic.xaml and save the file and run the project and the changes I just made in themes\generic.xaml are not inside the assembly. I have used reflecto...
Where is the best place to put Style StaticResources? I have been putting the global and default styles in app.xaml and the page specific styles in page_name.xaml. Should every control have its own style StaticResource? Is it acceptable to put some style attributes right in the control? I have a page with 5 TextBoxes on it, should there ...
I'm very new to 3D Graphics and Silverlight so this may be a ridiculous first endeavor but... I've been asked to determine how viable it is to produce an "avatar" creator which will be a part of a larger C#/ASP.NET website.
So far my plan is to use Kit3D to access the 3D capabilities of WPF and render a 3D model through Silverlight as ...
Are there any good C# Silverlight Graphics or Game engines currently? I am planning to create a game with it (either 2d or 3d) but are there already usable frameworks or should I expect to have to build everything myself?
...
We're in the process of creating a Silverlight project and wondered how we could validate/test if it would run on Moonlight. From regular .Net to Mono there is the Mono Migration Analyzer which generates a report on which methods are missing in Mono to provide full support.
Are there any similar tools from Silverlight to Moonlight?
...
Below is a simple WPF application which displays Customers with the most orders which is collected from the database via LINQ-to-SQL in the code-behind.
What is the best way to extend this WPF application so that the user can select from a dropdown, e.g.:
Customers with the most orders
Customers with the least orders
Customers by city...
I've made a copy of my production website for staging purposes. My Silverlight app is served on port 81, and tries to access a WCF service via SSL on port 2443. I've verified that the service is reachable by typing in the URL:
https://mydomain.com:2443/UtilService.svc -- I get the "you have created a service" page.
But when my SL app ...
I'm developing a Silverlight 3 App and getting this really weird error when I try to add an object to a Canvas. My code is as follows:
for (int i = 0; i < person.Children.Count; i++)
{
//Add children in same position as parent
Person child = person.Children[i];
child.x_PositionTransform.X = pe...
In the following code, person.Children contains 3 other Person objects. This code adds the child.Loaded event handler to all three, but child_Loaded only executes for the first two. Any idea why this is?
foreach ( Person child in person.Children)
{
//Add children in same position as parent
child.x_Positio...
I tried to throw an InvalidArgumentException in a Silverlight 3 class library, and this type is not available. It doesn't even give me the red underline that tells me it's in a referenced assembly but I just need to import or fully qualify the namespace. Do I have to import a whole other assembly just to get this exception class, or do...
Hi,
I have the following class structure:
class Organization
{
string Name;
List<User> users;
List<Organization> Children;
}
class User
{
string Name;
}
I cannot modify these classes.
I need to display all the information about organizations and users in one TreeView control. I.e., organization nodes should contain su...
Of course there's the Silverlight Unit Test Framework (which seems more like integration testing to me), this port of the NUnit.Framework assembly, and SilverUnit, but what other options are available for Silverlight unit testing?
Any good/bad experiences with any one of those (or others)?
...
Hello,
I am currently working on a silverlight application, more precisely a game, that has 2 states : Lobby and Game.
I created my service application to reflect that structure. I created a LobbyService to handle all lobby related operations and a GameService to handle all actual game operations. On top of that, I have a third service...
I am trying to create a new silverlight project, but I cannot tell if it is creating the project under SL2 or SL3. Anyone know if there is a way to tell the difference in the project?
...
hi guys,
as an ASP.Net developer, I am familiar with Master Pages as template for web pages. Is there any mechanism in silverlight which is equivalent with Master Pages in ASP.Net?
Because I don't want to repeat myself creating similar control like:
ControlA
<UserControl>
<Grid>
<Button Click="ClickMe" />
<Button Click="Can...
Is there a reason that the Silverlight Ready WCF does not have an Interface for the ServiceContract class built automatically like the normal WCF Services do? I understand there isn't a need necessarily for it, but I am just curious why one would have it and the other does not.
...
I'm trying to host a WCF service in IIS7 that works with both Silverlight and for GET requests. I have the Silverlight endpoint working but can't work out how to create an additional endpoint on the same service that will handle GET requests from AJAX clients.
I have a second service that is for GET requests only and it works fine so my...