Metro

Column-Styled GridView

Today I had to figure out a way to make a single-row, column-styled GridView that looked like this: Some minor design improvements are still to be made, but the hardest part is done. Particulary tricky was, that the items didn’t want to Stretch the height. (I wanted to avoid hard-coding the height, because of different screen resolutions.) Finally I’m using a GridView – I archived almost the same results with a ListView, but the ScrollBar was gone.. Maybe this is possible with a ListBox as well, but maybe I want to integrate this with a SemanticZoom control later, which requires ListView or GridView. Here’s a screenshot of the XAML code: You can copy/paste the following: <GridView ItemsSource=”{Binding Mensen}” SelectionChanged=”GridView_SelectionChanged”>                 <GridView.ItemTemplate>                     <DataTemplate>                         <Grid Background=”Green” Width=”250″>                             <Grid.RowDefinitions>                                 <RowDefinition Height=”Auto” />                                 <RowDefinition Height=”*” />                             </Grid.RowDefinitions>                             <TextBlock Grid.Row=”0″ Text=”{Binding Titel}” Foreground=”{StaticResource ListViewItemOverlayForegroundThemeBrush}” Style=”{StaticResource TitleTextStyle}” Height=”60″ Margin=”15,0,15,0″…

Root

WikiSearch – a quick and dirty Windows 8 Metro App

I’ve been playing around with Windows 8 Metro development the last months and one day I did a quick Wikipedia App that integrates into the Search. The first version took me – no joke – less than 20 minutes, cause it’s just so easy! All you have to do to integrate into the search is to add this method to your App.xaml.cs: protected override void OnSearchActivated(SearchActivatedEventArgs args) { base.OnSearchActivated(args); if (mainPage == null) mainPage = new MainPage(); Window.Current.Content = mainPage; mainPage.OpenWiki(args.QueryText); Window.Current.Activate(); } After that go into Package.appxmanifest, switch to the Declarations tab and add a ‘Search’ declaration. mainPage.OpenWiki() would be a method that composes a Wikipedia-Search-URL from the queryText and tells a WebView to navigate to it. (webView.Source = new Uri(“http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=” + “queryString”);) I won’t go into any more detail at this point, but that is all the magic you have to do. Today I added multiple-language support to…

Life

Von verpassten und verspäteten Zügen

That was weird. Der Tag fing ganz normal an: Ich stand mäßig begeistert um 06:15 auf, um nach Aachen zu fahren. Mein Bus sollte um 06:47 kommen. In Düsseldorf sollte ich umsteigen uns nach 1:50h Aachen West erreichen. Soweit stellte das kein Problem dar. Beim Frühstück (06:35) musste ich dann feststellen, dass ich ein Zeitproblem hatte. Durch das Zeitproblem verringerte sich das Motivationsproblem. Allerdings nicht genug, sodass der Bus ohne mich zum S-Bahnhof fuhr. Der Haken an der Sache: die nächste Verbindung dauerte 2:05 (S8 bis Mönchengladbach, dann weiter nach Aachen – alles S-Bahnen). Zu dem Zeitpunkt schwer getroffen von diesem herben Rückschlag, rasierte ich mich noch zwei Mal und nahm anschließend den Bus um 07:07. Wie ich angekommen war in Millrath S-Bahnhof musste ich feststellen, dass offenbar wenige Sekunden zuvor eine S8 in Schrittgeschwindigkeit den Bahnhof durchfahren hatte. Als wäre das nicht schon ungewöhnlich genug, näherte sich einige Minuten…

Root

Von unfertigen Apps und Aachen

Bisher habe ich ja eher nicht über private Dinge gebloggt. Ich starte jetzt mal einen Versuch, vielleicht ändert sich das ja 😉 Also machen wir es chronologisch. Im letzten Post (der leider schon eine ganze Weile in der Vergangenheit liegt) habe ich ja demonstriert wie man mit der Kinect Auto fährt… Leider gibt es einen gewaltigen long-tail von dummen und oder faulen Usern, die es als befriedigend empfinden unter die beiden Videos zu trollen… Es ist ärgerlich, aber wahrscheinlich muss man einfach Mitleid mit diesen.. Usern empfinden. Jedenfalls habe ich mich entschlossen, diesen Trollen etwas entgegenzusetzen. Die Rede ist von einem weiteren Demovideo mit mehr Background-Info. Ein großer Makel an KinDriver war bisher die nur mäß funktionierende Sprachsteuerung. In der jetzt aktuellen Version ist sie unverändert implementiert, wird jedoch ergänzt durch eine WCF-Fernsteuerung in Form einer Windows Phone 7 App. Programmiert ist es schon. Getestet im Emulator.. Man kann sagen…

Root

Coming up next

I haven’t bee posting now for quite a while, but that does not mean there’s no progress.. The Touch-table had a successful appearance at the open day in my school and is now back in his place in the living room. The school has started a project to build a multitouch (LLP) wall. Sadly not as big as I would’ve done it, but still bigger than our TV-screen =P Yesterday we started to build the prototype. Besides that I have now a MS Kinect. I have not installed any Kinect-related software, so it only works with a modified CCV from the NUI-forum for now. As you may know Microsoft has announced to release a Kinect-SDK — I’m looking forward to work with that 😉 What else? Well there’s a couple of outstanding tasks such as re-coding sone of my self-made WPF-applications for the table (or the wall), a new ethernet…

Root

Hello World

Geschafft Naja, irgendwie auch nicht. Da sitzt man nun in der Klemme. Schreibt den ersten Post obwohl man gerade garnicht kreativ ist. Und das alles bloß, weil man einen leeren Blog so schlecht konfigurieren kann :/ Aber das sollte reichen. Jetzt geht’s erstmal ans ausprobieren =) Marzipaneis.