Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Site Bugs / Suggestions
  4. Code Formatting for 'XAML' code

Code Formatting for 'XAML' code

Scheduled Pinned Locked Moved Site Bugs / Suggestions
wpfcsharpasp-netwcfcom
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TweakBird
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • T TweakBird

      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

      R Offline
      R Offline
      realJSOP
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups