<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Markup Dynamic</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : XAML Snippets : Markup Dynamic]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 03:53:19 +0000</pubDate>
  <lastBuildDate>Mon, 26 Jan 2009 15:57:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13245</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Markup Dynamic : well let say in my template i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44906&amp;title=markup-dynamic#44906</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1220">Jose5</a><br /><strong>Subject:</strong> 13245<br /><strong>Posted:</strong> 26 January 2009 at 3:57pm<br /><br />well <br><br>let say in my template i have<br>something like &lt;Dynamic id=1&gt;&lt;/Dynamic&gt; witch is already declare name space<br><br>i want to display many item from within the CMyDynamicMarkup::SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPMarkupObject* parentContent = CXTPMarkupStackPanel (?);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add 10 row <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the question how to get the parent CXTPMarkupStackPanel class<br><br>}<br><br>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 15:57:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44906&amp;title=markup-dynamic#44906</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Dynamic : Hi,  Sorry, I don&amp;#039;t get...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44900&amp;title=markup-dynamic#44900</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13245<br /><strong>Posted:</strong> 26 January 2009 at 3:06pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Sorry, I don't get question.</DIV>]]>
   </description>
   <pubDate>Mon, 26 Jan 2009 15:06:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44900&amp;title=markup-dynamic#44900</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Dynamic : what if you want to replace with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44853&amp;title=markup-dynamic#44853</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1220">Jose5</a><br /><strong>Subject:</strong> 13245<br /><strong>Posted:</strong> 23 January 2009 at 3:41pm<br /><br />what if you want to replace with a row of may be elements<br>like so <br>void CMyDynamicMarkup::SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent)<br>{<br>&nbsp;&nbsp;&nbsp; if (IsStringObject(pContent))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Here we can use content as parameter;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for(int x=0;x&lt;10;x++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPMarkupTextBlock* pTextBlock1 = MARKUP_CREATE(CXTPMarkupTextBlock,pBuilder-&gt;GetMarkupContext());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetTextWrapping(1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetText(L"1You can increment or decrement the value of this" <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; L"textbox by simply clicking the mouse, hold and drag"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; L"up or down, right or left. Release when happy,with the value.");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetMargin(5, 0, 5, 0);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetBackground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0, 0)));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetForeground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0xFF, 0xFF)));<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(pTextBlock1)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetChildren()-&gt;Add(pTextBlock1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; }<br>}<br>]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 15:41:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44853&amp;title=markup-dynamic#44853</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Dynamic : Hi,  You almost find solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44852&amp;title=markup-dynamic#44852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13245<br /><strong>Posted:</strong> 23 January 2009 at 2:47pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You almost find solution :)</DIV><DIV>&nbsp;</DIV><DIV>Here how it should work.</DIV><DIV>&nbsp;</DIV><DIV>1. We add new class and register its Tag:</DIV><DIV>&nbsp;</DIV><DIV>class <strong>CMyDynamicMarkup</strong> : public CXTPMarkupGrid<BR>{<BR>&nbsp;DECLARE_MARKUPCLASS(CMyDynamicMarkup)</DIV><DIV>&nbsp;void SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent);<BR>};</DIV><DIV>IMPLEMENT_MARKUPCLASS(L"<strong>Dynamic</strong>", CMyDynamicMarkup, CXTPMarkupGrid);</DIV><DIV>void CMyDynamicMarkup::RegisterMarkupClass()<BR>{<BR>}</DIV><DIV>&nbsp;</DIV><DIV>2 Add your dynamic code in SetContentObject</DIV><DIV>&nbsp;</DIV><DIV>void CMyDynamicMarkup::SetContentObject(CXTPMarkupBuilder* pBuilder, CXTPMarkupObject* pContent)<BR>{<BR>&nbsp;if (IsStringObject(pContent))<BR>&nbsp;{<BR>&nbsp;&nbsp;// Here we can use content as parameter;</DIV><DIV>&nbsp;&nbsp;<BR>&nbsp;&nbsp;CXTPMarkupTextBlock* pTextBlock1 = MARKUP_CREATE(CXTPMarkupTextBlock,pBuilder-&gt;GetMarkupContext());<BR>&nbsp;&nbsp;pTextBlock1-&gt;SetTextWrapping(1);<BR>&nbsp;&nbsp;pTextBlock1-&gt;SetText(L"You can increment or decrement the value of this"&nbsp; <BR>&nbsp;&nbsp;&nbsp;L"textbox by simply clicking the mouse, hold and drag"<BR>&nbsp;&nbsp;&nbsp;L"up or down, right or left. Release when happy,with the value.");<BR>&nbsp;&nbsp;pTextBlock1-&gt;SetMargin(5, 0, 5, 0);<BR>&nbsp;&nbsp;pTextBlock1-&gt;SetBackground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0, 0)));<BR>&nbsp;&nbsp;pTextBlock1-&gt;SetForeground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0xFF, 0xFF)));<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;GetChildren()-&gt;Add(pTextBlock1);</DIV><DIV>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>3. And&nbsp;Markup is</DIV><DIV>&nbsp;</DIV><DIV>&lt;Page&gt;<BR>&lt;Dynamic&gt;parameter&lt;/Dynamic&gt;<BR>&lt;/Page&gt;</DIV>]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 14:47:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44852&amp;title=markup-dynamic#44852</guid>
  </item> 
  <item>
   <title><![CDATA[Markup Dynamic :  Question to CodeJock Techswhat...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44850&amp;title=markup-dynamic#44850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1220">Jose5</a><br /><strong>Subject:</strong> 13245<br /><strong>Posted:</strong> 23 January 2009 at 1:39pm<br /><br />Question to CodeJock Techs<br><br>what i Call Dynamic is a way to create a template example<br><page ns="http://schemas.microsoft.com/winfx/2006/xaml/presentati&#111;n" ns:x="http://schemas.microsoft.com/winfx/2006/xaml">    <grid></grid></page>&lt;Page xmlns=...<br>&nbsp; &nbsp; &lt;Grid... <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;StackPanel ....<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Dynamic.1&gt;&lt;/Dynamic.1&gt; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/StackPanel<br><br><br>from the CXTPMarkupBuilder::Parse<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch(t)...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case CXTPMarkupParser::tokenTagEnd:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(wcsncmp(lpszTagName), L"Dynamic ",7) == 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call Owner via a SendMessage with&nbsp; StackPanel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; object&nbsp; as WPARAM and Builder as LPARAM<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... &nbsp;&nbsp; <br>}<br><br>Owner::OnDynamicAdd(WPARAM wParam, LPARAM lParam)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; CXTPMarkupStackPanel* pObject = (CXTPMarkupStackPanel*)wParam;<br>&nbsp;&nbsp;&nbsp; CXTPMarkupBuilder * Builder = (CXTPMarkupBuilder *)lParam;<br><br>&nbsp;&nbsp;&nbsp; CXTPMarkupTextBlock* pTextBlock1 = MARKUP_CREATE(CXTPMarkupTextBlock,this);<br>&nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetTextWrapping(1);<br>&nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetText(L"You can increment or decrement the value of this"&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;L"textbox by simply clicking the mouse, hold and drag"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;L"up or down, right or left. Release when happy,with the value.");<br>&nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetMargin(5, 0, 5, 0);<br>&nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetBackground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0, 0)));<br>&nbsp;&nbsp;&nbsp; pTextBlock1-&gt;SetForeground(new CXTPMarkupSolidColorBrush(RGB(0xFF, 0xFF, 0xFF)));<br><br>&nbsp;&nbsp;&nbsp; pObject-&gt;GetChildren()-&gt;Add(pTextBlock1);<br>&nbsp; <br>}<br>hope is not to confusing just a better wat to fill in the markup dynamically<br>thanks guys&nbsp; <img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" align="absmiddle"><br><br>&nbsp;&nbsp;&nbsp;&nbsp; <br>            <stackpanel margin="40,1, 20, 7" textblock.fontfamily="Sergoe UI">               <textblock margin="0, 2, 0, 0" fontsize="22" foreground="White"></textblock></stackpanel>]]>
   </description>
   <pubDate>Fri, 23 Jan 2009 13:39:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13245&amp;PID=44850&amp;title=markup-dynamic#44850</guid>
  </item> 
 </channel>
</rss>