EzhNotes

August 31, 2008

pathgeometry vs mini language

Filed under: Uncategorized — alexezh @ 4:55 pm

http://www.farseergames.com/blog/post/Workaround-for-Accessing-PathGeometry-Data-in-Code.aspx

Advertisements

August 24, 2008

using selectSingleNode for XAML

Filed under: Uncategorized — alexezh @ 10:16 pm

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);

Blog at WordPress.com.