|
|
|
@ -11,7 +11,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
{ |
|
|
|
{ |
|
|
|
public class IntFromEnumConverter : IValueConverter |
|
|
|
public class IntFromEnumConverter : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static IntFromEnumConverter Instance = new IntFromEnumConverter(); |
|
|
|
public static readonly IntFromEnumConverter Instance = new IntFromEnumConverter(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -26,7 +26,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class HiddenWhenFalse : IValueConverter |
|
|
|
public class HiddenWhenFalse : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static HiddenWhenFalse Instance = new HiddenWhenFalse(); |
|
|
|
public static readonly HiddenWhenFalse Instance = new HiddenWhenFalse(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -41,7 +41,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class CollapsedWhenFalse : IValueConverter |
|
|
|
public class CollapsedWhenFalse : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static CollapsedWhenFalse Instance = new CollapsedWhenFalse(); |
|
|
|
public static readonly CollapsedWhenFalse Instance = new CollapsedWhenFalse(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -56,7 +56,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class LevelConverter : IValueConverter |
|
|
|
public class LevelConverter : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static LevelConverter Instance = new LevelConverter(); |
|
|
|
public static readonly LevelConverter Instance = new LevelConverter(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -71,7 +71,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class CollapsedWhenZero : IValueConverter |
|
|
|
public class CollapsedWhenZero : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static CollapsedWhenZero Instance = new CollapsedWhenZero(); |
|
|
|
public static readonly CollapsedWhenZero Instance = new CollapsedWhenZero(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -89,7 +89,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class FalseWhenNull : IValueConverter |
|
|
|
public class FalseWhenNull : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static FalseWhenNull Instance = new FalseWhenNull(); |
|
|
|
public static readonly FalseWhenNull Instance = new FalseWhenNull(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -104,7 +104,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
|
|
|
|
|
|
|
|
public class BoldWhenTrue : IValueConverter |
|
|
|
public class BoldWhenTrue : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static BoldWhenTrue Instance = new BoldWhenTrue(); |
|
|
|
public static readonly BoldWhenTrue Instance = new BoldWhenTrue(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -120,7 +120,7 @@ namespace ICSharpCode.WpfDesign.Designer.Converters |
|
|
|
// Boxed int throw exception without converter (wpf bug?)
|
|
|
|
// Boxed int throw exception without converter (wpf bug?)
|
|
|
|
public class DummyConverter : IValueConverter |
|
|
|
public class DummyConverter : IValueConverter |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static DummyConverter Instance = new DummyConverter(); |
|
|
|
public static readonly DummyConverter Instance = new DummyConverter(); |
|
|
|
|
|
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|