













<?xml version="1.0" encoding="iso-8859-1"?>
<!-- generator="b2evolution/2.4.2" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Omniscient's Foundation - Blog - Latest comments</title>
		<link>http://omni-foundation.net/blog/blog1.php?disp=comments</link>
		<description></description>
		<language>en-US</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=2.4.2"/>
		<ttl>60</ttl>
		

		<item>
			<title>In response to: Store AppFabric cache structure</title>
			<pubDate>Tue, 29 Jun 2010 20:24:04 +0000</pubDate>
			<dc:creator>apple ipad technology [Visitor]</dc:creator>
			<guid isPermaLink="false">c6026@http://omni-foundation.net/blog/</guid>
			<description>nice information ...i like this blog...keep your posting with smile :D</description>
			<content:encoded><![CDATA[nice information ...i like this blog...keep your posting with smile :D]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2010/04/23/store-appfabric-cache-structure#c6026</link>
		</item>
		
		<item>
			<title>In response to: Silverlight Configuration (almost) like regular .NET</title>
			<pubDate>Wed, 02 Jun 2010 14:55:03 +0000</pubDate>
			<dc:creator>Dave [Member]</dc:creator>
			<guid isPermaLink="false">c3257@http://omni-foundation.net/blog/</guid>
			<description>As I said, I committed the changes so that the ConfigurationManager now works a bit more like its .NET counterpart.  For example, the signature is now the same: object GetSection(string sectionName);&lt;br /&gt;
&lt;br /&gt;
Plus, the configuration file now asks for a valid configuration section:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
    &amp;lt;configSections&amp;gt;&lt;br /&gt;
        &amp;lt;section name=&quot;mySection&quot; type=&quot;assembly-qualified name for an IConfigurationSectionHandler&quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;/configSections&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    &amp;lt;mySection value=&quot;abc&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;</description>
			<content:encoded><![CDATA[As I said, I committed the changes so that the ConfigurationManager now works a bit more like its .NET counterpart.  For example, the signature is now the same: object GetSection(string sectionName);<br />
<br />
Plus, the configuration file now asks for a valid configuration section:<br />
<br />
&lt;configuration&gt;<br />
    &lt;configSections&gt;<br />
        &lt;section name="mySection" type="assembly-qualified name for an IConfigurationSectionHandler" /&gt;<br />
    &lt;/configSections&gt;<br />
    ...<br />
    &lt;mySection value="abc" /&gt;<br />
&lt;/configuration&gt;<br />]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/09/17/silverlight-configuration-almost-like-re#c3257</link>
		</item>
		
		<item>
			<title>In response to: Silverlight 3, databinding and anonymous types</title>
			<pubDate>Tue, 18 May 2010 19:58:58 +0000</pubDate>
			<dc:creator>Dave [Member]</dc:creator>
			<guid isPermaLink="false">c1852@http://omni-foundation.net/blog/</guid>
			<description>Ah!  So anonymous types are internal by default...  Something I wasn't aware of.  Which probably leads to the more general statement : You can't bind to internal types.&lt;br /&gt;
&lt;br /&gt;
Thanks, very helpful.</description>
			<content:encoded><![CDATA[Ah!  So anonymous types are internal by default...  Something I wasn't aware of.  Which probably leads to the more general statement : You can't bind to internal types.<br />
<br />
Thanks, very helpful.]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/12/03/silverlight-3-databinding-and-anonymous-#c1852</link>
		</item>
		
		<item>
			<title>In response to: Silverlight 3, databinding and anonymous types</title>
			<pubDate>Tue, 18 May 2010 19:47:20 +0000</pubDate>
			<dc:creator>Jason Jarrett [Visitor]</dc:creator>
			<guid isPermaLink="false">c1851@http://omni-foundation.net/blog/</guid>
			<description>Place this in your AssemblyInfo.cs.&lt;br /&gt;
&lt;br /&gt;
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo(&quot;System.Windows&quot;)]&lt;br /&gt;
&lt;br /&gt;
Should work.</description>
			<content:encoded><![CDATA[Place this in your AssemblyInfo.cs.<br />
<br />
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Windows")]<br />
<br />
Should work.]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/12/03/silverlight-3-databinding-and-anonymous-#c1851</link>
		</item>
		
		<item>
			<title>In response to: Command pattern in Silverlight</title>
			<pubDate>Thu, 17 Dec 2009 00:47:50 +0000</pubDate>
			<dc:creator>Dave [Member]</dc:creator>
			<guid isPermaLink="false">c19@http://omni-foundation.net/blog/</guid>
			<description>When you set the datacontext, is the command object instantiated? That's a common mistake.  Here's some code:&lt;br /&gt;
&lt;br /&gt;
Partial Public Class MainPage&lt;br /&gt;
    Inherits UserControl&lt;br /&gt;
&lt;br /&gt;
    Private _command As Command&lt;br /&gt;
&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
&lt;br /&gt;
        'wrong...&lt;br /&gt;
        'Me.DataContext = Me&lt;br /&gt;
        '_command = New Command()&lt;br /&gt;
&lt;br /&gt;
        _command = New Command()&lt;br /&gt;
        Me.DataContext = Me&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Public ReadOnly Property Command() As ICommand&lt;br /&gt;
        Get&lt;br /&gt;
            Return _command&lt;br /&gt;
        End Get&lt;br /&gt;
    End Property&lt;br /&gt;
End Class&lt;br /&gt;</description>
			<content:encoded><![CDATA[When you set the datacontext, is the command object instantiated? That's a common mistake.  Here's some code:<br />
<br />
Partial Public Class MainPage<br />
    Inherits UserControl<br />
<br />
    Private _command As Command<br />
<br />
    Public Sub New()<br />
        InitializeComponent()<br />
<br />
        'wrong...<br />
        'Me.DataContext = Me<br />
        '_command = New Command()<br />
<br />
        _command = New Command()<br />
        Me.DataContext = Me<br />
    End Sub<br />
<br />
    Public ReadOnly Property Command() As ICommand<br />
        Get<br />
            Return _command<br />
        End Get<br />
    End Property<br />
End Class<br />]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/05/14/commands-pattern-in-silverlight#c19</link>
		</item>
		
		<item>
			<title>In response to: Command pattern in Silverlight</title>
			<pubDate>Wed, 16 Dec 2009 22:45:55 +0000</pubDate>
			<dc:creator>Rodney Stephens [Visitor]</dc:creator>
			<guid isPermaLink="false">c18@http://omni-foundation.net/blog/</guid>
			<description>Can't get it to work. Command property always returns nothing. Here is my code.  Any help would be appreciated.&lt;br /&gt;
Namespace CommandControls&lt;br /&gt;
    Public Class CommandButton : Inherits System.Windows.Controls.Button&lt;br /&gt;
        Public Shared ReadOnly CommandProperty As DependencyProperty&lt;br /&gt;
        Public Shared ReadOnly CommandParameterProperty As DependencyProperty&lt;br /&gt;
&lt;br /&gt;
        Shared Sub New()&lt;br /&gt;
            CommandProperty = DependencyProperty.Register(&quot;Command&quot;, GetType(ICommand), GetType(CommandButton), _&lt;br /&gt;
                New PropertyMetadata(Nothing, New PropertyChangedCallback(AddressOf OnCommandChanged)))&lt;br /&gt;
&lt;br /&gt;
            CommandParameterProperty = DependencyProperty.Register(&quot;CommandParam&quot;, GetType(Object), GetType(CommandButton), _&lt;br /&gt;
                New PropertyMetadata(Nothing, New PropertyChangedCallback(AddressOf OnCommandParamChanged)))&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;
        Public Sub New()&lt;br /&gt;
            MyBase.New()&lt;br /&gt;
&lt;br /&gt;
            AddHandler Me.Click, New RoutedEventHandler(AddressOf CommandButton_Click)&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;
        Private Sub CommandButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)&lt;br /&gt;
            If (Command IsNot Nothing) Then&lt;br /&gt;
                Command.Execute(Me.CommandParam)&lt;br /&gt;
            End If&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;
        Public Property Command() As ICommand&lt;br /&gt;
            Get&lt;br /&gt;
                Return DirectCast(GetValue(CommandProperty), ICommand)&lt;br /&gt;
            End Get&lt;br /&gt;
            Set(ByVal Value As ICommand)&lt;br /&gt;
                SetValue(CommandProperty, Value)&lt;br /&gt;
            End Set&lt;br /&gt;
        End Property&lt;br /&gt;
&lt;br /&gt;
        Public Property CommandParam() As Object&lt;br /&gt;
            Get&lt;br /&gt;
                Return GetValue(CommandParameterProperty)&lt;br /&gt;
            End Get&lt;br /&gt;
            Set(ByVal Value As Object)&lt;br /&gt;
                SetValue(CommandParameterProperty, Value)&lt;br /&gt;
            End Set&lt;br /&gt;
        End Property&lt;br /&gt;
&lt;br /&gt;
        Private Shared Sub OnCommandChanged(ByVal sender As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)&lt;br /&gt;
            Dim button As CommandButton = DirectCast(sender, CommandButton)&lt;br /&gt;
            button.UpdateCanExecute()&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;
        Private Shared Sub OnCommandParamChanged(ByVal sender As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)&lt;br /&gt;
            Dim button As CommandButton = DirectCast(sender, CommandButton)&lt;br /&gt;
            button.UpdateCanExecute()&lt;br /&gt;
        End Sub&lt;br /&gt;
&lt;br /&gt;
        Private Sub UpdateCanExecute()&lt;br /&gt;
            Dim canExecute As Boolean = True&lt;br /&gt;
&lt;br /&gt;
            If Command Is Nothing Then&lt;br /&gt;
                canExecute = False&lt;br /&gt;
            End If&lt;br /&gt;
&lt;br /&gt;
            If canExecute Then&lt;br /&gt;
                canExecute = Command.CanExecute(CommandParam)&lt;br /&gt;
                Me.IsEnabled = canExecute&lt;br /&gt;
            End If&lt;br /&gt;
        End Sub&lt;br /&gt;
    End Class&lt;br /&gt;
End Namespace</description>
			<content:encoded><![CDATA[Can't get it to work. Command property always returns nothing. Here is my code.  Any help would be appreciated.<br />
Namespace CommandControls<br />
    Public Class CommandButton : Inherits System.Windows.Controls.Button<br />
        Public Shared ReadOnly CommandProperty As DependencyProperty<br />
        Public Shared ReadOnly CommandParameterProperty As DependencyProperty<br />
<br />
        Shared Sub New()<br />
            CommandProperty = DependencyProperty.Register("Command", GetType(ICommand), GetType(CommandButton), _<br />
                New PropertyMetadata(Nothing, New PropertyChangedCallback(AddressOf OnCommandChanged)))<br />
<br />
            CommandParameterProperty = DependencyProperty.Register("CommandParam", GetType(Object), GetType(CommandButton), _<br />
                New PropertyMetadata(Nothing, New PropertyChangedCallback(AddressOf OnCommandParamChanged)))<br />
        End Sub<br />
<br />
        Public Sub New()<br />
            MyBase.New()<br />
<br />
            AddHandler Me.Click, New RoutedEventHandler(AddressOf CommandButton_Click)<br />
        End Sub<br />
<br />
        Private Sub CommandButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)<br />
            If (Command IsNot Nothing) Then<br />
                Command.Execute(Me.CommandParam)<br />
            End If<br />
        End Sub<br />
<br />
        Public Property Command() As ICommand<br />
            Get<br />
                Return DirectCast(GetValue(CommandProperty), ICommand)<br />
            End Get<br />
            Set(ByVal Value As ICommand)<br />
                SetValue(CommandProperty, Value)<br />
            End Set<br />
        End Property<br />
<br />
        Public Property CommandParam() As Object<br />
            Get<br />
                Return GetValue(CommandParameterProperty)<br />
            End Get<br />
            Set(ByVal Value As Object)<br />
                SetValue(CommandParameterProperty, Value)<br />
            End Set<br />
        End Property<br />
<br />
        Private Shared Sub OnCommandChanged(ByVal sender As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)<br />
            Dim button As CommandButton = DirectCast(sender, CommandButton)<br />
            button.UpdateCanExecute()<br />
        End Sub<br />
<br />
        Private Shared Sub OnCommandParamChanged(ByVal sender As DependencyObject, ByVal e As DependencyPropertyChangedEventArgs)<br />
            Dim button As CommandButton = DirectCast(sender, CommandButton)<br />
            button.UpdateCanExecute()<br />
        End Sub<br />
<br />
        Private Sub UpdateCanExecute()<br />
            Dim canExecute As Boolean = True<br />
<br />
            If Command Is Nothing Then<br />
                canExecute = False<br />
            End If<br />
<br />
            If canExecute Then<br />
                canExecute = Command.CanExecute(CommandParam)<br />
                Me.IsEnabled = canExecute<br />
            End If<br />
        End Sub<br />
    End Class<br />
End Namespace]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/05/14/commands-pattern-in-silverlight#c18</link>
		</item>
		
		<item>
			<title>In response to: Silverlight Configuration (almost) like regular .NET</title>
			<pubDate>Fri, 18 Sep 2009 14:22:12 +0000</pubDate>
			<dc:creator>Dave [Member]</dc:creator>
			<guid isPermaLink="false">c15@http://omni-foundation.net/blog/</guid>
			<description>I'm currently improving ConfigurationManager so that it mimics even more precisely what .NET's ConfigurationManager does.  I'll post changes to it here later today.</description>
			<content:encoded><![CDATA[I'm currently improving ConfigurationManager so that it mimics even more precisely what .NET's ConfigurationManager does.  I'll post changes to it here later today.]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2009/09/17/silverlight-configuration-almost-like-re#c15</link>
		</item>
		
		<item>
			<title>In response to: Visual Studio Development Server and HTTPS</title>
			<pubDate>Wed, 15 Jul 2009 14:52:42 +0000</pubDate>
			<dc:creator>Dave [Member]</dc:creator>
			<guid isPermaLink="false">c14@http://omni-foundation.net/blog/</guid>
			<description>At this point in time, yes, this is impossible to do so.</description>
			<content:encoded><![CDATA[At this point in time, yes, this is impossible to do so.]]></content:encoded>
			<link>http://omni-foundation.net/blog/blog1.php/2008/10/31/visual-studio-development-server-and-htt#c14</link>
		</item>
		
	</channel>
</rss>
