■ XAML 객체 구하기 (XmlTextReader 사용)

----------------------------------------------------------------------------------------------------

using System.Windows.Markup;

using System.Xml;

 

#region XAML 객체 구하기 - GetXAMLObject<T>(xmlTextReader)

 

/// <summary>

/// XAML 객체 구하기

/// </summary>

/// <typeparam name="T">XAML 객체 타입</typeparam>

/// <param name="xmlTextReader">XML 텍스트 리더</param>

/// <returns>XAML 객체</returns>

public T GetXAMLObject<T>(XmlTextReader xmlTextReader)

{

    return (T)(XamlReader.Load(xmlTextReader));

}

 

#endregion

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG