none
faire apparaitre une line dans un gridviex vs2017 uwp RRS feed

  • Question

  • bonjour

     je suis entrain d'écrire un code qui devrait me permettre de tracer des lignes horizontale dans un grid mais elles n’apparaissent pas lorsque je débogue le projet

    pourrirez vous m’aider à corriger ce problème un grand merci d'avance je met la copie de mon code ci dessous

    <Page
        x:Class="App1_EDL_SORTIE_BETA_3.Cles"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:App1_EDL_SORTIE_BETA_3"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    
        <Grid>
            <TextBlock x:Name="titre_cles" Text="Clés" FontSize="48" Margin="20,0,0,0" FontWeight="Bold" TextDecorations="Underline" Foreground="#FF00CBFF"/>
            <Button x:Name="btn_retour" Foreground="Black" FocusVisualPrimaryBrush="#FFFF0062" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="180" Height="60" Content="Retout Menu" FontSize="24" Click="btn_retour_Click" />
    
            <Grid BorderBrush="#FF4000FF" BorderThickness="2
                  " Margin="288,272,332,275">
                <Grid.ColumnDefinitions >
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
    
                <Grid.RowDefinitions>
                    <RowDefinition Height="40"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="40"/>
                </Grid.RowDefinitions>
    
                <StackPanel>
                    <TextBlock Text="Nom" 
                               FontSize="24" 
                               HorizontalAlignment="Center" 
                               VerticalAlignment="Center"
                               FontWeight="Bold" />
                   
                </StackPanel>
    
                <StackPanel Grid.Column="1">
                    <TextBlock Text="Type" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" />
    
                </StackPanel>
    
                <StackPanel Grid.Column="2">
                    <TextBlock Text="Nombre" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" />
    
    
                </StackPanel>
    
                <StackPanel Grid.Column="3">
                    <TextBlock Text="etat" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" />
                </StackPanel>
    
                <Canvas Grid.ColumnSpan="4">
                    <Line x:Name ="ligne1"
                  X2="871"
                  Y1="40"
                 Y2="40"
                  StrokeThickness="1" Fill="#FF06FF00" />
    
                </Canvas>
    
            </Grid>
            <Border BorderBrush="Black" HorizontalAlignment="Left" Height="100" Margin="502,272,0,0" VerticalAlignment="Top" Width="100"/>
    
    
    
    
        </Grid>
    </Page>
    

    lundi 20 août 2018 08:46

Réponses