-
Nov 25th, 2016, 06:08 PM
#1
Thread Starter
Junior Member
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?
-
Nov 26th, 2016, 03:15 AM
#2
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.
-
Nov 26th, 2016, 12:13 PM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|