Archiv für den Monat: Juli 2012

Slippery When Wet #7.1: Binding between XElement and ComboBox/ListBox Revisited

In Slippery When Wet #7: Binding between XElement and ComboBox/ListBox I wrote that the problem should be fixed with a hotfix from Microsoft. Meanwhile I’ve got the Hotfix installed on my System.

And the Hotfix solved the problem! So if you plan to use TwoWay binding between XElement objects and a ComboBox or ListBox get the Hotfix from Microsoft. According to the description the Hotfix should be included in a future software update. But in which update this fix will be included is not written there. So check the version numbers of the files listed in the description to see if you still need the Hotfix.

Note: According to the description installing the hotfix should not require a restart of the computer. But on the two Systems where we installed the Hotfix (one 32bit and one 64bit system) we had to restart both systems.

Slippery When Wet #7: Binding between XElement and ComboBox/ListBox

I proudly present to you the seventh in a infinite number of posts of “Slippery When Wet.” In these posts I show you a little bastard I stumbled on.

In Slippery When Wet #6: XPath and the Default Namespace I already ran in some problems with XML in .NET. And I’ve done it again!

For a dynamically built User Interface I’ve bound some controls to a XDocument tree that contained the data and the description of the types. The first controls (TextBox and a numeric Control) worked perfectly, so I was confident that the next controls would just be a routine work. So the next control I wanted to use was the ComboBox.

The data was shown as expected, but after changing the selection the new data was not saved. I’ve tried several changes in the binding (adding explicit two-way binding, setting the UpdateSourceTrigger to PropertyChanged) but the data was not updated when the selection changed. I’ve asked some guys in the office with more WPF experience, but they also saw no reason why the binding didn’t work. Even adding a Converter to check if the data types were not compatible gave me no clue. I’ve also asked on Stack Overflow but got no solution for my problem.

After asking Dr. Google the right question I’ve found these two entries in the MSDN Forum:
MSDN Forum: ComboBox that binds to XElement breaks in .NET 4 and
ComboBox and DataGridComboBoxColumn two-way data binding broken in .NET 4 with XLinq for the SelectedItem/SelectedItemBindings property
which guided me to the Hot Fix from Microsoft (The „TwoWay“ binding does not reflect changes when the property path of the binding refers to the Attribute or Element method of an XElement object in a .NET Framework 4.0-based WPF application).

So it looks like I’ve done it right this time but Microsoft didn’t. So now I’m waiting for getting the Hot Fix installed on my System to check if it works now.

Piwik in Version 1.8.2 erschienen

Es ist schon einige Zeit her, aber ich möchte trotzdem noch auf die neuen Piwik-Releases hinweisen.
Release 1.8 ist Anfangs Juni erschienen. Darin wurden 83 Tickets geschlossen. In den gleich anschliessend erschienen Releases 1.8.1 und 1.8.2 wurden nochmals 7 bzw. 1 Ticket geschlossen

Hier die wichtigsten Neuerungen der Releases 1.8.x:

  • Historische Ansicht der Daten
    Auf jeder Datenzeile (z.B. ein Keyword) kann nun mit einem Klick der Verlauf der Werte für diesen Eintrag begutachtet werden. So kann man z.B. verfolgen, wie sich die Zugriffe über ein Keyword entwickelt haben oder ob ein Browser an weniger verwendet wird.
  • Mehrere Datenzeilen vergleichen
    Die oben beschriebene Ansicht kann auch mit mehreren Datenzeilen verwendet werden. So können z.B. die Werte zweier Browser oder zweier Keywords verglichen werden.
  • Mehrere konfigurierbare Dashboards
    Es können zusätzliche Dashboards erzeugt werden, die den eigenen Wünschen angepasst werden können. Es können dabei alle Widgets eingesetzt werden.
  • Neue Reports:
    • Broswer Marktanteile (ohne Versionsnamen)
    • Vergleich Desktop – Mobile
    • Einstiegsseiten (Entry Page Titles)
    • Ausstiegsseiten (Exit Page Titles)
  • DoNotTrack Support
    Das HTTP-Header-Feld DoNotTrack wird unterstützt und ist per Default aktiviert.

Detailierte Beschreibungen und Beispielbilder zu den Neuerungen sind im Piwik Blog zu finden. Es wurden aber noch weitere Features implementiert sowie Fehler behoben. Diese sind auch im Blog beschrieben bzw. im Changelog aufgeführt.