feat: add map drawing

This commit is contained in:
k0t9i
2023-02-02 21:54:08 +04:00
parent c35f4e317a
commit d03f37fbf7
275 changed files with 469 additions and 10 deletions

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace Client.Application.Services
{
public class NullToVisibilityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var isCollapsedWhenNull = parameter == null ? false : true;
var nullVisibility = isCollapsedWhenNull ? Visibility.Collapsed : Visibility.Hidden;
return value == null ? nullVisibility : Visibility.Visible;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}