Click here to Skip to main content
15,305,508 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Image Menu Hover Pin
Sunasara Imdadhusen15-Feb-11 22:07
professionalSunasara Imdadhusen15-Feb-11 22:07 
AnswerRe: Image Menu Hover Pin
Dalek Dave28-Mar-11 6:11
professionalDalek Dave28-Mar-11 6:11 
Questionfile automatically deletes on server Pin
Danzy839-Feb-11 10:56
MemberDanzy839-Feb-11 10:56 
AnswerRe: file automatically deletes on server Pin
Peter_in_27809-Feb-11 11:58
professionalPeter_in_27809-Feb-11 11:58 
AnswerRe: file automatically deletes on server Pin
Pravin Patil, Mumbai4-Mar-11 1:13
MemberPravin Patil, Mumbai4-Mar-11 1:13 
Questionvalidating input type file in a form (no responses in JavaScript Forum) Pin
Douglas Kirk5-Feb-11 16:22
MemberDouglas Kirk5-Feb-11 16:22 
AnswerRe: validating input type file in a form (no responses in JavaScript Forum) Pin
Shahriar Iqbal Chowdhury/Galib11-Feb-11 10:17
professionalShahriar Iqbal Chowdhury/Galib11-Feb-11 10:17 
QuestionOddness that I never noticed before Pin
Ray Cassick4-Feb-11 16:59
MemberRay Cassick4-Feb-11 16:59 
Working around in some XAML lately and have come across some odd stuff in the way commented code seems to be handled, or rather actually, not handled.

Note: Apparently writing XAML code in the editor is a PITA to get it formatted looking well so you may have to look at my examples a bit...

Just being able to add some typical comments inside some basic XAML looks like so:

<!-- Name Portion [Application Name] -->
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
   <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
      <!-- Logo Picture -->
      <ContentControl Style="{StaticResource LogoIcon}"/>
      <!-- Logo Name -->
      <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
   </StackPanel>
</Border>


So now, I want to comment out my code as a whole and I try to just wrap my start and end tag inside of its own set of XML comment tags and I get:

<!-- Name Portion [Application Name] -->
<!-- 
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">;
   <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">;
      <!-- Logo Picture -->
      <ContentControl Style="{StaticResource LogoIcon}"/>
      <!-- Logo Name -->
      <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
   </StackPanel>
</Border>
-->


Error = Comments cannot contain two adjacent hyphens '--', Two adjacent hyphens '--' must be followed by a close angle bracket character '>' to terminate the comment.

This however is just fine apparently:

<!-- Name Portion [Application Name] -->
<!-- 
<Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">
       <ContentControl Style="{StaticResource LogoIcon}">
       <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"/>
    <StackPanel>
</Border>
-->


It just seems really odd that the editor seems to have such an issue with the commenting stuff when you are using multiple comment lines:

<!-- Name Portion [Application Name] -->
<!-- <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}"> -->
<!--    <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}"> -->
<!--       Logo Picture -->
<!--       <ContentControl Style="{StaticResource LogoIcon}"> -->
<!--       Logo Name -->
<!--       <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" Text="Application Title Name"> -->
<!--    </StackPanel> -->
<!-- </Border> -->


What a real pain...

AnswerRe: Oddness that I never noticed before Pin
_Maxxx_7-Feb-11 18:15
professional_Maxxx_7-Feb-11 18:15 
AnswerRe: Oddness that I never noticed before Pin
Dalek Dave9-Feb-11 11:10
professionalDalek Dave9-Feb-11 11:10 
QuestionModal Popup and flash object Pin
Ali Al Omairi(Abu AlHassan)3-Feb-11 3:56
professionalAli Al Omairi(Abu AlHassan)3-Feb-11 3:56 
AnswerRe: Modal Popup and flash object Pin
Sunasara Imdadhusen3-Feb-11 23:09
professionalSunasara Imdadhusen3-Feb-11 23:09 
GeneralRe: Modal Popup and flash object Pin
Ali Al Omairi(Abu AlHassan)4-Feb-11 5:33
professionalAli Al Omairi(Abu AlHassan)4-Feb-11 5:33 
GeneralRe: Modal Popup and flash object Pin
Sunasara Imdadhusen23-Jun-11 0:00
professionalSunasara Imdadhusen23-Jun-11 0:00 
GeneralRe: Modal Popup and flash object Pin
Ali Al Omairi(Abu AlHassan)23-Jun-11 2:39
professionalAli Al Omairi(Abu AlHassan)23-Jun-11 2:39 
GeneralLogin Form Pin
mkotaska3-Feb-11 1:51
Membermkotaska3-Feb-11 1:51 
GeneralRe: Login Form Pin
Ray Cassick5-Feb-11 8:45
MemberRay Cassick5-Feb-11 8:45 
GeneralRe: Login Form Pin
Member 31566709-Feb-11 22:42
MemberMember 31566709-Feb-11 22:42 
QuestionIndian ruppes symbol in Crystal report Pin
ppchandak3-Feb-11 1:11
Memberppchandak3-Feb-11 1:11 
AnswerRe: Indian rupees symbol in Crystal report Pin
thatraja17-Feb-11 15:38
professionalthatraja17-Feb-11 15:38 
QuestionPorting desktop tools to web Pin
Koder2-Feb-11 0:24
MemberKoder2-Feb-11 0:24 
AnswerRe: Porting desktop tools to web Pin
Not Active2-Feb-11 3:53
mentorNot Active2-Feb-11 3:53 
AnswerRe: Porting desktop tools to web Pin
cjoki3-Feb-11 5:05
Membercjoki3-Feb-11 5:05 
QuestionPopUp menu closes itself because of Map Area Pin
RachelSo1-Feb-11 10:24
MemberRachelSo1-Feb-11 10:24 
QuestionHow to hide the extension name of the cgi application? Pin
loveabow30-Jan-11 17:42
Memberloveabow30-Jan-11 17:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.