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. General Programming
  3. WPF
  4. xaml - binding path - escape double quote

xaml - binding path - escape double quote

Scheduled Pinned Locked Moved WPF
wpfwcfcomhelptutorial
3 Posts 3 Posters 0 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.
  • D Offline
    D Offline
    devvvy
    wrote on last edited by
    #1

    hello, This is a question on how to escaoe "double quote" in a xaml - I tried different things suggested by here (but no luck)[^] See below - I tried to reference a Cells["IsConfigurable"] column value but <Style x:Key="cColumnStyle" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Background" Value="LightGoldenRodYellow "></Setter> <Style.Triggers> <DataTrigger Binding="{Binding Path=Cells[&quot;IsConfigurable&quot;].Value}" Value="False"> <Setter Property="IsEnabled" Value="False"/> </DataTrigger> </Style.Triggers> </Style> But keep getting error: Error 2 Names and Values in a MarkupExtension cannot contain quotes. The MarkupExtension arguments ' Path=Cells["IsConfigurable"].Value}' are not valid.

    dev

    A P 2 Replies Last reply
    0
    • D devvvy

      hello, This is a question on how to escaoe "double quote" in a xaml - I tried different things suggested by here (but no luck)[^] See below - I tried to reference a Cells["IsConfigurable"] column value but <Style x:Key="cColumnStyle" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Background" Value="LightGoldenRodYellow "></Setter> <Style.Triggers> <DataTrigger Binding="{Binding Path=Cells[&quot;IsConfigurable&quot;].Value}" Value="False"> <Setter Property="IsEnabled" Value="False"/> </DataTrigger> </Style.Triggers> </Style> But keep getting error: Error 2 Names and Values in a MarkupExtension cannot contain quotes. The MarkupExtension arguments ' Path=Cells["IsConfigurable"].Value}' are not valid.

      dev

      A Offline
      A Offline
      Abhinav S
      wrote on last edited by
      #2

      devvvy wrote:

      ="{Binding Path=Cells["IsConfigurable"].Value}"

      Try putting the above text in a single quote '. Leave your double quotes - I've never tried that but its worth a shot.

      The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

      1 Reply Last reply
      0
      • D devvvy

        hello, This is a question on how to escaoe "double quote" in a xaml - I tried different things suggested by here (but no luck)[^] See below - I tried to reference a Cells["IsConfigurable"] column value but <Style x:Key="cColumnStyle" TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="Background" Value="LightGoldenRodYellow "></Setter> <Style.Triggers> <DataTrigger Binding="{Binding Path=Cells[&quot;IsConfigurable&quot;].Value}" Value="False"> <Setter Property="IsEnabled" Value="False"/> </DataTrigger> </Style.Triggers> </Style> But keep getting error: Error 2 Names and Values in a MarkupExtension cannot contain quotes. The MarkupExtension arguments ' Path=Cells["IsConfigurable"].Value}' are not valid.

        dev

        P Offline
        P Offline
        PumbaPumba
        wrote on last edited by
        #3

        This is in real mess. Why don't you use a Converter and do these operations there.

        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