I have a control which inherits from (you guessed it) Control.
I want to receive a notification whenever the FontSize or Style properties are changed. In WPF, I would do that by calling DependencyProperty.OverrideMetadata(). Of course, useful things like that have no place in Silverlight. So, how might one receive those kinds of notif...
Is it possible in WPF to bind a data matrix (data table or an XML file) to a ListView?
Given the following XML dataset:
<data>
<cols>
<col name="FirstName" />
<col name="LastName" />
<col name="Age" />
</cols>
<rows>
<row>
<col>Huey</col>
<col>Freeman</col>
<col>10</col>
</row>
<row>
...
I know there are a couple of debates on this kind of thing....
At any rate, I have several cases where I need to populate combobox items based on enumerations returned from the WCF service.
In an effort to keep code clean, I started this approach. After looking into it more, I don't think the this works as well is initially thought... ...
I'm currently trying out Silverlight Spy (http://silverlightspy.com) however it is showing a strange error when I use the ChildWindow control.
This error only shows up when I open my Silverlight app in Silvelright Spy.
I'm using Silverlight 3 Beta.
I've uploaded a project that reproduces the error for those who want to check: http://c...
either I'm missing something or the (patterns & practices Composite Application Guidance for WPF and Silverlight) doesn't come with any templates or "guidance packages" to generate code. could someone confirm if I didn't install it properly or it is totally different from SCSF and doesn't have any codegen in it?
...
I have a BitmapImage instance in Silverlight, and I am trying to find a way to read the color information of each pixel in the image. How can I do this? I see that there is a CopyPixels() method on this class that writes pixel information into the array that you pass it, but I don't know how to read color information out of that array.
...
DataFrom works fine with AutoGenerateFields and no styles, but when I add a textbox style to the DataFormTextField's EditingElementStyle like this
Style x:Key="FieldTextBoxStyle" TargetType="TextBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Grid x:Name=...
I just installed Silverlight 3 + RIA services after uninstalling Silverlight 2, now my Silverlight projects no longer build automatically when I run (F5) my website. I have to manually build the silverlight app and then run the website which is really annoying.
Any ideas how to fix this issue?
Thanks,
Pyt
...
Is there another Timer object that can be used in Silverlight except for the System.Threading.Timer object?
...
When referencing a silverlight scriptable object using javascript via,
var uploadControl = document.getElementById("FileUpload1");
uploadControl.Content.FileUploader.UploadFile();
I get a null pointer (FileUploader ref) when the silverlight object has an added attribute of style="display:none" or visibility set to hidden. This only ha...
I'm creating a Silverlight front end for an existing desktop app written using CSLA. One thing that I'm having trouble with is converting classes like the following:
public class SomeCollection : Csla.ReadOnlyListBase<SomeCollection, SomeObject>
{
private static SomeCollection _list = null;
public static SomeCollection GetSomeCo...
Is it possible to access the Windows 7 Sensor and Location platform from Silverlight? In particular I would like to know about the location data (GPS) and the ambient light sensor.
Edit: I would assume that the way to do this would be with C# in the code behind file.
...
How do you secure a Silverlight-Enabled WCF Web Service with SSL? I have tried setting it up similar to a regular WCF service secured by SSL, but it doesn't seem to work. What do you set in the Web.Config, and what do you set in the Silverlight's ServiceReferences.ClientConfig?
I noticed that in the ServiceReferences.ClientConfig file...
What is the best way to set up username and password authentication in a Silverlight-Enabled WCF web service?
...
I have a silverlight app that I want to allow to size like a regular HTML page. That is, I want the size of the silverlight plugin to expand and contract in height to accommodate the dynamic data and controls that I am populating the silverlight app with. So, say I have a Page with a Grid and a button. The user hots the button and the gr...
I would like to expose a SyndicationFeedFormatter with wcf and basicHttpBinding. I continue to get errors like that shown below. I have included the interface/class and the web.config wcf configuration.
I have tried to expose SyndicationFeedFormatter as well as IList but am unable to get past the following error. Has anyone been able...
I have a listbox in my silverlight usercontrol and I am filling it with a generic list of a private class, for some reason it is not being databound.
Here is the code :
class userClient
{
public int characterID { get; set; }
public string characterName { get; set; }
}
List<userClient> userClientList; // = new List<userClient>...
This is regarding
Visual Studio pro 2008 sp1, with resharper and testdriven installed.
I've just installed:
Microsoft Silverlight Projects 2008
Version 9.0.30729.146
I find I can't open a silverlight application due to a 'missing patch'. The error dialog directs me back to the download page for the silverlight tools I just installed. ...
I'm new to .NET programming, and trying to learn Silverlight 2 / C#.
I need to declare numeric constants (or better yet, readonly variables), and access them in both XAML and my C# code-behind file.
These values are more appropriately defined in XAML, but if the definition needs to be done in C#, that's better than hard-coding the val...
Exact duplicate:
http://stackoverflow.com/questions/661479/why-does-silverlight-2-only-support-wcf-basichttp-binding
Why only basicHttpBinding with silverlight and wcf? Perhaps you have a link that covers this, you don't have to do a bunch of typing :+>
...