• Advertisement
Sign in to follow this  

How is IXRTextBlockPtr used?

This topic is 2509 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 file 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?

Share this post


Link to post
Share on other sites
Advertisement

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 file 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?




I believe the answer can be found here. In order to find such an answer you need to determine what property of the TextBlock you are changing. I believe that from "assign a value to the text block such that it appears in the window defined in the XAML" you are talking about the text property.

IXRTextBlockPtr is a smart pointer, so then you should be able to do something like this: m_pFoo->SetText(L"Test");

I am assuming here that m_pFoo is correctly assigned.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement