Mono.Xaml.XamlTypeConverter.ConvertDependencyProperty C# (CSharp) Method

ConvertDependencyProperty() private static method

private static ConvertDependencyProperty ( XamlTypeConverter converter, ITypeDescriptorContext context, CultureInfo culture, object ovalue ) : DependencyProperty
converter XamlTypeConverter
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
ovalue object
return System.Windows.DependencyProperty
		private static DependencyProperty ConvertDependencyProperty (XamlTypeConverter converter, ITypeDescriptorContext context, CultureInfo culture, object ovalue)
		{
			string value = (string) ovalue;
			Type target_type = GetTargetType (converter);

			Types.Ensure (target_type);

			ManagedType mt = Deployment.Current.Types.Find (target_type);
			DependencyProperty dp = DependencyProperty.Lookup ((Kind) mt.native_handle, value);

			return dp;
		}