Projekt-Anfragen: Tel: 07022/9319004 info@CodeDocu.de Software Entwicklung in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

UWP, XAML: Basis Tabelle 10 Reihen 10 Spalten

 

Wer unter XAML mit Tabellen Grid arbeiten möchte, dem kann dieses kleine Tabellengrid als XAML Demo-Code hilfreich sein.

Man muss den unteren XAML Block nur zum Testen in eine eigene XAML Seite einbetten und kann dann mit den Einstellungen eines Grids arbeiten.

Sinnvoll ist dieser XAML Code zum Testen, wie man die Scrollviewer einstellen kann, damit diese die gewünschten Daten richtig anzeigen

 

 

Zur Laufzeit zeigt sich das Beispiel-Grid nicht komplett sichtbar, sondern es sind absichtlich Bereich nur über den automatischen ScrollViewer und den automatisch Sichtbaren Scrollbar erreichbar

 

 

<Page

    x:Class="uwp_TestGrid.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:local="using:uwp_TestGrid"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    mc:Ignorable="d" FontFamily="Arial" FontSize="20">

 

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

        <ScrollViewer Background="Black"   VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" >

            <Grid x:Name="gridTest" Background="#f9f9f9" Margin="20"  >

                <Grid.ColumnDefinitions>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                    <ColumnDefinition Width="200"/>

                </Grid.ColumnDefinitions>

                <Grid.RowDefinitions>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"  />

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                    <RowDefinition Height="200"/>

                </Grid.RowDefinitions>

 

 

 

                <Border Grid.Row="0" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="1" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="2" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="3" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="4" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="5" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="6" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="7" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="8" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="9" Grid.Column="0"  Grid.ColumnSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

 

                <Border Grid.Row="0" Grid.Column="0"  Grid.RowSpan ="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="1"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="2"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="3"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="4"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="5"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="6"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="7"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="8"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

                <Border Grid.Row="0" Grid.Column="9"  Grid.RowSpan="10" BorderThickness="1" BorderBrush="Black" ></Border>

 

                <TextBlock Grid.Row="0" Grid.Column="0" Text="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="1" Grid.Column="0" Text="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="2" Grid.Column="0" Text="2" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="3" Grid.Column="0" Text="3" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="4" Grid.Column="0" Text="4" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="5" Grid.Column="0" Text="5" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="6" Grid.Column="0" Text="6" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="7" Grid.Column="0" Text="7" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="8" Grid.Column="0" Text="8" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="9" Grid.Column="0" Text="9" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

 

                <TextBlock Grid.Row="0" Grid.Column="0" Text="0" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="1" Text="1" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="2" Text="2" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="3" Text="3" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="4" Text="4" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="5" Text="5" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="6" Text="6" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="7" Text="7" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="8" Text="8" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

                <TextBlock Grid.Row="0" Grid.Column="9" Text="9" HorizontalAlignment="Center" VerticalAlignment="Center" ></TextBlock>

 

            </Grid>

        </ScrollViewer>

    </Grid>

</Page>

 

 

 

Betrifft: Windows 10 UWP, XAML, WPF, Win8.1

Mobile
»
Access: Emails direkt aus der Datenbank senden
»
Access: Export Access Tabelle direkt in Excel
»
Access, vba: Import einer Textdatei mit Umlauten und Trennzeichen
»
Access: Import Datei auf UTF-8 einstellen, Umlaute in Importspezifikationen
»
Access: Datum erhöhen oder verkleinern
»
Microsoft Access: Feedback und Vorschläge für Microsoft Access einreichen
»
Wie sortiert man einen Access Bericht
»
Wie erstellt man eine einfache Ribbonbar unter Microsoft Access 20007-2016
»
Einbinden von Pivot-Auswertungen unter Access 2016
»
Access: HTML Emails automatisch versenden mit Microsoft Access

.

Jobs, Projekte, Angebote für Freiberufler, Selbstständig an Info@CodeDocu.de