Commanding within DataTemplates in MVVM!

A quick post about setting commands within DataTemplates when using the MVVM pattern! When you are inside a DataTemplate the DataContext is changed to the  the current item, so to access the command you will need to use the “relative source” Something like <Button Content=”Delete” Width=”Auto” Command=”{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ItemsControl}}}” CommandParameter=”{Binding}”> Hope this […]

Save some bucks on AWS with these pointers(Part 1)

Are you sure your ISV has kept these simple pointers in mind when deploying your multi-module app on AWS?? Instance Addressing All Amazon EC2 instances are assigned two IP addresses at launch: a private address (RFC 1918) and a public address that are directly mapped to each other through Network Address Translation (NAT). Private addresses […]

Do you want to Stop or Terminate your EC2 instance?? What happens to your backup??

So you are done for the day and stop your EC2 Instance. But are you sure you want to “stop” and not “terminate” it? What’s the difference? Stop You can stop an Amazon EBS-backed instance, but not an Amazon S3-backed instance. Stopping causes the instance to stop running (its status goes from running to stopping […]