Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EnumToVisibility.cs
1using System;
2using System.Globalization;
3using Microsoft.Maui.Controls;
4
5
7{
8 public class EnumToVisibility : IValueConverter
9 {
10 public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
11 {
12 if (value == null || parameter == null)
13 return false;
14
15 return value.Equals(parameter);
16 }
17
18 public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
19 {
20 return Binding.DoNothing;
21 }
22 }
23}