Results 1 to 3 of 3

Thread: How do you make an inline string for quickconverter?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2016
    Posts
    17

    Question How do you make an inline string for quickconverter?

    Hi,

    I'm trying to use a WPF nuget addon called QuickConverter do do some inline logic in an xaml file.

    Now what i want to do is show one string when a tooltip is disabled, and another when the tooltip is enabled. I was trying to adapt an example like this:

    Code:
    'Example:
    Visibility="{qc:Binding '$P ? Visibility.Visible : Visibility.Collapsed', P={Binding ShowElement}}"
    
    'Mine:
    ToolTip="{qc:Binding '$P ? \'Enabled\' : \'Disabled\' ', P={Binding ElementName=btnClearSelected, Path=IsEnabled}}"
    However i get an error saying "Markup extension is not properly closed." So what am I missing here?

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: How do you make an inline string for quickconverter?

    Have you checked on the issues section? There might be a solution/workaround for that.
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2016
    Posts
    17

    Re: How do you make an inline string for quickconverter?

    Thanks for pointing this out. There is in fact an issue like this. No workaround though. I Guess I'm stuck using regular styles and a bunch of extra XAML.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width