Building a Windows 8 Metro App, Part 3: Listing 6

The Updated LayoutHeader Grid in MainPage.xaml

<Grid x:Name="LayoutHeader" Grid.ColumnSpan="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <StackPanel Grid.Column="1" Margin="0,8">
                <TextBlock FontSize="40">Daily Reader</TextBlock>
                <StackPanel Orientation="Horizontal">
                    <TextBlock FontSize="20">Feed URL:</TextBlock>
                    <TextBox x:Name="FeedUrl" MinWidth="450" Margin="4,0" FontSize="20"></TextBox>
                    <Button x:Name="FetchButton">Fetch</Button>
                    <Button x:Name="SetDefaultButton" Click="SetDefaultButton_Click">Set as default</Button>
                    <TextBlock FontSize="20"># Items</TextBlock>
                    <TextBox x:Name="NumFeeds" MinWidth="40" Margin="4,0" FontSize="20"></TextBox>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock x:Name="FeedTitle" VerticalAlignment="Center" Text="{Binding Path=Title}"
                       FontSize="32" Margin="56,0,0,0" />
                    <TextBlock x:Name="Cached" FontSize="20" FontStyle="Italic" 
                    Visibility="Collapsed">Cached</TextBlock>
                </StackPanel>
            </StackPanel>
  </Grid>

About the Author

Eric Vogel is a Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at [email protected].

comments powered by Disqus

Featured

  • Logistic Regression with Batch SGD Training and Weight Decay Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end program that explains how to perform binary classification (predicting a variable with two possible discrete values) using logistic regression, where the prediction model is trained using batch stochastic gradient descent with weight decay.

  • Dev Asks, and 7 Years Later Python in VS Code Delivers Django Unit Test Support

    "We are excited to announce support for one of our most requested features: you can now discover and run Django unit tests through the Test Explorer!"

  • OData Finally Ditches Old .NET Framework

    "The most disruptive change we are making in this release is dropping support for .NET Framework."

  • .NET MAUI, ASP.NET Core Polished in First Release Candidate for .NET 9

    Microsoft shipped the first release candidate for .NET 9, which is nearing feature completeness and production readiness in advance of its November debut.

Subscribe on YouTube