-
-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nodify] PendingConnection.PreviewTarget fixes
[Playground] Hide pending connection preview container when PreviewText is null #76 Add tooltip back to playground settings
- Loading branch information
Showing
6 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
Examples/Nodify.Shared/Converters/StringToVisibilityConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Globalization; | ||
using System.Windows; | ||
using System.Windows.Data; | ||
using System.Windows.Markup; | ||
|
||
namespace Nodify | ||
{ | ||
public class StringToVisibilityConverter : MarkupExtension, IValueConverter | ||
{ | ||
public Visibility NullVisibility { get; set; } = Visibility.Collapsed; | ||
|
||
public object? Convert(object value, Type targetType, object parameter, CultureInfo culture) | ||
=> string.IsNullOrEmpty(value as string) ? NullVisibility : Visibility.Visible; | ||
|
||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | ||
=> throw new NotImplementedException(); | ||
|
||
public override object ProvideValue(IServiceProvider serviceProvider) => this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters