<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>IronNails.Contracts/ViewModels/LoginViewModel.cs</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -93,6 +93,7 @@
       &lt;DependentUpon&gt;Settings.settings&lt;/DependentUpon&gt;
       &lt;DesignTimeSharedInput&gt;True&lt;/DesignTimeSharedInput&gt;
     &lt;/Compile&gt;
+    &lt;Compile Include=&quot;ViewModels\LoginViewModel.cs&quot; /&gt;
     &lt;Compile Include=&quot;ViewModels\MainWindowViewModel.cs&quot;&gt;
       &lt;SubType&gt;Code&lt;/SubType&gt;
     &lt;/Compile&gt;</diff>
      <filename>IronNails.Contracts/IronNails.Contracts.csproj</filename>
    </modified>
    <modified>
      <diff>@@ -80,7 +80,8 @@ namespace IronNails.Library
         /// &lt;param name=&quot;arg&quot;&gt;The arg.&lt;/param&gt;
         void ICommand.Execute(object arg)
         {
-            ((UIElement) arg).Dispatcher.Invoke(DispatcherPriority.Normal, _handler);
+            //((UIElement) arg).Dispatcher.Invoke(DispatcherPriority.Normal, _handler);
+            _handler();
         }
 
         #endregion</diff>
      <filename>IronNails.Library/DelegateCommand.cs</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class LoginController &lt; IronNails::Controller::Base
   
-  view_object :username
+  view_object :username, &quot;Hello&quot;
   view_object :password
   
   view_action :authenticate</diff>
      <filename>IronNails/app/controllers/login_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,10 +2,11 @@ class MainWindowController &lt; IronNails::Controller::Base
 
   view_object :status_bar_message, &quot;The message&quot;
   
-  view_action :refresh_feeds, :mode =&gt; :asynchronous
+  view_action :refresh_feeds
   
   def refresh_feeds
     @status_bar_message = &quot;#@status_bar_message 1&quot;
+    add_child_view(:content, :login)
   end
 
 end
\ No newline at end of file</diff>
      <filename>IronNails/app/controllers/main_window_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,15 +3,16 @@
   xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
   xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2006&quot;
   xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
+  xmlns:behaviors=&quot;clr-namespace:IronNails.Library.Behaviors;assembly=IronNails.Library&quot;
   mc:Ignorable=&quot;d&quot;
   x:Name=&quot;LoginControl&quot;
   Width=&quot;225&quot; Height=&quot;270&quot;&gt;
     &lt;Border x:Name=&quot;layout_root&quot; CornerRadius=&quot;5,5,5,5&quot; BorderBrush=&quot;{DynamicResource PrimaryBorderBrush}&quot; BorderThickness=&quot;1,0,1,1&quot; Background=&quot;{DynamicResource LoginBackgroundBrush}&quot;&gt;
         &lt;StackPanel Width=&quot;150&quot; VerticalAlignment=&quot;Center&quot;&gt;
             &lt;Label Content=&quot;Username:&quot;/&gt;
-            &lt;TextBox HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;5,0,0,0&quot; Text=&quot;{Binding Objects[UserName].Value}&quot;  x:Name=&quot;username&quot; TextWrapping=&quot;Wrap&quot;/&gt;
+            &lt;TextBox HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;5,0,0,0&quot; Text=&quot;{Binding Objects[Username].Value}&quot;  x:Name=&quot;username&quot; TextWrapping=&quot;Wrap&quot;/&gt;
             &lt;Label Content=&quot;Password:&quot;/&gt;
-            &lt;PasswordBox HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;5,0,0,0&quot; x:Name=&quot;password&quot; Text=&quot;{Binding Objects[Password].Value}&quot; Width=&quot;Auto&quot;/&gt;
+            &lt;PasswordBox HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;5,0,0,0&quot; x:Name=&quot;password&quot;  Width=&quot;Auto&quot;/&gt;
             &lt;Button HorizontalAlignment=&quot;Stretch&quot; Margin=&quot;10,15,10,0&quot; behaviors:ClickBehavior.LeftClick=&quot;{Binding Commands[Authenticate] }&quot; x:Name=&quot;login_button&quot; Content=&quot;Login&quot; IsDefault=&quot;True&quot;/&gt;
         &lt;/StackPanel&gt;
     &lt;/Border&gt;</diff>
      <filename>IronNails/app/views/login.xaml</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>IronNails/bin/IronNails.Contracts.dll</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>IronNails/bin/IronNails.Contracts.pdb</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>IronNails/bin/IronNails.Library.dll</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>IronNails/vendor/iron_nails/bin/IronNails.Library.dll</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>IronNails/vendor/iron_nails/bin/IronNails.Library.pdb</filename>
    </modified>
    <modified>
      <diff>@@ -26,8 +26,9 @@ module IronNails
       end
       
       def add_child_view(target, view_name)
-        controller = &quot;#{view_name.camelize}Controller&quot;.classify.new
+        controller = &quot;#{view_name.to_s.camelize}Controller&quot;.classify.new
         controller.setup_for_showing_view
+        controller.view_model.configure_view_for_showing
         current_view.add_control(target, controller.current_view.instance)
       end
                   </diff>
      <filename>IronNails/vendor/iron_nails/lib/controller/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -48,6 +48,11 @@ module IronNails
       
       # shows this view (probably a window)
       def show_view(reload=false)
+        configure_view_for_showing
+        view.show
+      end
+      
+      def configure_view_for_showing
         unless configured?
           if view.nil? || reload
             load_and_configure_view
@@ -55,7 +60,6 @@ module IronNails
             configure_view
           end
         end
-        view.show
       end
       
       # returns a configured instance of the view</diff>
      <filename>IronNails/vendor/iron_nails/lib/view/view_model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -14,7 +14,7 @@ module IronNails
       
       def_delegators :@model, :view, :show_view, :synchronise_with_controller, 
                               :delete_observers, :count_observers, :add_observer, 
-                              :delete_observer, :set_view_name
+                              :delete_observer, :set_view_name, :configure_view_for_showing
                               
       def_delegator :@model, :class, :viewmodel_class
       </diff>
      <filename>IronNails/vendor/iron_nails/lib/view/view_model_builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -107,7 +107,7 @@ module IronNails
           if parent.respond_to? :content=
             parent.content = view
           elsif parent.respond_to? :children
-            parent.children.add command[:view]
+            parent.children.add view
           end          
         end
         </diff>
      <filename>IronNails/vendor/iron_nails/lib/view/view_proxy.rb</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>libs/IronNails.Library.dll</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>63a32766268aff19ca9518da98f84952fce676ae</id>
    </parent>
  </parents>
  <author>
    <name>Ivan Porto Carrero</name>
    <email>ivan@flanders.co.nz</email>
  </author>
  <url>http://github.com/casualjim/ironnails/commit/95d51db2e545f6feed536723968e47b02d375094</url>
  <id>95d51db2e545f6feed536723968e47b02d375094</id>
  <committed-date>2008-08-22T04:33:02-07:00</committed-date>
  <authored-date>2008-08-22T04:33:02-07:00</authored-date>
  <message>We now have the ability to use subviews with their presenters</message>
  <tree>f048286c3a69fadb01ef0e4fa79abcdc59cb608a</tree>
  <committer>
    <name>Ivan Porto Carrero</name>
    <email>ivan@flanders.co.nz</email>
  </committer>
</commit>
