I'm trying to make a data form in Silverlight 4. Perhaps I'm doing something wrong.
The class:
public class ExpenseInfoTest
{
public int MyProperty { get; set; }
public int Foo { get; set; }
public int Bar { get; set; }
}
XAML:
<local:ExpenseInfoTest x:Key="newExpense"/>
<df:DataForm Height="218"
HorizontalAlignment="Left"
Margin="13,368,0,0"
Name="expenseDataForm"
VerticalAlignment="Top"
Width="590"
CurrentItem="{StaticResource newExpense}" />
What is displayed:
I'd like the "Save" button. How can I get it to appear? Is something wrong in my XAML or data class?