diff --git a/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/BoolToVisibilityConverter.cs b/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/BoolToVisibilityConverter.cs deleted file mode 100644 index 021bb1014..000000000 --- a/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/BoolToVisibilityConverter.cs +++ /dev/null @@ -1,45 +0,0 @@ -using System; -using System.Globalization; -using System.Linq; -using System.Windows; -using System.Windows.Data; -using System.Windows.Markup; -using Vortex.Presentation.Wpf.Converters; - -namespace TcoDrivesBeckhoff -{ - public class BoolToVisibilityConverter : MarkupExtension, IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - try - { - bool _value = (bool)value; - if (_value) - { - return Visibility.Visible; - } - else - { - return Visibility.Collapsed; - } - } - catch (Exception) - { - // Swallow - } - - return false; - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - return null; - } - - public override object ProvideValue(IServiceProvider serviceProvider) - { - return this; - } - } -} diff --git a/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/TcoDriveSimpleServiceView.xaml b/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/TcoDriveSimpleServiceView.xaml index 4ab37b67a..225284002 100644 --- a/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/TcoDriveSimpleServiceView.xaml +++ b/src/TcoDrivesBeckhoff/src/TcoDrivesBeckhoff.Wpf/TcoDriveSimple/TcoDriveSimpleServiceView.xaml @@ -6,10 +6,8 @@ xmlns:local="clr-namespace:TcoDrivesBeckhoff" xmlns:materialdesign="http://materialdesigninxaml.net/winfx/xaml/themes" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:tcoCore="http://vortex.mts/xaml" xmlns:tcodrivesbeckhoff="clr-namespace:TcoDrivesBeckhoff" xmlns:vortex="http://vortex.mts/xaml" - xmlns:inxton="http://vortex.mts/xaml" mc:Ignorable="d"> @@ -19,38 +17,38 @@ - +