<?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 : (SOLVED) MessageBar Colour &amp; Xaml Events</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : (SOLVED) MessageBar Colour &amp; Xaml Events]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 13:03:34 +0000</pubDate>
  <lastBuildDate>Mon, 15 Dec 2014 07:14:44 +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=22430</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[(SOLVED) MessageBar Colour &amp; Xaml Events : Thanks for posting your solution!...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72974&amp;title=solved-messagebar-colour-xaml-events#72974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 15 December 2014 at 7:14am<br /><br />Thanks for posting your solution!]]>
   </description>
   <pubDate>Mon, 15 Dec 2014 07:14:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72974&amp;title=solved-messagebar-colour-xaml-events#72974</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : @ Willowmaster and anyone else...As...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72964&amp;title=solved-messagebar-colour-xaml-events#72964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 08 December 2014 at 8:13am<br /><br />@ Willowmaster and anyone else...<br><br>As you had suggested and I had originally thought about, I ended up doing this with the MarkupLabel. The code is pretty much the same as above, the only difference now is that I also add the xaml code into the MarkupLabel then reposition the MarkupLabel to sit over the top of the MessageBar.<br><br>I did however have to use the following code to get the MarkupLabel to accept the click event...<br><br><table width="99%"><tr><td><pre class="BBcode">using System.Runtime.InteropServices;<br><br>// ComVisible &amp; ClassInterface required for the MarkupLabel for detecting click events<br>&#091;ComVisible(true), ClassInterface(ClassInterfaceType.AutoDispatch)&#093;<br>public partial class frmMain : Form<br>{<br><br>&nbsp;&nbsp;&nbsp; // This is the MarkupLabel's Close button event, which is referenced in the MessageBar class<br>&nbsp;&nbsp;&nbsp; &#091;ComVisible(true)&#093;<br>&nbsp;&nbsp;&nbsp; public void CloseEvent(XtremeMarkup.MarkupObject Sender, XtremeMarkup.MarkupRoutedEventArgs Args)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBar.Clear();<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; private void CreateMessageBar()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; messageBar = CommandBars.MessageBar;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBars.GlobalSettings.Icons.AddIcons(ImageManager.Icons);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Required to bind the MarkupLabel "messageBarLabel" to the Form to accept click events<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; messageBarLabel.MarkupContext.SetHandler(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; messageBarLabel.Icons = (XtremeMarkup.ImageManagerIcons)ImageManager.Icons;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBar.messageBar = messageBar;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBar.parent = this;<br>&nbsp;&nbsp;&nbsp; }<br><br>}<br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Mon, 08 Dec 2014 08:13:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72964&amp;title=solved-messagebar-colour-xaml-events#72964</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : Yeah I thought about that method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72824&amp;title=solved-messagebar-colour-xaml-events#72824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 07 October 2014 at 8:15am<br /><br />Yeah I thought about that method as I had worked with the MarkupLabel in the past, but as this was the MessageBar it doesn't work the same way.<br><br>Is there a way to replace the MessageBar with the MarkupLabel? If that's doable then I would use the MarkupLabel instead, I have tried to do this but wasn't sure how to get this to replace the MessageBar.<br><br>PS. I have this built in an MDI application, which is why I am unsure as to how I would position the MarkupLabel between the CommandBars and Workspace.<br>]]>
   </description>
   <pubDate>Tue, 07 Oct 2014 08:15:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72824&amp;title=solved-messagebar-colour-xaml-events#72824</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : Think I&amp;#039;m on to something....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72823&amp;title=solved-messagebar-colour-xaml-events#72823</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 07 October 2014 at 7:04am<br /><br />Think I'm on to something. To receive events you need to set&nbsp;the Form as a handler to the Markup control like this: MarkupLabel1.MarkupContext.SetHandler Me]]>
   </description>
   <pubDate>Tue, 07 Oct 2014 07:04:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72823&amp;title=solved-messagebar-colour-xaml-events#72823</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : You could add a hyperlink to the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72822&amp;title=solved-messagebar-colour-xaml-events#72822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 07 October 2014 at 6:58am<br /><br />You could add a hyperlink to the TextBox. Not ideal but it can be clicked.]]>
   </description>
   <pubDate>Tue, 07 Oct 2014 06:58:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72822&amp;title=solved-messagebar-colour-xaml-events#72822</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : Tried to generate a TextBox in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72821&amp;title=solved-messagebar-colour-xaml-events#72821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 07 October 2014 at 6:40am<br /><br /><P>Tried to generate a TextBox in code and add a handler but that doesn't work either. Could it be that you need to wrap it in an element that can receive events and that will route events to the TextBox element?</P>]]>
   </description>
   <pubDate>Tue, 07 Oct 2014 06:40:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72821&amp;title=solved-messagebar-colour-xaml-events#72821</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : @ Willowmaster, Thanks for trying...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72820&amp;title=solved-messagebar-colour-xaml-events#72820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 07 October 2014 at 3:57am<br /><br />@ Willowmaster, <br><br>Thanks for trying to help, but the Codejock Xaml does not work with the EventTrigger <img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" /><br><br>I'm thinking I will be unable to get this to work, good news is the colour works perfect but I would like to be able to use the buttons too.<br><br>Anyone from Codejock able to help?<br>]]>
   </description>
   <pubDate>Tue, 07 Oct 2014 03:57:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72820&amp;title=solved-messagebar-colour-xaml-events#72820</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : &amp;lt;Style.Triggers&amp;gt;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72817&amp;title=solved-messagebar-colour-xaml-events#72817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6226">Willowmaster</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 06 October 2014 at 11:32am<br /><br /><PRE =prettyprint style="OVERFLOW: auto; FONT-SIZE: 12px; BORDER-TOP: rgb238,238,238 1px solid; BORDER-RIGHT: rgb238,238,238 1px solid; FONT-VARIANT: normal; WORD-SPACING: 0px; BORDER-BOTTOM: rgb238,238,238 1px solid; TEXT-TRANS: n&#111;ne; FONT-WEIGHT: normal; COLOR: rgb102,102,102; PADDING-BOTTOM: 8px; FONT-STYLE: normal; PADDING-TOP: 8px; PADDING-LEFT: 8px; MARGIN: 15px 5px; BORDER-LEFT: rgb238,238,238 1px solid; LETTER-SPACING: normal; LINE-HEIGHT: 19px; PADDING-RIGHT: 8px; : rgb238,238,238; TEXT-INDENT: 0px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; -webkit-text-stroke-width: 0px"><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;Style.Triggers&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;EventTrigger</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"> </SPAN><SPAN =atn style="COLOR: rgb102,0,102; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">RoutedEvent</SPAN><SPAN =pun style="COLOR: rgb102,102,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">=</SPAN><SPAN =atv style="COLOR: rgb0,136,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">"MouseEnter"</SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;EventTrigger.Actions&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;BeginStoryboard&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;Storyboard&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;DoubleAnimation</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"> </SPAN><SPAN =atn style="COLOR: rgb102,0,102; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">Duration</SPAN><SPAN =pun style="COLOR: rgb102,102,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">=</SPAN><SPAN =atv style="COLOR: rgb0,136,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">"0:0:0.300"</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"> </SPAN><SPAN =atn style="COLOR: rgb102,0,102; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">Storyboard</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">.</SPAN><SPAN =atn style="COLOR: rgb102,0,102; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">TargetProperty</SPAN><SPAN =pun style="COLOR: rgb102,102,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">=</SPAN><SPAN =atv style="COLOR: rgb0,136,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">"FontSize"</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"> </SPAN><SPAN =atn style="COLOR: rgb102,0,102; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">To</SPAN><SPAN =pun style="COLOR: rgb102,102,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">=</SPAN><SPAN =atv style="COLOR: rgb0,136,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">"28"</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"> </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">/&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;/Storyboard&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;/BeginStoryboard&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;/EventTrigger.Actions&gt;</SPAN><SPAN =pln style="COLOR: rgb0,0,0; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px"><BR style="PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </SPAN><SPAN =tag style="COLOR: rgb0,0,136; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px">&lt;/EventTrigger&gt;</SPAN></PRE>This is XAML code found on the internet (<a href="http://www.wpf-tutorial.com/styles/trigger-datatrigger-&#101;vent-trigger/" target="_blank" rel="nofollow"><U><FONT color=#0066cc>http://www.wpf-tutorial.com/styles/trigger-datatrigger-event-trigger/</FONT></U></A>). I'm not sure if this works with CodeJock. ]]>
   </description>
   <pubDate>Mon, 06 Oct 2014 11:32:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72817&amp;title=solved-messagebar-colour-xaml-events#72817</guid>
  </item> 
  <item>
   <title><![CDATA[(SOLVED) MessageBar Colour &amp; Xaml Events : Hi,I have recently found a method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72816&amp;title=solved-messagebar-colour-xaml-events#72816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2960">Xander75</a><br /><strong>Subject:</strong> 22430<br /><strong>Posted:</strong> 06 October 2014 at 10:19am<br /><br />Hi,<br><br>I have recently found a method that allows me to override the basic colour of the MessageBar and therefore do what I want colour wise.<br><br><img src="uploads/2960/MessageBar_Colour_Override.png" height="673" width="695" border="0" /><br><br>As you can see the default Codejock AddButton method doesn't update with the colour, so I wrote my own xaml to do the same, so I get the following:<br><br><img src="uploads/2960/MessageBar_AddButt&#111;n_Override.png" height="339" width="694" border="0" /><br><br>The xaml utilises the "MouseLeftButtonUp" event to call the "MessageBarEvent", which looks like "MouseLeftButtonUp='MessageBarEvent'".<br><br>Does anyone know of a way to get this event to fire? Any help is appreciated.<br><br>See below for the code I used to get the MessageBar to fully change its colour, which is in C#.Net but easily adaptable to VB6. I haven't copied the method "MessageBarEvent" as all this does is fire a message box if I can ever get it to work!!<br><br>I have tried using the Button xaml code and I still am met with being unable to fire the event from that also.<br><table width="99%"><tr><td><pre class="BBcode">public void MessageBarDisplay(string message, string title, MessageBarType type = MessageBarType.Information)<br>{<br>&nbsp;&nbsp;&nbsp; // Encode the &lt; (less than) and &gt; (greater than) symbols for the XAML below<br>&nbsp;&nbsp;&nbsp; message = message.Replace("&amp;", "&amp;amp;");<br>&nbsp;&nbsp;&nbsp; message = message.Replace("'", "&amp;apos;");<br>&nbsp;&nbsp;&nbsp; message = message.Replace("&lt;", "&amp;lt;");<br>&nbsp;&nbsp;&nbsp; message = message.Replace("&gt;", "&amp;gt;");<br>&nbsp;&nbsp;&nbsp; message = message.Replace("\"", "&amp;quot;");<br><br>&nbsp;&nbsp;&nbsp; // Variables used for the message layout<br>&nbsp;&nbsp;&nbsp; int image = 0;<br>&nbsp;&nbsp;&nbsp; string button = String.Empty;<br>&nbsp;&nbsp;&nbsp; string colour = String.Empty;<br>&nbsp;&nbsp;&nbsp; string imageSource = String.Empty;<br>&nbsp;&nbsp;&nbsp; string textMessage = String.Empty;<br>&nbsp;&nbsp;&nbsp; string textTitle = String.Empty;<br><br>&nbsp;&nbsp;&nbsp; // Determine the passed MessageBarType and retrieve the correct details<br>&nbsp;&nbsp;&nbsp; switch (type)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case MessageBarType.Error:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colour = "#FFB6B8";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image = ID.IMAGE_ERROR;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case MessageBarType.Information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image = ID.IMAGE_INFORMATION;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case MessageBarType.Success:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colour = "#D4FFD6";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image = ID.IMAGE_SUCCESS;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case MessageBarType.Warning:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colour = "#FFFFA8";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image = ID.IMAGE_WARNING;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; // Build the desired message layout using xaml<br>&nbsp;&nbsp;&nbsp; if (colour != String.Empty)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; colour = "Background='" + colour + "' Height='32' Width='" + this.ClientSize.Width.ToString() + "'";<br><br>&nbsp;&nbsp;&nbsp; if (image &gt; 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; imageSource = "&lt;Image Margin='5,0,0,0' Source='" + image + @"'/&gt;";<br><br>&nbsp;&nbsp;&nbsp; if (message != String.Empty)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; textMessage = "&lt;TextBlock Padding='10, 0, 0, 0' VerticalAlignment='Center' Name='TextMessage'&gt;" + message + @"&lt;/TextBlock&gt;";<br><br>&nbsp;&nbsp;&nbsp; if (title != String.Empty)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; textTitle = "&lt;TextBlock Padding='3, 0, 0, 0' VerticalAlignment='Center' Name='TextTitle'&gt;&lt;Bold&gt;" + title + @":&lt;/Bold&gt;&lt;/TextBlock&gt;";<br><br>&nbsp;&nbsp;&nbsp; if (type == MessageBarType.Error)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; button = @"&lt;Page.Resources&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Style TargetType='Border'&gt;<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;&nbsp;&nbsp; &lt;Setter Property='BorderThickness' Value='1' /&gt;<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;&nbsp;&nbsp; &lt;Setter Property='Cursor' Value='Hand' /&gt;<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;&nbsp;&nbsp; &lt;Style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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Style&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Page.Resources&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Border Focusable='True' Height='24' HorizontalAlignment='Right' Margin='0, 0, 12, 0' MouseLeftButtonUp='MessageBarEvent' Width='100'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;TextBlock Cursor='Hand' VerticalAlignment='Center' HorizontalAlignment='Center'&gt;Send Screenshot&lt;/TextBlock&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/Border&gt;";<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; // Add the layout to the MessageBar's Message area<br>&nbsp;&nbsp;&nbsp; messageBar.Message = @"&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;DockPanel " + colour + @" Margin='-4,0,-4,0'&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + imageSource + @"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + textTitle + @"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + textMessage + @"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; " + button + @"<br>&nbsp;&nbsp;&nbsp; &lt;/DockPanel&gt;";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; messageBar.Visible = true;<br>}<br></pre></td></tr></table><br><br><br>]]>
   </description>
   <pubDate>Mon, 06 Oct 2014 10:19:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22430&amp;PID=72816&amp;title=solved-messagebar-colour-xaml-events#72816</guid>
  </item> 
 </channel>
</rss>