I want to add a point,and give the point attribute infomation.
Now I can add the point,and pop up a Board wich can list all its fields.But I cann't save this Textbox's infomation to the point's attribute.
The following code is part of the Board's code. So how can I do? Please help me!
Code:<ListBox ItemsSource="{Binding ElementName=MyMap, Path=Layers[ThreatPoints].LayerInfo.Fields}" VerticalAlignment="Top" HorizontalAlignment="Center"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <TextBlock Text="{Binding Name}" Grid.Column="0" FontSize="20" Width="100"/> <TextBox Text="{Binding Value, Mode=TwoWay}" Grid.Column="1" FontSize="20" Width="150"/> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox>

Reply With Quote


Bookmarks