Logo Pastebin.fr
Pastebin

Retrouvez, créez et partagez vos snippets en temps réel.

interface waloo

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Caisse Pro v6.0"
        Height="860" Width="1280"
        WindowStartupLocation="CenterScreen"
        WindowState="Maximized"
        ResizeMode="CanResize"
        Background="#F1F5F9"
        FontFamily="Segoe UI">

    <Window.Resources>
        <Style TargetType="Button">
            <Setter Property="Height" Value="42"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="FontWeight" Value="SemiBold"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="Cursor" Value="Hand"/>
            <Setter Property="Margin" Value="6"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Border Background="{TemplateBinding Background}" CornerRadius="8">
                            <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style TargetType="TextBox">
    <Setter Property="Height" Value="38"/>
    <Setter Property="FontSize" Value="15"/>
    <Setter Property="FontFamily" Value="Segoe UI"/>
    <Setter Property="Padding" Value="8,4"/>
</Style>

<Style TargetType="ComboBox">
    <Setter Property="Height" Value="38"/>
    <Setter Property="FontSize" Value="15"/>
    <Setter Property="FontFamily" Value="Segoe UI"/>
</Style>

<Style TargetType="DatePicker">
    <Setter Property="Height" Value="38"/>
    <Setter Property="FontSize" Value="15"/>
    <Setter Property="FontFamily" Value="Segoe UI"/>
</Style>

    </Window.Resources>

    <Grid Margin="20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!-- HEADER -->
        <Border Background="#0F172A" Padding="18" CornerRadius="12">
            <TextBlock Text="💼 GESTION DE CAISSE – AGENCE D’ASSURANCE"
                       Foreground="White"
                       FontSize="22"
                       FontWeight="Bold"/>
        </Border>

        <!-- FORM -->
        <Border Grid.Row="1" Background="White" CornerRadius="12" Padding="15" Margin="0,15,0,10">
            <WrapPanel>
                <StackPanel Margin="6"><TextBlock Text="Assuré"/><TextBox x:Name="AssureBox" Width="200"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Police"/><TextBox x:Name="PoliceBox" Width="130"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Quittance"/><TextBox x:Name="QuittanceBox" Width="130"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Prime (€)" FontWeight="Bold"/><TextBox x:Name="PrimeBox" Width="110" Background="#ECFEFF"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Effet"/><DatePicker x:Name="DateEffetBox" Width="130"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Échéance"/><DatePicker x:Name="DateEcheanceBox" Width="130"/></StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Paiement"/>
                       <ComboBox x:Name="PaiementBox" Width="130" SelectedIndex="0">
                            <ComboBoxItem Content="Espèce"/>
                            <ComboBoxItem Content="Chèque"/>
                            <ComboBoxItem Content="Virement"/>
                            <ComboBoxItem Content="TPE"/>
                            <ComboBoxItem Content="MyStar"/>
                            <ComboBoxItem Content="Prelevement"/>
                            <ComboBoxItem Content="Traite"/>
                       </ComboBox>
                </StackPanel>
                <StackPanel Margin="6"><TextBlock Text="Type"/>
                      <ComboBox x:Name="TypeBox" Width="150" SelectedIndex="0">
                         <ComboBoxItem Content="NOUVELLE AFFAIRE"/>
                        <ComboBoxItem Content="AVENANT"/>
                        <ComboBoxItem Content="TERME"/>
                     </ComboBox>
                </StackPanel>
            </WrapPanel>
        </Border>

        <!-- GRID -->
 <DataGrid x:Name="RecetteGrid" Grid.Row="2"
          AutoGenerateColumns="False"
          RowHeight="38"
          FontSize="14"
          Background="White"
          GridLinesVisibility="All"
          VerticalGridLinesBrush="#CBD5E1"
          HorizontalGridLinesBrush="#E5E7EB"
          RowBackground="White"
          AlternatingRowBackground="#F8FAFC"
          BorderBrush="#CBD5E1"
          BorderThickness="1"
          SelectionMode="Single">

    <!-- 🔽 AJOUT ICI -->
    <DataGrid.Resources>
        <Style TargetType="DataGridColumnHeader">
            <Setter Property="FontWeight" Value="SemiBold"/>
            <Setter Property="FontSize" Value="14"/>
            <Setter Property="Background" Value="#E2E8F0"/>
            <Setter Property="Foreground" Value="#0F172A"/>
            <Setter Property="Padding" Value="12,8"/>
            <Setter Property="BorderBrush" Value="#CBD5E1"/>
            <Setter Property="BorderThickness" Value="0,0,1,1"/>
        </Style>
    </DataGrid.Resources>
            <DataGrid.Columns>
                <DataGridTextColumn Header="Assuré" Binding="{Binding Assure}" Width="2*"/>
                <DataGridTextColumn Header="Police" Binding="{Binding Police}" Width="*"/>
                <DataGridTextColumn Header="Quittance" Binding="{Binding Quittance}" Width="*"/>
                <DataGridTextColumn Header="Prime (€)" Binding="{Binding Prime}" Width="100"/>
                <DataGridTextColumn Header="Paiement" Binding="{Binding ModalitePaiement}" Width="120"/>
                <DataGridTextColumn Header="Date Effet" Binding="{Binding DateEffet}" Width="120"/>
                <DataGridTextColumn Header="Type" Binding="{Binding Type}" Width="140"/>

            </DataGrid.Columns>
        </DataGrid>

        <!-- COMPTA -->
        <Border Grid.Row="3" Background="#020617" CornerRadius="10" Padding="15" Margin="0,12,0,12">
            <UniformGrid Columns="3">
                <StackPanel HorizontalAlignment="Center">
                    <TextBlock Text="THÉORIQUE" Foreground="#94A3B8"/>
                    <TextBlock x:Name="TxtTotalTheorique" FontSize="22" FontWeight="Bold" Foreground="#38BDF8"/>
                </StackPanel>
                <StackPanel HorizontalAlignment="Center">
                    <TextBlock Text="CAISSE RÉELLE" Foreground="#94A3B8"/>
                    <TextBox x:Name="TxtCaisseManuelle" Width="120" Height="32"/>
                </StackPanel>
                <StackPanel HorizontalAlignment="Center">
                    <TextBlock Text="ÉCART" Foreground="#94A3B8"/>
                    <TextBlock x:Name="TxtDesequilibre" FontSize="22" FontWeight="Bold"/>
                </StackPanel>
            </UniformGrid>
        </Border>

        <!-- ACTIONS -->
        <UniformGrid Grid.Row="4" Columns="6">
            <Button x:Name="AddBtn" Content="➕ AJOUTER" Background="#2563EB" Foreground="White"/>
            <Button x:Name="EditBtn" Content="✏️ MODIFIER" Background="#475569" Foreground="White"/>
            <Button x:Name="DeleteBtn" Content="🗑 SUPPRIMER" Background="#DC2626" Foreground="White"/>
            <Button x:Name="SearchBtn" Content="🔍 CHERCHER" Background="#64748B" Foreground="White"/>
            <Button x:Name="ReportBtn" Content="📄 EXPORT PDF" Background="#059669" Foreground="White"/>
            <Button x:Name="CloseBtn" Content="🔒 CLÔTURER" Background="#020617" Foreground="White"/>
        </UniformGrid>
    </Grid>
</Window>

Créé il y a 2 semaines.

Rechercher un Pastebin

Aucun paste trouvé.