File scoped namespaces

This commit is contained in:
ClemensFischer 2026-04-13 17:14:49 +02:00
parent c14377f976
commit 65aba44af6
152 changed files with 11962 additions and 12115 deletions

View file

@ -13,33 +13,32 @@ using Microsoft.UI.Xaml.Data;
using Avalonia.Data.Converters;
#endif
namespace SampleApplication
namespace SampleApplication;
public class MapHeadingToVisibilityConverter : IValueConverter
{
public class MapHeadingToVisibilityConverter : IValueConverter
public object Convert(object value, Type targetType, object parameter, string language)
{
public object Convert(object value, Type targetType, object parameter, string language)
{
var visible = (double)value != 0d;
var visible = (double)value != 0d;
#if AVALONIA
return visible;
return visible;
#else
return visible ? Visibility.Visible : Visibility.Collapsed;
return visible ? Visibility.Visible : Visibility.Collapsed;
#endif
}
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return Convert(value, targetType, parameter, culture.ToString());
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return Convert(value, targetType, parameter, culture.ToString());
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}