I've defined a HierarchicalDataTemplate in the App ResourceDictionary. If I set the ItemsSource property in XAML, the TreeView looks and behaves as expected. However, if I set the DataTemplate to this object in code, remove the ItemsSource value from XAML and instead set it in code (like the following example), it gets ignored and the ...
Hello all,
I recently implemented an animated Typewriter effect in Silverlight using F#. My code works, but I'd like to see if anyone has recommendations on ways the code might be improved. i.e. Would it be a good or bad idea to do it with Seq.iter or Seq.map? Any opinions and comments are welcome!
I also thought I'd document the code i...
How to create Simple HLSL Silverlight filter for blending/playing with/mixing 2 images?
I need some working example of a filter which would take as an input 2 images\objects and return 1 image - result of some calculations.
I want to bring to Silverlight blend modes!)
...
Has anyone successfully implemented this MSDN solution for Sharepoint external libraries?
http://msdn.microsoft.com/en-us/library/dd440954.aspx
Some background: We will be providing file upload/download capabilities to both Intranet and Extranet users. In some cases, user uploads will be very large : sometimes twice the WSS3/MOSS2007 2...
I am creating a DataForm from dynamic data (so I can't create the columns in the xaml), I currently create columns for my DataGrid (I have not worked out how I can create a button + event in a colomn yet)
foreach (var item in headings.Entities)
{
theDataGrid.Columns.Add(
...
Our team decided that we need our own custom Rich text box control for Silverlight app we are developing. We looked at existing controls mentioned at http://stackoverflow.com/questions/1372038/a-good-rich-text-control-for-silverlight
but decided to build our own,due to varios reasons. We are planning to build it in stages, with elementar...
I'm using MVVM with Prism and Silverlight. I have multiple different views of one model. As I am writing more views their ViewModels seem to duplicate a lot of common code related to handling this one model. Rather than repeating the same common code in all the VMs I am tempted to push it back into the model (which would probably mix ...
Hi All,
I have a domain services class that runs on the server in a silverlight application. I.e. the class is defined like this,
public class UpgradeToolDomainService : DomainService
{
...
}
I am using RIA services which means that on the client it generates code which looks like this,
public sealed partial class UpgradeToolDomainC...
A few of my silverlight pages should provide a custom error message depending on whether an error occurred and what the error is.
I have a custom control that will present the user with the error, however, my question is:
Would it be better to add this control into the XAML and just set it as collapsed or visible (depending on whether a...
Hi Guys,
I've been trying to create a basic behavior in my PRISM based silverlight project. Something like http://csharperimage.jeremylikness.com/2009/10/silverlight-behaviors-and-triggers%5F09.html
the problem I am having is that the OnAttached() and OnDetaching() methods of the behavior get called fine but when I set up my event hand...
Silverlight assemblies are not binary compatible with "normal" .NET assemblies. How can it be, considering the fact that the same compiler is used to create both types of assemblies (even though mscorlib.dll is not referenced for Silverlight)?
...
Is is possible to load 3D objects in a Silverlight 3 or Silverlight 4 application? (3DS Max objects or other formats). Besides loading the object I also need some basic interaction - simple rotations, zoom in/out.
...
In my app i have the option of viewing a file that opens a window application (google earth).
In order to do that i wish to create a custom file server-side under a certain relative path (eg. "//Files") and then tell the server to execute it.
How can i do this?
Thank you
...
I am using HTTPWebRequest to post data to a webserver in Silver light 3.0, here is my code
public void MakePostRequest()
{
// Create a new HttpWebRequest object.
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.mywebsite.com/somepage.php");
// Set the ContentType prop...
10 years ago, I read one of those Teach Yourself HTML in 24 Hours books and haven't looked into developing for the web since.
I'm currently trying to learn C# and Silverlight and make my way into the world of professional software development. I'm not specifically targeting the web, but if I put up a personal website, I'd like to be ab...
I have a textbox which has a very long url inside of it. What I would like to do is, when the user hits the home button I would like the cursor to go to the beginning of the textbox.
I would expect this to be the normal behavior but its not, when the text inside of the textbox is very long, and I hit home, it goes to the beginning of t...
Hi!
I have a WebClient that is fired multiple times in the same class and runs asynchronously. I need a way to correlate the request to the response. Is there a way to, for example, get the original URI in the event completed handler? Or any other way?
I'm using this in silverlight, should you care.
Thanks,
Palantir
...
Hello All
I have tried to use Dataset in Silverlight Application. But I'm not able to create dataset object. Please give me a solution for this.
Thanks In Advance.
...
I have a HTML page that contains two main elements. One is a silverlight map (with animated pushpins) and the other is a jQuery animation.
When the silverlight map contains lots of pushpins the jQuery animation is very choppy. Is there any way to get Silverlight to be less of a resource hog and let the jQuery animation have higher pri...
I am writing an app using the MVVM (Model-View-ViewModel) pattern and am leveraging the Prism and Unity bits from the Microsoft P&P team.
I have a View with a list of items. These items are contained with an ObservableCollection in the ViewModel to which a listbox in the View is databound (the ViewModel is set as the DataContext of the...