mirror of https://github.com/icsharpcode/ILSpy.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							31 lines
						
					
					
						
							916 B
						
					
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							916 B
						
					
					
				// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) | 
						|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) | 
						|
 | 
						|
using System; | 
						|
using System.Windows; | 
						|
using System.Windows.Markup; | 
						|
using System.Windows.Data; | 
						|
using System.Globalization; | 
						|
 | 
						|
namespace ICSharpCode.TreeView | 
						|
{ | 
						|
	public class CollapsedWhenFalse : MarkupExtension, IValueConverter | 
						|
	{ | 
						|
		public static CollapsedWhenFalse Instance = new CollapsedWhenFalse(); | 
						|
 | 
						|
		public override object ProvideValue(IServiceProvider serviceProvider) | 
						|
		{ | 
						|
			return Instance; | 
						|
		} | 
						|
 | 
						|
		public object Convert(object value, Type targetType, object parameter, CultureInfo culture) | 
						|
		{ | 
						|
			return (bool)value ? Visibility.Visible : Visibility.Collapsed; | 
						|
		} | 
						|
 | 
						|
		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) | 
						|
		{ | 
						|
			throw new NotImplementedException(); | 
						|
		} | 
						|
	} | 
						|
}
 | 
						|
 |