System.Windows.Application.get_default_style_cb C# (CSharp) Method

get_default_style_cb() private method

private get_default_style_cb ( IntPtr type_info_ptr ) : IntPtr
type_info_ptr IntPtr
return IntPtr
		IntPtr get_default_style_cb (IntPtr type_info_ptr)
		{
			ManagedTypeInfo type_info = (ManagedTypeInfo)Marshal.PtrToStructure (type_info_ptr, typeof (ManagedTypeInfo));
			Type type = null;

			type = Deployment.Current.Types.KindToType (type_info.Kind);

			if (type == null) {
				Console.Error.WriteLine ("failed to lookup native kind {0}", type_info.Kind);
				return IntPtr.Zero;
			}

			Style s = GetGenericXamlStyleFor (type);
			return s == null ? IntPtr.Zero : s.native;
		}