I'm developing a tool that would allow a user to click any location on the map, popup a new window, fill in some simple information, then save this information to the database. The end table where this information will be written is not a spatial table, it will just be a table of XY coordinates, user id and comments entered by the user.Easy enough, but then the next requirement is to display the data entry form in an InfoWindow so it appears as a callout next to the clicked location. I tried to do this with an InfoWindow DataTemplate, but it appears that InfoWindows (or DataTemplates) will only display correctly if they are bound to data? Specifically, the InfoWindow won't resize to fit all of my controls, just 2 TextBlocks, 2 TextBoxes and a button.I'd rather not use the editing framework since this is not a spatial table, just a simple non-spatial table.Any suggestions? <DataTemplate x:Key="CommentInfoWindowTemplate">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30" />
<RowDefinition Height="100" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="150" />
<ColumnDefinition Width="300" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Comment for user: " Foreground="Black" FontSize="12" />
<TextBox x:Name="UserID" Grid.Row="0" Grid.Column="1" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="More Text" Foreground="Black" FontSize="12" />
<TextBox x:Name="CommentText" Grid.Row="1" Grid.Column="1" />
<Button Grid.RowSpan="2" Grid.Row="2" Content="Save" />
</Grid>
</DataTemplate>
[ATTACH=CONFIG]11736[/ATTACH]