I am trying to debug an IE 8 crash caused by a Silverlight application. I managed to find some articles on how to do a memory dump when a process crashes. I loaded the dump in windbg and ran !analyze -v. Below is the result. I am stuck at what further steps I can take to figure out what module or library that is running in Silverlight is...
I have a TextBox in a column with dynamic column:
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBox Grid.Column="1" TextWrapping="Wrap"/>
The width of TextBox just fit to users' screen. But when the text in it is longer than its initialized width, the TextBo...
I'm trying to position entities visualy to show their relationships to each other. It looks like for automatic graph layout, the spring algorithm would suit my needs. I'd like to implement this in silverlight using c#, so I'm looking for code samples, or links to good explanations of the theory. Any help appreciated
...
I'm using a wcf service with my silverlight application. The location of the wcf service is stated in the ServiceReferences.ClientConfig file, and have to be changed to location where the application is installed.
However this file is included in the xap file, and is not something that can be easily changed when the application is de...
I have a ARGB value stored as an int type. It was stored by calling ToArgb.
I now want the byte values of the individual color channels from the int value.
for example
int mycolor = -16744448;
byte r,g,b,a;
GetBytesFromColor(mycolor,out a, out r, out g, out b);
How would you implement GetBytesFromColor?
To give the context I am pa...
I'm trying to bind a JSON array to a datagrid in Silverlight 3. I do not get any exceptions but I do not see the column values in the datagrid. I do see the rows though, but I do not know what the binding property should be. I do not want to create a class, populate the class and the bind. That works. I do not know what columns and datat...
Hi
I have build a silverlight application for message service. my problem is silverlight application disconnect after 10 connection. But i want it unlimited or thousands. I have spent a lot of time on this problem. some point about my application as:
I have build 3 prject like silverlight project, web project, wcf service project.
Im...
Yi-Lun Luo at Microsoft says:
[C]urrently [the] TabControl doesn't override
PrepareContainerForItemOverride, so it
won't automatically wrap your data
source in TabItems.
So the question is: How do I create my own control that:
Extends the TabControl.
Overrides the PrepareContainerForItemOverride.
Automatically wraps my data...
Hello,
I've considered using the db4o OODBMS with a recent Silverlight / RIA Services project, but there's one point that I could use some advice on - how to make associations work. RIA Services requires that you mark all of your associated entities with an AssociationAttribute. The AssociationAttribute's constructer requires that you...
When will Silverlight 4 come out?
Mary Joe Foley at ZDNet speculates (from a slideshow) that VS2010 will be released in the April 2010 timeframe. Will Silverlight 4 make it to RTW by then?
What features will it have? Will Silverlight RIA be part of the SDK, or a seperate "Stable/Preview" library like parts of the Silverlight Contro...
I have text I am displaying in SIlverlight that is coming from a CMS that is used to store web content. There are fields in the cms like name and description that contain html tags and encoded characters.
What is the best way to convert/strip these from the text so they can be displayed in a silverlight textblock
I am leaning towards r...
I have a simple lookup list that I will use to populate a dropdown in Silverlight. In this example I'm using US States.
I'm trying to figure out if its better to return a static list or use the yield keyword. Of the following two pieces of code, which is the preferred and why?
Version 1: Using yield return
public class States
{
...
I am having the following XAML code, which throws error following error pointing to line# 16.
the property 'Content' is set more
than once
Any thoughts?
1 <Grid x:Name="LayoutRoot" Width="970" Height="460" Background="White">
2 <Grid.RowDefinitions>
3 <RowDefinition Height="*"/>
4 <RowDefinition ...
I am building an issue tracking system that uses Silverlight. I use DataGrids to display the issue lists, set the selected index to -1 so that no row appears selected and then use the selection change event to popup an issue details window for the particular selected issue.
When I try to refresh the DataGrid by rebinding it to its Items...
I have a string that I want to display a symbol in (the division symbol you learn in elementary, not a slash). According to the character map, the font that I'm using to display the string (inkpen2) has a division symbol code of 0xD4. I want a string to be "5 symbol 7" and display it to the user. Is it possible to do this?
...
I want to display a negative symbol from a string in .NET. I want a string that represents an equation that looks something like this:
7--5=12
But when displayed, I want the 2nd minus sign to be slightly raised so it looks more natural as a negative sign instead of just 2 minus signs in a row.
Is this possible?
...
I can place a couple of buttons in Silverlight, but I'm not that experienced with the Silverlight tools and capabilities.
What do you think I should use to create something like this?
The control would have to pull and ID from the database and according to that place an image asociated with the record.
I need it to be animated with ...
I'd like to use Silverlight's CLR instead of .NET CLR. For these reasons, at least:
Cross-platform ability
I need to avoid any compatibility problems for my .NET-written plugin. Process can host only sole .NET CLR, and when several plugins targeted for different CLR versions are in the same process - it becomes a great pain. Silverligh...
Hi,
I have Silverlight application test page named A.html hosted in an iframe which is an element of B.html, so is there a way for Silverlight app to access elements in B.html by referring something like HtmlPage.Document..?
Thanks!
...
How to drag and drop the dynamically created controls
my code is shown below
Button btnTask = new Button();
btnTask.Content = _myCustomTasks[iCtr].Description;
btnTask.Background = _myCustomTasks[iCtr].TaskColor;
stackPanel.Children.Add(btnTask);
my requirement is to drag and drop these dynamically created button control.
Thanks...