Print Page | Close Window

Markup in caption of property grid

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=13277
Printed Date: 23 November 2024 at 9:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Markup in caption of property grid
Posted By: Kjetil
Subject: Markup in caption of property grid
Date 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



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net