开发者

How is IXRTextBlockPtr used?

How is IXRTextBlockPtr used?

I have a XAML file that is made by Expression Blend. But the Silverlight project that corresponds to it has to be in C++ instead of C# (it has something to do with being part of an embedded system).

The automatically gernerated C++ code referrs to the TextBlock code in the header 开发者_如何学JAVAfile like this:

IXRTextBlockPtr            m_pFoo;            // <TextBlock x:Name="Foo">

So how do I assign a value to the text block such that it appears in the window defined in the XAML?

There does not seem to be much information to be googled about IXRTextBlockPtr.


The formal MSDN documentation for IXRTextBlock tells you exactly what to do: look at the XRPtr<> smart-pointer for IXRTextBlockPtr's interface.

If we then look at the XRPtr<> class template, we see it has operator= and Attach(). Presumably operator= will suit your needs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜