Skip to main content
Home Forums General Silverlight New Features in Silverlight 3 DataForm
7 replies. Latest Post by cnu.jettiboyina on August 28, 2009.
(0)
xifan
Member
24 points
27 Posts
06-24-2009 5:16 PM |
I copied the source code of DataForm ToolKit control Samples from http://silverlight.net/samples/sl3/toolkitcontrolsamples/run/default.html
to a new project but it doesn't work.
Thanks for your help!!
dpatra
22 points
20 Posts
06-29-2009 3:25 AM |
Hi,
Could you please give some more details on your problem. I am giving sample XAML code for the DataForm
<df:DataForm x:Name="myForm" Header="*ProjectId Can Be Changed" CommandButtonsVisibility="None" AutoGenerateFields="False" AutoEdit="True" Opacity="0.54"> <df:DataForm.Fields> <df:DataFormDateField x:Name="txtStartDate" IsReadOnly="True" Binding="{Binding StartDate}" FieldLabelContent="StartDate"/> <df:DataFormDateField x:Name="txtEndDate" IsReadOnly="True" Binding="{Binding EndDate}" FieldLabelContent="EndDate"/> <df:DataFormTextField x:Name="txtDuration" IsReadOnly="True" Binding="{Binding Duration}" FieldLabelContent="Duration"/> <df:DataFormTextField x:Name="txtSubject" IsReadOnly="True" Binding="{Binding Subject}" FieldLabelContent="Subject"/> <df:DataFormTextField x:Name="txtProjectId" IsReadOnly="False" Binding="{Binding ProjectId}" FieldLabelContent="ProjectId" /> <df:DataFormTemplateField.DisplayTemplate> <DataTemplate > <TextBox IsReadOnly="True" Text="{Binding ProjectId}"/> </DataTemplate> </df:DataFormTemplateField.DisplayTemplate> <df:DataFormTemplateField.EditTemplate> <DataTemplate x:Name="projectIdTemplate"> <ComboBox> <ComboBox.Items>Aviva-000103</ComboBox.Items> </ComboBox> </DataTemplate> </df:DataFormTemplateField.EditTemplate> </df:DataFormTemplateField>--> <df:DataFormTextField x:Name="txtLocation" IsReadOnly="True" Binding="{Binding Location}" FieldLabelContent="Location"/> <df:DataFormTextField x:Name="txtOrganizer" IsReadOnly="True" Binding="{Binding Organizer}" FieldLabelContent="Organizer"/> </df:DataForm.Fields> </df:DataForm>
Let me know.
06-29-2009 10:24 PM |
Hi Diptimaya,
I want to know how to use "wrapafter", if it is possible to custmize display form?
Thnaks in advance.
Xi
06-29-2009 10:28 PM |
06-30-2009 12:01 AM |
As you can see from my example above (first reply), I have made the Customized Dataform.
The dataform contains limited number of fields as per your requirement you can change the Data Fields.
Try it.
<
Amanda W...
All-Star
17241 points
1,466 Posts
06-30-2009 5:48 AM |
You can use the DataForm's wrapafter property to change the controls layout of dataform.
Normally, if we don't set the wrapafter's value, it display it like below.
If we set the wrapafter 's value is 4, the control's layout will be like this:
06-30-2009 10:08 AM |
Thanks,
cnu.jett...
2 points
1 Posts
08-28-2009 1:06 PM |
Hi ,
In my sample i simply wrote a class with three properties and bind it to the dataform with 'StaticResource' property..iam able to see the data
in the dataform ..surpirsingly it is not showing the edit (pencil) mode at the top right corner . Please help me on this.
Also FYI when i added the dataform resource it showing the
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm"
is this a installation bug ?
Thanks in advance..
srinivas