Code Formatting for 'XAML' code
-
Hi See This Link[^], In this post am tried to edit for formatting of Xaml code (WPF) with different options(like aspnet, xml and default tag). I failed to set formating. Here i getting (forum message). see below code.
<ItemsControl ItemsSource="{Binding Path=MainCol}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Id}" ></TextBlock>
<TextBlock Text="{Binding Path=Name}" ></TextBlock>
<!-- How to show Description and Amount here by looking up the Id value -->
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>Why formatting is not applied in Q & A Section.? is this bug or else(my mistake)?
Regards, Eswar
-
Hi See This Link[^], In this post am tried to edit for formatting of Xaml code (WPF) with different options(like aspnet, xml and default tag). I failed to set formating. Here i getting (forum message). see below code.
<ItemsControl ItemsSource="{Binding Path=MainCol}" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Id}" ></TextBlock>
<TextBlock Text="{Binding Path=Name}" ></TextBlock>
<!-- How to show Description and Amount here by looking up the Id value -->
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>Why formatting is not applied in Q & A Section.? is this bug or else(my mistake)?
Regards, Eswar
First, you have to uncheck the Ignore HTML checkbox. Then, you have to escape the pointy brackets manually. I've already done all that for you.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997