New Posts New Posts RSS Feed: how to bind one TextBox
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

how to bind one TextBox

 Post Reply Post Reply
Author
GregD View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 374
Post Options Post Options   Quote GregD Quote  Post ReplyReply Direct Link To This Post Topic: how to bind one TextBox
    Posted: 27-Jul-2010 at 11:05am
Have a look at one of the Mini-Demo apps, e.g., either the WPF or Silverlight version in the Business Object Persistence Code Samples.

They have an extremely simple UI consisting basically of a TextBlock whose Text property is bound to a property in a viewmodel class.

Edited by GregD - 27-Jul-2010 at 11:07am
Back to Top
Oscar_Agreda View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Jul-2010
Location: El Salvador
Posts: 7
Post Options Post Options   Quote Oscar_Agreda Quote  Post ReplyReply Direct Link To This Post Posted: 27-Jul-2010 at 3:43am
I also followed the SL4 Quickie with no Luck to bind just one TextBox for testing purposes

Because Ward creates a DataSource and then dragged and drop on the form, so I did the same for the TextBox, Drag and Drop,, but it did not work

http://www.ideablade.com/Videos/SilverlightQuickie/index.html

Regards

Back to Top
Oscar_Agreda View Drop Down
Newbie
Newbie
Avatar

Joined: 26-Jul-2010
Location: El Salvador
Posts: 7
Post Options Post Options   Quote Oscar_Agreda Quote  Post ReplyReply Direct Link To This Post Posted: 27-Jul-2010 at 3:28am
Hello
I have been looking how to bind one text box on IdeaBlade

I know the DataForm and DataGrid use ItemsSource="{Binding Employees}" Property

but  my TextBox

<TextBox Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" Margin="1" Name="Employee_WorkPhoneTextBox" Text="{Binding Employee_WorkPhone}" VerticalAlignment="Center" Width="230" HorizontalContentAlignment="Left" IsTabStop="True" MaxLength="20"/>

Also tried my Prior Ria Binding , but it does not work either on IdeaBlade

<TextBox Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" Margin="1" Name="Patient_WorkPhoneTextBox" Text="{Binding Path=Emplyee_WorkPhone, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="230" HorizontalContentAlignment="Left" IsTabStop="True" MaxLength="20"/>

the DetailsGrid where this TextBox is located, is bound to
<Grid DataContext="{Binding Employees}"

I followed
http://www.ideablade.com/DevForceSilverlight/DevForceSilverlight_DevelopersTour.aspx

on the same form I have a DataGrid for testing purposes and I can see the data on the grid , but not in my TextBox

what I am doing wrong ?

IdeaBlade is pretty fast compared to Ria Services

Regards

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down