Here is my layout:
<StackPanel>
<!-- Defining my DDS here wont allow my ComboBox inside the DataTemplate bind to the loaded items -->
<DomainDataSource x:Name="ddsValues" Query="MyQuery" DomainContext="{Binding DC}" />
<DataForm>
<DataForm.EditTemplate>
<DataTemplate>
<StackPanel>
...
I'm using Visual Studio 2010 Beta 2 and creating an Out of Browser Silverlight 4 application. There are some slow bits and I'd like to profile it, but whenever I try, the application loads, the profiler starts but exits almost immediately. It reads:
Profiler started
Successfully attached to process: 2088
Exited from process: 2088
Colle...
I expected the following code
JsonArray.Parse("[\"cat\",\"dog\"]")[0].ToString()
to give me cat but it actually gives me "cat".
Is this a bug or by design.
Interestingly there is a private value member which does give cat.
(((System.Json.JsonPrimitive)(JsonArray.Parse("[\"cat\",\"dog\"]")[0]))).value
will give cat - but its pri...
I have a memorystream in a silverlight app. I have to copy this memorystream to a filestream object. If I call:
memoryStream.Position = 0;
memoryStream.Seek(0,SeekOrigin.Begin);
It does not work, I debug the application, check the properties of the memorystream, and the position still points to the end of the file. Any clues?
...
I did some searching but it wasn't what I was looking for. So, does anyone know a way how to style the validation tooltip in Silverlight(the thing in the green border)?
Any help would be greatly appreciated!
Best Regards,
~K
...
I'm trying to clearup a few questions about Silverlight to see if it's suitable for a project I've got comming up. A question I've not been able to answer is with regard to proxy connections.
Does connecting to the internet via a proxy add any complexity to the application, or is it handled transparently?
...
Obviously there are some proprietary controls such as Telerik, Syncfusion and Component Art - but I was wondering if anyone had attempted to build this type of control from scratch? I thought of overloading the tab control in silverlight 2? Anyone have any pointers?
...
I'm trying to better understand Silverlights binding mechanism and so have created a simple program that will change the borderthickness of a listbox on the press of a button. However it doesn't work and I can't figure out what I am doing wrong. Any ideas?
XAML:
<Grid x:Name="LayoutRoot" Background="White">
<ListBox Height="100" H...
Hi,
I need to implement CheckBoxList control with ItemsSource and CheckedItems properties. Items from ItemsSource should be displayed as checked checkboxes if CheckedItems contains these values or unchecked otherwise. Also I need two-way databinding support for CheckedItems property (value of this property should be updated when user cl...
Hi stackoverflow,
I'm currently working on a project where I have an Accordion control on the MainPage. It all works just as intended, but there's a small problem that I cannot seem to get my head around.
When I load the page, the first accordion is expanded. Is there any work-around to tell the Accordion control, that all the accordio...
Does anyone know of a good, animated ItemsControl for Silverlight, or an easy way to implement it?
Bascially, I am looking for something that allows the items to fly in/out when the items are added/removed from the ItemsSource.
I tried re-templating the ItemsControl to use the RadWrapPanel from Telerik, but that wasn't quite what I was...
I saw that you can do a dropshadow: http://pagebrooks.com/archive/2009/03/30/easy-drop-shadows-on-text-in-silverlight-3.aspx
Can you also do a text border, like white colored text with a black border around each glyph?
My problem is actually this:
In our web application, a user can pick ANY color for a background, and we're going to p...
I've been beating my head against this for awhile to no avail.
I have a bunch of images of geological samples which are nominally 1500px wide by 30,000px long. A typical set of these images will number from 20-100. I have used the DeepZoomTools.dll to create a collection of these images and am attempting to use that to lay out the i...
I'm creating a website using PHP and MySQL, and I'm trying to add some Silverlight stuff to the site. I need the users to be able to do stuff in the Silverlight app, and for that data to be saved in the MySQL database. I'm wondering about how I could do this...
Can I get the client side Silverlight app to log in to the server side MySQ...
Currently as my job profile i am more working on asp .net application but i also wanted to have my hands on silverlight application. so, i just decided to build one silverlight 4 application in my spare time and on weekends.
We are having a team of around 4 people. We also tried for commercial application but as we can only develop it i...
I created a basic Silverlight WCF service from VS2008. The only thing i have changed from the auto-generated WCF service is to add a method:
public int DoWork2(int x, Version version)
{
return x;
}
If i remove the Version parameter, my Silverlight client works perfectly, but if the Version parameter is added, I get a...
I create a style in resource dictionary file as below for silverlight app:
<Style x:Key="YesStyle" TargetType="Ellipse">
<Setter Property="Stroke" Value="Black"/>
<Setter Property="Height" Value="14"/>
<Setter Property="Width" Value="14"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="Margin...
I'm trying to programmatically add events and elements to a DataTemplate in a Silverlight 3.0 app. I have a User Control with a dependency property where I would like to take the template that's set, tweak it, and then set the modified version to an inner control.
The idea I have is to take the DataTemplate that comes in, read its XAML,...
I have a situation where I need to determine if I've reached the end of a Storyboard, and then need to seek to the end of it.
I want to do:
storyboard.Seek(timespan);
However, if timespan is longer than the storyboard's duration, I get an exception. If I look at
storyboard.Duration.TimeSpan
I get an error because the Duration is ...
Here is the issue...
I am adding some silverlight 3 controls to an ASP.Net Web Forms application. The silverlight application's height can change based on the amount of data in it. The application is part of a web page and not the whole page. My users would like to have only 1 set of scroll bars. Is there a way to dynamically size the d...