Permalink
Browse files

View(MainWindow)の変更

  • Loading branch information...
nakaji committed Jun 30, 2011
1 parent 383327f commit 7420464cd523e9e1d6c5d3380365c090030d5bd3
Showing with 1 addition and 7 deletions.
  1. +1 −1 MVVMSample/MainWindow.xaml
  2. +0 −6 MVVMSample/MainWindow.xaml.cs
@@ -23,6 +23,6 @@
<TextBox Name="heightText" Text="{Binding Path=Height}" Grid.Column="1" Margin="10" />
<TextBox Name="weightText" Text="{Binding Path=Weight}" Grid.Row="1" Grid.Column="1" Margin="10" />
<TextBlock Name="bmiText" Text="{Binding Path=Bmi}" Grid.Row="2" Grid.Column="1" Margin="10" VerticalAlignment="Center" />
<Button Content="計算" Grid.Row="3" Name="calcButton" Grid.ColumnSpan="2" Margin="50,10,50,10" Click="calcButton_Click" />
<Button Content="計算" Grid.Row="3" Name="calcButton" Grid.ColumnSpan="2" Margin="50,10,50,10" Command="{Binding CalcCommand}" />
</Grid>
</Window>
@@ -11,11 +11,5 @@ public MainWindow()
{
InitializeComponent();
}
private void calcButton_Click(object sender, RoutedEventArgs e)
{
var viewModel = (BmiViewModel) DataContext;
viewModel.Calc();
}
}
}

0 comments on commit 7420464

Please sign in to comment.