What's a good way to get at the controls in a DataTemplate? I've used the technique of handing the Loaded event on the control of interest as well as using VisualTreeHelper to walk the visual tree and neither of those is very elegant. What's a good way to access DataTemplate controls?
In one example, I need to add a binding whos Conve...
I haven't noticed any outcries of pain from the community, but then I haven't really seen much of anything as a result of the Silverlight 3 RTM. So...
What are your impressions?
For those that have migrated from Silverlight 2, was it a smooth process?
Have any issues been introduced into migrated applications that seem to be caused b...
I don't know what this is called in SL, but I would like to replicate this functionality. If you go to this site: http://www.mscui.com/PatientJourneyDemonstrator/PrimaryCareAdmin.htm and click on the "Show Details" button located on the top, right-hand corder of the screen. When you click on this, there should be a "Scene Details" butt...
I'm using Silverlight 3 in Visual Studio 2008.
Unfortunately I can't seem to get the <asp:Silverlight> element to work, it's not on the intellisense and it underlines it saying its not a known element.
I'm beginning to think something wasn't installed properly.
Although I've reinstalled the Microsoft® Silverlight™ 3 Tools for Visual Stu...
I have two projects in my solution one a silverlight library and the other a wpf control library, ive added the sources as a link from my silverlight library to my wpf library and after a bit of refatoring hit a road block, my wpf library project does not want to build the generated files needed for the code behind to recocnize the named...
I have multiple Users, each with a collection of Tasks.
public class User {
public string Name { get; set; }
public IEnumerable<Task> Tasks { get; set; }
}
public class Task {
public string Name { get; set; }
}
What I would like to do in Silverlight is have each User represented as a column, with Tasks represented as item...
I'm looking for code coverage solution which works with silverligt. It must also work with msbuild because we run all the other unit tests automatically in the build server.
Integration with Visual Studio and/or resharper is a plus and I have nothing against easy setup or a pointer to a tutorial. I don't usually modify the build files a...
For this question, let us assume that we will want to show the face of the employee, title, department, and whether they like Piña coladas/getting caught in the rain.
Perhaps it might look something like the following:
http://www.edrawsoft.com/images/examples/Photo-Org-Chart-Full.png
Would you use a...
System.Windows.Control.UserCont...
I have a DependencyProperty in my custom UserControl that looks like this:
public static readonly DependencyProperty ColumnWidthProperty =
DependencyProperty.Register("ColumnWidth", typeof(int), typeof(CallBoard),
new PropertyMetadata(150));
public int ColumnWidth {
get { return (int)GetValue(ColumnWidthProperty); }
s...
Hello everyone,
I am using Silverlight 3 + VSTS 2008. I have a image (Multiscale image control) and I place tooltip on this image. The function of Tooltip works fine. Since the image is big (about 500 * 500 size), and since end user could move mouse on the picture, and I want to display tooltip position along with the mouse (i.e. when m...
Hello everyone,
I am using VSTS 2008 + Silverlight 3 with Silverlight Popup control. I am confused about the VerticalOffset property.
From MSDN, it is mentioned,
"Gets or sets the vertical distance between the target origin and the popup alignment point. This is a dependency property."
http://msdn.microsoft.com/en-us/library/system.w...
Can someone explain the different between Pixel Bender in Flash and Pixel Shader(HLSL) in Silverlight in terms of programming flexibility and run-time performance?
...
Hello!
I have followed this tutorial which allowed me to create a Silverlight Datagrid that pulled back data from an SQL Server Database. My next step is to be able to perform CRUD on this set of data (hopefully via the datagrid by simply editing the fields for update etc. and having this post back). I have been informed that the datagr...
I have a WCF service method in a Silverlight application that inserts some data into a SQL Server database deployed on a shared GoDaddy server. Some of the methods work, and some do not, but all of them work when the application is run locally (with a local database). I get the generic "The remote server returned an error: NotFound", a...
I have a UserControl with a dependency property called ItemsSource. When the property is changed, I need to calculate the size of various elements. To do this, I have to access the UserControl's ActualWidth and ActualHeight properties.
The problem is, if an object is assigned to ItemsSource before a layout update has occurred, ActualWid...
Hello,
I'm playing around with the VisualStateManager and I have a couple of questions.
Is it possible to determine the visual state that a Control is in through the VisualStateManager? If so, how?
Is there a way to programmatically access a "part" of a control? If so, how?
Thank you
...
Hello,
I'm struggling with Silverlights' activity control. I placed a grid inside the activity control and no matter whether it shows "Loading..." or not, the grid doesn't stretch anymore, only the min-values are applied.
After removing the activity-control everything works fine, againg - but I need to use the ctrl.
Did I do something wr...
I've got a silverlight app. The app draws an image, then on top of the image is a mostly transparent ellipse. The ellipse is there for display purposes only.
I had thought I read somewhere that mouseLeftButtonDown events would fire on all objects that are wired up to it, regardless of z-order and if something else was sitting on top of...
I'm porting an app (which someone else wrote) from WPF to Silverlight. I have a class which inherits from ItemsControl. In part of the code I access the ItemsControl.Items property (of type ItemCollection). However, some of the methods/properties which exist in WPF are missing in Silverlight:
MoveCurrentToFirst()
CurrentItem
CurrentPos...
Hello,
I can't set the header on a silverlight 3.
I used this code, but every item has the same header "My accordion"
<layoutToolkit:Accordion.ItemTemplate>
<DataTemplate>
<TextBlock Text="My Accordion" />
I need each header to have a different heading.
I can't use accordion item's header property since I have datagrids...