Sunday, August 31, 2008
pathgeometry vs mini language
http://www.farseergames.com/blog/post/Workaround-for-Accessing-PathGeometry-Data-in-Code.aspx
Sunday, August 24, 2008
using selectSingleNode for XAML
When using selectSingleNode to search XAML, it is required to set SelectionNamespace property with fake prefix. Here is an example
spDoc2->setProperty(CComBSTR(L"SelectionLanguage"), CComVariant(L"XPath"));
spDoc2->setProperty(CComBSTR(L"SelectionNamespaces"),
CComVariant("xmlns:d=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\""));
m_spDoc->selectSingleNode(CComBSTR(L"./d:Canvas"), &m_spRoot);
spDoc2->setProperty(CComBSTR(L"SelectionLanguage"), CComVariant(L"XPath"));
spDoc2->setProperty(CComBSTR(L"SelectionNamespaces"),
CComVariant("xmlns:d=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\""));
m_spDoc->selectSingleNode(CComBSTR(L"./d:Canvas"), &m_spRoot);
Subscribe to:
Posts (Atom)