Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

How do you make an inline string for quickconverter?

$
0
0
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?

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>