Month: June 2013

28 Day Ab Workout – Week 4

28 Day Ab Workout – Week 4

Week 4 is in the books and I’ve completed the 28 day workout. No more soreness after the workouts, which is nice. It wasn’t too bad since there are just 4 workouts per week and they generally last around 40 minutes. Was it worth it? I’m glad I did it but it’s hard to see visual results after only 28 days. I did drop 6 pounds to 189, so that’s nice to be a little lighter, leaner and stronger. I’ll probably pick it up again after the 4th weekend. Off to Jamaica in 3 days!

Upgrading to LongListSelector

Upgrading to LongListSelector

The Windows Phone 8 SDK officially ships with the LongListSelector control.  Microsoft is encouraging developers to use this control instead of the ListBox.  ListBox is still supported, but the control is not optimized for the phone experience.  Read more about the features of the LongListSelector here: http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/05/23/windows-phone-8-xaml-longlistselector.aspx

It’s fairly easy to upgrade your ListBox references to LongListSelector.  You can simply replace ListBox with phone:LongListSelector in your xaml.  There is one thing that Microsoft messed up on though and that is not making SelectedItem a dependency property.  If you’re using MVVM with TwoWay binding, you’re hosed with this out the box control.  Never fear though, the class can be extended to allow for TwoWay binding.  The following is the full implementation of the custom class:

publicclass LongListSelector : Microsoft.Phone.Controls.LongListSelector { public LongListSelector() { SelectionChanged += LongListSelector_SelectionChanged; } void LongListSelector_SelectionChanged(object sender, SelectionChangedEventArgs e) { SelectedItem =base.SelectedItem; } publicstaticreadonly DependencyProperty SelectedItemProperty = DependencyProperty.Register( SelectedItem, typeof(object), typeof(LongListSelector), new PropertyMetadata(null, OnSelectedItemChanged) ); privatestaticvoid OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { var selector = (LongListSelector)d; selector.SetSelectedItem(e); } privatevoid SetSelectedItem(DependencyPropertyChangedEventArgs e) { base.SelectedItem = e.NewValue; } publicnewobject SelectedItem { get { return GetValue(SelectedItemProperty); } set { SetValue(SelectedItemProperty, value); } } }

28 Day Ab Workout – Week 3

28 Day Ab Workout – Week 3

The workouts this week seem much easier than the previous 2 weeks.  The 1st week was the worst, and the 2nd was a little better (not sore).  This one I wasn’t sore at all, except just a little bit in the chest.  The cool thing is that after the last workout of the week, your abs are sore for about 3 days (at least mine were).  It’s cool because there’s no sit ups, so all of the other exercises are working your core and you don’t even realize it.

My arms are already noticeably bigger, and my abs are a little more defined, just after 3 weeks.  Pretty cool.

I’ll give you one last update after week 4 is done.