Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Markup in caption of property grid
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Markup in caption of property grid

 Post Reply Post Reply
Author
Message
Kjetil View Drop Down
Newbie
Newbie
Avatar

Joined: 13 February 2007
Location: Norway
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kjetil Quote  Post ReplyReply Direct Link To This Post Topic: Markup in caption of property grid
    Posted: 28 January 2009 at 9:56am
Hi,
I would like to add a check box in the caption part of the property grid control. I added it with the use of XAML:

CXTPMarkupContext* pMC = m_pGrid->GetPropertyGrid()->GetMarkupContext();

if (pMC)

{

   // using XAML do draw check box for item

   CString sXAML =

   "<StackPanel>"

      "<CheckBox Margin='2' Cursor='Hand' IsChecked='True' Padding='2'>" + m_strCaption + "</CheckBox>"

   "</StackPanel>";

   m_pMarkupCaption = pMC->Parse(sXAML);

}

The check box appears, but it is dead. No reaction when I click it.

Using Xtreme Tookit Pro v 13.2.1
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 January 2009 at 2:15am
Hello,
 
Yes, its true :( propertygrid doesn't support markup interaction. only visual appearance.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.