Just curious if the XAML editor is any better at auto-formatting and wrapping attributes in Visual Studio 2010.
Here’s how the editor auto wraps attributes in VS 2008:
<StackPanel Grid.Row="0" Grid.ColumnSpan="3">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" FontWeight="Bold"
Text="Current User:" />
<ComboBox x:Name="_usersComboBox" Margin="5,0,0,0" Width="200"
ItemsSource="{Binding Users}" SelectedValuePath="Name"
SelectedValue="System Administration">
<ComboBox.ItemTemplate>
<DataTemplate>
Here’s how I’d like the editor to auto wrap attributes:
<StackPanel Grid.Row="0" Grid.ColumnSpan="3">
<StackPanel Orientation="Horizontal">
<TextBlock VerticalAlignment="Center" FontWeight="Bold"
Text="Current User:" />
<ComboBox x:Name="_usersComboBox" Margin="5,0,0,0" Width="200"
ItemsSource="{Binding Users}" SelectedValuePath="Name"
SelectedValue="System Administration">
<ComboBox.ItemTemplate>
<DataTemplate>
Does VS 2010 grant my wish?
Nope. You should open up a Connect for that:
https://connect.microsoft.com/VisualStudio/feedback/CreateFeedbackForm.aspx?FeedbackFormConfigurationID=3783&FeedbackType=2
May not make it until SP1, but I’ve found them pretty responsive to suggestions during the B2 cycle. You might be surprised….