mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Avalonia sample application
This commit is contained in:
parent
5a738f7a71
commit
8da77b7a15
2 changed files with 21 additions and 18 deletions
|
|
@ -5,6 +5,8 @@ using System.Globalization;
|
|||
using Microsoft.UI.Xaml.Data;
|
||||
#elif UWP
|
||||
using Windows.UI.Xaml.Data;
|
||||
#elif AVALONIA
|
||||
using Avalonia.Data.Converters;
|
||||
#endif
|
||||
|
||||
namespace SampleApplication
|
||||
|
|
@ -37,4 +39,17 @@ namespace SampleApplication
|
|||
return ConvertBack(value, targetType, parameter, "");
|
||||
}
|
||||
}
|
||||
|
||||
public class MapHeadingToVisibilityConverter : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
return (double)value != 0d;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotSupportedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue