Hi,
I've discovered the new data annotation features of SL3 and I'm using them for user input validation.
I've got inputs like these:
<dataInput:Label Target="{Binding ElementName=inputName}"/>
<TextBox
x:Name="inputName"
Text="{Binding RequestDemoData.Name, Mode=TwoWay, Valid...
Stupid question I know but how do i create one? All i need it to do is open up a dialog box and populate the text box next to it
...
I have a Silverlight Autocompletebox to show a list of staff members, and it is working great. I get the data by loading a BusinessObjects list.
My problem is that the very first time you start typing something in the box, it takes close to 2 seconds to come back with suggestions. Afterwards, any subsequent searches seem almost instan...
I've created a control in blend (xaml and code behind), saved it, and rebuilt the entire project. Now, not only does this new control not appear in the Assets tab in blend, none of the other user controls i've created appear either. I've rebuilt several times, blown away the obj and bin directories and rebuilt again, to no avail. How ...
Does anyone know if silverlight can be packaged into an installer such as NSIS?
...
Why do animation classes (like DoubleAnimation) require dependency properties? Dependency properties have a lot of overhead when compared to a simple property. Wouldn't passing in an object and property name and using to reflection to retrieve a setter delegate have made the animation classes more flexible and generally more usable? I...
I have the following XAML for Silverlight 3:
<ItemsControl MaxHeight="400"
VirtualizingStackPanel.VirtualizationMode="Recycling" >
<ItemsControl.Template>
<ScrollViewer>
<ItemsPresenter />
</ScrollViwer>
</ItemsControl.Template>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<Vi...
I have started a a new project (to refactor some code), and just can't work out why I keep getting "Can't find page /Index" error. The code works fine until I use an add method (on any collection type). So I don't think there is a problem with the navigation, but an issue with my IndexViewModel class.
public partial class Index : Pag...
This is a follow up question from an earlier post (here).
I have some 'header' information stored as:
Dictionary<string,string> - where the first string represents the field name, and the second the heading I want displayed.
I have a set of dynamic data that is stored as:
Dictionary<string, object> - where string is the field name.
I ...
Looking for Silverlight or WPF Open Source Project for learn.
Particular I am interested in Silverlight\WPF Custom Controls\Styles Development and want to find good patterns\solution for current project.
...
Hello Currently I am working on a project in which I have to create family tree.
It will have almostn number of hierarchy. Whole tree should be displayed to user as well as zoom in zoom out facility should also be there . Scrolling is required.At a time user can see some specified portion of tree.When user scrolls horizontally or vertica...
i know it must something simple that i missed. I use data services to get data into my silverlight application. When i bind the data to my datagrid it works like a charm
LessonGrid.ItemsSource = context.Lessons
however as soon as i try to wrap my objects into more complex data structure it stops working
LessonGrid.ItemsSource = conte...
What I would like to do is the following:
Change the points of the four corners of an image.
What is possible now, is to change the top left corner. But that will only move the image.
I want to transform the image by changing the corner coordinates.
The effect will be a 3d-kind transformation.
A skew transformation will not do, I want ...
Hi,
I have a TextBlock that's on top of a Button in a Grid. I'd like to have then displayed thus:
"some very long text" <-- text
"that doesn't fit" <-- text wrapped
[my button text size] <-- button
However, what I've got is this:
"some very long text that doesn't fit" <-- text
[my button text...
I need to get physical path in silverlight. I'm using WCF service, I created one folder called 'Myfolder'. So I need to get the path of myfolder Please help me.
...
I've start using prism with silverlight 3, but, we are trying to implement it to work with ADO.NET DataServices. The "DataServiceQuery" query type required to use with Silverlight, requires a Asyncronous call to be fired after the query. This will break ous Prism Pattern by what I can see.
Any ideas to get only the data of the query to u...
Given the list of new features announced in Silverlight 4, when is WPF still required?
...
I'm working on an application we made WPF instead of Silverlight as we wanted a full blown desktop application with the whole unique feeling and advantages that gives. However, with the announcement of Silverlight 4 I hear there is a buzz about Silverlight mostly being the preferred choice also for desktop applications.
So; why should ...
I've got this Silverlight Prism application that is using MVVM. The model calls a WCF service and a list of data is returned.
The ViewModel is bound to the View, so the ViewModel should have a List property.
Were should I keep data returned by a WCF service in MVVM?
Should the List property be calling into the Model using its gette...
Are there any special considerations we will need to take into account for Mac scenarios? Furthermore, with features such as COM interop which aren't applicable on a Mac, how do you give visibility of these capabilities to your code?
if (Silverlight.Environment.SupportsCOMInterop) {
// do stuff
}
More generally, could your code de...