Contents tagged with XAML

  • Two-Way Binding and Deactivating Windows Phone Apps

    I'm not 100% sure on this, but for Windows Phone development it seems like if you have a textbox with two-way binding, it's not guaranteed to hit the setter for your property if you exit the app. At least, this is what I figured after the n-th time debugging my app, which was working fine if you left the page normally, but was not persisting changes to database if the app was exited via the … more

  • Windows Phone Dev: Multiple DataTemplates In One ListBox

    I've been putting the finishing touches on Wuxie, and one of the elements I needed was an Achievements list, with a different display for locked and unlocked achievements. While I could have written a whole bunch of converters to detect the appropriate settings, etc; a much cleaner way I came across was to implement a DataTemplateSelector, which essentially serves different Data Templates … more

  • Windows Phone 7 ListBoxItem Full Horizontal Fill

    Dear Windows Phone 7, Why is it not enough to set the HorizontalContentAlignment to Stretch on ListBox.ItemContainerStyle in order to allow my ListBoxItems stretch and fill the available space? It apparently works with Silverlight 3. <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> < … more

  • 1