When databinding the Treeview in the Silverlight Toolkit to a data source, how do you then access the TreeViewItem itself to use its IsEnabled property? Or do we lose that functionality and need to support it with any custom hierarchicaldatatemplate?
If I'm databinding to a tree of custom objects, how do I then access an individual Tre...
I'm looking for a place to host Silverlight Xap files. I would like to use these Silverlight apps as demos in a weblog. I don't ow my own webserver. I'm assuming I'm not the first that ran into this, so I'm curious about your experiences.
Does anyone have a good suggestion?
...
This may be a ridiculous question for you C# pros but here I go. I'm a Flash developer getting started in Silverlight and I'm trying to figure out how to create a "codebase" (a reusable set of classes) for animation. I'd like to store it in a single location and reuse it across a bunch of different projects. Normally in Flash I would add...
Looking for a way to pass an associative array to a method. I'm looking to rewrite an Actionscript tween package in C# but running into trouble with "associative" arrays/objects. Normally in Actionscript I might do something like:
public function tween(obj:DisplayObject, params:Object = null):void {
if (params.ease != null) {
...
Hello all,
Looking for information on how to hook events to DataTemplate for silverlight using code only. This will crash my browser when rendered.
private DataTemplate Create(Type type)
{
DataTemplate dt = new DataTemplate();
string xaml = "<DataTemplate x:Name='dt' xmlns='http://schemas.microsoft.c...
We're using silverlight in a kiosk type scenario. Is there a way to disable the right click ability to enter the silverlight configuration dialog?
...
Does anyone have any white papers or articles that would compare and contrast a web architecture where a .NET client component is required and the options being considered are ActiveX or a .Net component solution?
I have a customer that wants to architecturally recommend a .Net client approach over Active X. However, there are some st...
I'm attempting to call a javascript function (in our code) from a silverlight control. I'm attempting to call the function via:
HtmlPage.Window.Invoke("showPopup", new string[] { "http://www.example.com" });
and I get the error "Failed to Invoke: showPopup"
I can call HtmlPage.Window.Invoke("alert", new string[]{"test"}); without issu...
I've got a silverlight listbox and I want to remove the colour change highlight that occurs when the user selects an item in the listbox.
By default when an item is selected it highlights the item a sort of light blue color.
How can I stop this from occuring?
As an side question, how do I customise this to any arbitary colour?
Thanks...
So for example... in the following user control I have a grid with two rows. I want the bottom row to be the height of it's contents and the top row to be the height of the rest of the grid. I can set a absolute height as in the example, but that isn't particularly flexible. Say someone changes a font sizing the text could get clipped....
I don't really understand this article. But it sounds like you can compile C/C++ for flash. If that's possible, how hard would it be to compile and run Mono inside flash?
Sounds stupid I know...maybe I'm going crazy with my age.
...
Does anyone have any suggestions on how to justify read-only text (rendered into a TextBlock) in Silverlight 2? WPF supports text justification by way of the TextAlignment enumeration:
public enum TextAlignment
{
Left,
Right,
Center,
Justify // <--- Missing from Silverlight :(
}
However, Silverlight 2 only supports the...
I am creating an installer for a silverlight application and would like to be able to register the .xap extension for IIS automatically. Is there a way to accomplish this without editing the registry? If not, what registry entries to I need to make? Thanks!
...
How does a Silverlight application ask the browser what domain its being served up from?
UPDATE:
Make sure if your class doesn't already have this using statement add it at the top your class. This will help you on some of the examples you'll see online. It confused me for a bit.
using System.Windows.Browser;
...
If you use this code in Silverlight and WPF you get slightly different results?
<Button Name="SomeButton" Margin="10,15,180,12" Width="200" Height="50"
VerticalAlignment="Top" Background="Black" Foreground="White">
</Button>
In Silverlight you do not get a solid black Button. You get a vertical white-to-black grad...
Which .Net technology is best suitable for which kind of game? What the criteria for choosing between WPF, Silverlight or XNA?
...
I read that "the default namespace is important because otherwise the XAML parser will not recognize the elements".
However, just as a test, I take it out and, although the visual designer cannot recognize the element names anymore, this Silverlight XAML runs just fine:
<UserControl x:Class="Second12.Page"
xmlns:x="http://schemas.m...
This code works in WPF but not in Silverlight.
Are there any workarounds in Silverlight to enable to me to bind a slider value to element heights? What are the limitations of Silverlight here?
ANSWER:
Thanks Peter for solving this, for others: here is the solution with online demo and downloadable code.
<UserControl x:Class="Second12...
Silverlight is enticing from my C# background. But I'm concerned about it's penetration. Is it likely to catch on ? OR perhaps I should just bite the bullet and learn Flash.
Does anyone have any advice on which to choose ?
...
In Silverlight a tooltip can have as many elements in it as you want.
However, it doesn't receive focus so you can't have user interactivity in it.
Could you, though, start a video playing as soon as the tooltip opens and have the video stop as soon as the tooltip closes?
...