<?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 : UserControl, MarkupLabel and KeyDown Event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : UserControl, MarkupLabel and KeyDown Event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 18:35:32 +0000</pubDate>
  <lastBuildDate>Sat, 28 Nov 2009 01:37:33 +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=14646</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[UserControl, MarkupLabel and KeyDown Event : Well, I don&amp;#039;t know if this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=55242&amp;title=usercontrol-markuplabel-and-keydown-event#55242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 28 November 2009 at 1:37am<br /><br />Well, I don't know if this is the better place, but here are new tips:<br /><br />To add the following events on the markup elements:<br /><br />-MouseClick event<br />-MouseDoubleClick event<br /><br />Because we are having to handle this by ourselves, and this is not cool.<br />]]>
   </description>
   <pubDate>Sat, 28 Nov 2009 01:37:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=55242&amp;title=usercontrol-markuplabel-and-keydown-event#55242</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : Hi all!  Oleg answered a support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53505&amp;title=usercontrol-markuplabel-and-keydown-event#53505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 28 September 2009 at 4:26pm<br /><br />Hi all!<br /><br />Oleg answered a support ticket of mine on 27-Jul-2009, saying that they "have now more priority work, but will return to new Markup features as soon as it will be possible."<br /><br />It appears obvious to me that with a strong XAML implementation we can continue using VB6 for a lot of years. And we don't need too much new things. With these features requested in this topic, and a bit of others spreaded in another topics, we are done.<br /><br />It will be lacking only some features of WPF (the 3D rendering functions and the effects), but that in the other hand make it slow.<br />]]>
   </description>
   <pubDate>Mon, 28 Sep 2009 16:26:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53505&amp;title=usercontrol-markuplabel-and-keydown-event#53505</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : Hey Aaron, sorry for the delay...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53502&amp;title=usercontrol-markuplabel-and-keydown-event#53502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 28 September 2009 at 3:31pm<br /><br />Hey Aaron, sorry for the delay in getting back to you about this, but thanks for the support. I've had an open ticket for a while now without any feedback from CJ, so it doesn't look like they are much interested in expanding on the markup control. Personally, I think its a shame and a missed opportunity, but there's not much else I can do to promote markup and try and get CJ to see the potential. Maybe if others start to demand some improvements it will help motivate CJ, but perhaps nobody else is interested in markup the way we are and that is why CJ isn't devoting many resources to it?<br>]]>
   </description>
   <pubDate>Mon, 28 Sep 2009 15:31:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53502&amp;title=usercontrol-markuplabel-and-keydown-event#53502</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : Hi Jason and Bernardino      It...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53289&amp;title=usercontrol-markuplabel-and-keydown-event#53289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 20 September 2009 at 9:50am<br /><br />Hi Jason and Bernardino <DIV>&nbsp;</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV>It looks like you are the only one here... It's outrageous that no one of CJ support team hasn't replied on your post. Not a single reply??? It has been a long time since Markup has been upgraded to a higher level. You would expect that the headman of Markup would reply... but no... </DIV><DIV>&nbsp;</DIV><DIV>Thanks for having you to keep Markup alive <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Sun, 20 Sep 2009 09:50:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=53289&amp;title=usercontrol-markuplabel-and-keydown-event#53289</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : A way to set and change the Background...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51200&amp;title=usercontrol-markuplabel-and-keydown-event#51200</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 23 July 2009 at 1:51am<br /><br />A way to set and change the Background of the elements to a LinearGradientBrush at run-time would be great.<br /><br />Implementing the item 19 could to be a way to do it, and would be sufficient by now. Example:<br /><br />Border.Properties("Background") = "&lt;LinearGradientBrush ... &gt;"<br /><br />It is important to be able to apply them to the styles too, when creating the styles at tun-time.<br />]]>
   </description>
   <pubDate>Thu, 23 Jul 2009 01:51:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51200&amp;title=usercontrol-markuplabel-and-keydown-event#51200</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event :  Item 26: The ScrollViewer ScrollBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51074&amp;title=usercontrol-markuplabel-and-keydown-event#51074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 17 July 2009 at 8:21pm<br /><br /><br /><strong>Item 26:</strong> The ScrollViewer ScrollBar is being shown with a line in its left side, like the following picture:<br /><br /><img src="uploads/20090717_201143_ScrollBorderBug.gif" border="0">]]>
   </description>
   <pubDate>Fri, 17 Jul 2009 20:21:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51074&amp;title=usercontrol-markuplabel-and-keydown-event#51074</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event :  Item 24: A way to get the ScrollBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51003&amp;title=usercontrol-markuplabel-and-keydown-event#51003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 16 July 2009 at 12:48am<br /><br /><br /><strong>Item 24:</strong> A way to get the ScrollBar Width of the Vertical ScrollViewer, as well as the ScrollBar Height of the Horizontal one. Or only one property for bot purposes: ScrollBarThickness<br /><br /><strong>Item 25:</strong> (related to the markup and not to the MarkupLabel) An option to show the ScrollViewer ScrollBar only when needed, and hide it when there is no sufficient content to scroll.<br />]]>
   </description>
   <pubDate>Thu, 16 Jul 2009 00:48:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=51003&amp;title=usercontrol-markuplabel-and-keydown-event#51003</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : I think that the item 19 is a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50851&amp;title=usercontrol-markuplabel-and-keydown-event#50851</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 10 July 2009 at 9:48am<br /><br />I think that the <strong>item 19</strong> is a great feature. I will describe its use:<br /><br />Suppose we have an usercontrol and we want that it has a different look while it has the focus. The application may to set these looks (for NoFocus and Focus states) only once and the usercontrol may to update its look when it receives or loses the focus.<br /><br />The app could to do this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;UserControl.BorderFocusProperties("Background") = "xxx"<br />&nbsp;&nbsp;&nbsp;UserControl.BorderFocusProperties("BorderBrush") = "xxx"<br /><br />&nbsp;&nbsp;&nbsp;UserControl.BorderNoFocusProperties("Background") = "yyy"<br />&nbsp;&nbsp;&nbsp;UserControl.BorderNoFocusProperties("BorderBrush") = "yyy"<br /></font></font><br />And the usercontrol can use this info and change the look like this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;If HasFocus Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For i = 1 To UBound(FocusProps)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Border1.Properties(FocusProps(i).Name) = FocusProps(i).Value<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For i = 1 To UBound(NoFocusProps)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Border1.Properties(NoFocusProps(i).Name) = NoFocusProps(i).Value<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Next<br />&nbsp;&nbsp;&nbsp;End If<br /></font></font><br /><br />Or the MarkupLabel could to have a PropertyBag and use it like this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;If HasFocus Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Border1.PropertyBag = FocusProps<br />&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set Border1.PropertyBag = NoFocusProps<br />&nbsp;&nbsp;&nbsp;End If<br /></font></font><br /><br />Or better: we could to create and set the styles and change them at run-time.<br /><br />The usercontrol can to create the style and change its properties (received from the app), like this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />Private BStyleWithFocus As MarkupStyle<br /><br />Property Let BorderFocusProperties(Name As String, Value As String)<br /><br />&nbsp;&nbsp;&nbsp;Set BStyleWithFocus = MarkupLabel1...Styles.FindName("BorderWithFocus")<br />&nbsp;&nbsp;&nbsp;If BStyleWithFocus = Nothing Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set BStyleWithFocus = MarkupLabel1...CreateObject("MarkupStyle")<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BStyleWithFocus.xKey = "BorderWithFocus"&nbsp;&nbsp;&nbsp;<font color=GREEN>'xKey Or Name</font><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BStyleWithFocus.TargetType = "Border"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MarkupLabel1.Styles.Add BStyleWithFocus<br />&nbsp;&nbsp;&nbsp;End If<br /><br />&nbsp;&nbsp;&nbsp;BStyleWithFocus.Property(Name) = Value<br /><br />End Property<br /></font></font><br />Then the usercontrol can change the element style like this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;If HasFocus Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Border1.Style = "{StaticResource BorderWithFocus}"<br />&nbsp;&nbsp;&nbsp;Else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Border1.Style = "{StaticResource BorderNoFocus}"<br />&nbsp;&nbsp;&nbsp;End If<br /></font></font><br /><br />Another idea (that can be the <strong>item 23</strong>): When using XAML we can set the properties of the child elements in the parent one, e.g. <br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&lt;StackPanel TextBlock.FontFamily="Tahoma" TextBlock.FontSize="14" TextBlock.FontWeight="Bold"&gt;<br /></font></font><br />It would to be good to have this at run-time too, something like this:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;StackPanel1.Properties("TextBlock.Foreground") = "Green"<br />&nbsp;&nbsp;&nbsp;StackPanel1.Properties("TextBlock.HorizontalAlignment") = "Center"<br />&nbsp;&nbsp;&nbsp;StackPanel1.Properties("TextBlock.FontSize") = "14"<br /></font></font><br />I don't know if this can be done using styles.<br /><br /><br />Another item (<strong>19 C</strong>) (If the codejock team does not have enough time, this is not so important as the previous):<br /><br />Suppose that we want the usercontrol to have some element on a different row and column from a grid when it has the focus:<br /><font face="Courier New, Courier, mono"><font color=BLUE><br />&nbsp;&nbsp;&nbsp;UserControl.BorderFocusProperties("Grid.Row") = "xxx"<br />&nbsp;&nbsp;&nbsp;UserControl.BorderFocusProperties("Grid.Column") = "xxx"<br /><br />&nbsp;&nbsp;&nbsp;UserControl.BorderNoFocusProperties("Grid.Row") = "yyy"<br />&nbsp;&nbsp;&nbsp;UserControl.BorderNoFocusProperties("Grid.Column") = "yyy"<br /></font></font><br />Well, I think that this one cannot be done with styles.<br /><br /><br />Without the features above (in the case that the app wants the usercontrol to have a different look at different states) we can use only the object model and then the app may use a lot of code to change the usercontrol look at the usercontrol events, signaling state change.<br />]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 09:48:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50851&amp;title=usercontrol-markuplabel-and-keydown-event#50851</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : By now I have no more additions,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50789&amp;title=usercontrol-markuplabel-and-keydown-event#50789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3733">Krog</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 08 July 2009 at 12:44pm<br /><br />By now I have no more additions, but I am still working in the XamlGrid control and some new ideas can arise.<br /><br />I have another MarkupLabel based control that I am developing and I will release it later :)<br /><br />I still did not have time to see your chart code. I will do it later. It appears to be a great control. The look is great. Congratulations!<br /><br />But you can send it, with a link to this topic. So we can continue adding new ideas.<br />]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 12:44:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50789&amp;title=usercontrol-markuplabel-and-keydown-event#50789</guid>
  </item> 
  <item>
   <title><![CDATA[UserControl, MarkupLabel and KeyDown Event : Well, I think this is a pretty...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50785&amp;title=usercontrol-markuplabel-and-keydown-event#50785</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 14646<br /><strong>Posted:</strong> 08 July 2009 at 10:57am<br /><br />Well, I think this is a pretty good list to submit to CJ, unless you have any more additions?]]>
   </description>
   <pubDate>Wed, 08 Jul 2009 10:57:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14646&amp;PID=50785&amp;title=usercontrol-markuplabel-and-keydown-event#50785</guid>
  </item> 
 </channel>
</rss>