IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Windows Presentation Foundation Discussion :

ToolBar : Item non désiré en dernier


Sujet :

Windows Presentation Foundation

  1. #1
    Membre du Club
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Octobre 2003
    Messages
    41
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 41
    Points : 55
    Points
    55
    Par défaut ToolBar : Item non désiré en dernier
    Bonjour à tous,


    Sans doute que cette question a déjà été traité, mais je n'ai pas réussi à trouver de réponse ... sans doute à cause d'une mauvaise formulation ...

    Mon problème est que j'ai toujours l'item ci-dessous que je souhaite masquer.
    Comment faire ?

    Nom : Item non désiré.png
Affichages : 174
Taille : 15,1 Ko

    Code XAML : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    <!-- TOOLS BAR -->
            <ToolBar Name="toolBar" ToolBarTray.IsLocked="True" Grid.Row="0" Margin="4" Cursor="Hand" Background="#1E2E2E" HorizontalContentAlignment="Stretch" >
                <Button Name="btnNewProject" Click="btnNewProject_Click" ToolTip="Créer un nouveau projet de test" Cursor="Hand" VerticalAlignment="Stretch" Margin="4" >
                    <Grid>
                        <fa:ImageAwesome Icon="Folder" Height="22" Foreground="LightGray" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" />
                        <fa:ImageAwesome Icon="Plus" Height="8" Foreground="Blue" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="4" />
                    </Grid>
                </Button>
                <Separator Margin="4" Name="sepaToolBar" />
                <Button Name="btnOpenProject" Click="btnOpenProject_Click" ToolTip="Ouvrir un projet de test existant" Cursor="Hand" >
                    <fa:ImageAwesome Icon="FolderOpen" Height="22" Foreground="LightGray" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" />
                </Button>
                <Button Name="btnSaveProject" Click="btnSaveProject_Click" ToolTip="Sauvegarder le projet de test" Cursor="Hand" >
                    <fa:ImageAwesome Icon="Save" Height="22" Foreground="LightGray" HorizontalAlignment="Center" VerticalAlignment="Top" />
                </Button>
                <Button Name="btnSaveAsProject" Click="btnSaveAsProject_Click" ToolTip="Sauvegarder le projet de test sous ..." Cursor="Hand" >
                    <Grid>
                        <fa:ImageAwesome Icon="Save" Height="22" Foreground="LightGray" HorizontalAlignment="Center" VerticalAlignment="Top" />
                        <fa:ImageAwesome Icon="EllipsisH" Height="5" Foreground="Blue" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,10,6" />
                    </Grid>
                </Button>
     
                <ToggleButton Name="btnLunchTest" Click="btnLunchTest_Click" ToolTip="Lancer le test" Cursor="Hand" Margin="100,4,4,4" HorizontalAlignment="Right" VerticalAlignment="Center" >
                    <fa:ImageAwesome Icon="PlayCircleOutline" Height="22" Foreground="Orange" HorizontalAlignment="Center" VerticalAlignment="Top" />
                </ToggleButton>
                <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1" Margin="60,4,4,4" >
                    <Button Name="btnRefreshPorts" Click="btnRefreshPorts_Click" Grid.Column="3" Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="0" Cursor="Hand" Margin="4">
                        <fa:ImageAwesome Icon="Refresh" Height="22" Foreground="LightGray" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="4" />
                    </Button>
                    <Label Content="Port COM :" Foreground="White" Margin="2" VerticalAlignment="Center" />
                    <ComboBox Name="cbbPortCom" BorderBrush="DarkGray" Background="Black" Grid.Column="2" Cursor="Hand" SelectionChanged="CbbPortCom_SelectionChanged" VerticalAlignment="Center" Margin="4" />
                </StackPanel>
                <Grid Name="grdConfigProjet">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <!-- Client / Produit -->
                    <Label Content="Client :" Foreground="White" Margin="2" VerticalAlignment="Center" />
                    <ComboBox Name="cbbClients" Grid.Column="1" MinWidth="100" Cursor="Hand" ItemsSource="{Binding}" ItemTemplate="{StaticResource LIbelleDataTemplate}" SelectionChanged="CbbClients_SelectionChanged" VerticalAlignment="Center" Margin="2" />
                    <Label Content="Produit :" Grid.Column="2" Foreground="White" Margin="2" VerticalAlignment="Center" />
                    <ComboBox Name="cbbProduits" Grid.Column="3" MinWidth="100" Cursor="Hand" ItemsSource="{Binding}" ItemTemplate="{StaticResource LIbelleDataTemplate}" SelectionChanged="CbbProduits_SelectionChanged" VerticalAlignment="Center" Margin="2" />
                    <!-- Speed Com -->
                    <Label Content="Vitesse :" Grid.Column="4" Foreground="White" Margin="2" VerticalAlignment="Center" />
                    <ComboBox Name="cbbSpeedCom" Grid.Column="5" SelectionChanged="cbbSpeedCom_SelectionChanged" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="2" />
                </Grid>
            </ToolBar>

    Merci à ceux qui savent et désolé si c'est une question stupide

  2. #2
    Membre du Club
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Octobre 2003
    Messages
    41
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 41
    Points : 55
    Points
    55
    Par défaut
    Personne ne sais comment retirer ce truc ?

  3. #3
    Membre éprouvé Avatar de WDKyle
    Homme Profil pro
    Analyste-Programmeur
    Inscrit en
    Septembre 2008
    Messages
    1 200
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Analyste-Programmeur

    Informations forums :
    Inscription : Septembre 2008
    Messages : 1 200
    Points : 962
    Points
    962
    Par défaut
    Bonjour,

    Peut-être en modifiant le style/template initial.

  4. #4
    Membre du Club
    Homme Profil pro
    Développeur .NET
    Inscrit en
    Octobre 2003
    Messages
    41
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 51
    Localisation : France, Ain (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur .NET
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 41
    Points : 55
    Points
    55
    Par défaut
    Citation Envoyé par WDKyle Voir le message

    Peut-être en modifiant le style/template initial.

    Merci pour ta réponse, pas évident de trouver les bonnes valeurs, du coup, je suis passé sur une Grid ...

Discussions similaires

  1. [ACCESS 2003] arrêt non désiré dans le code
    Par Golzinne dans le forum VBA Access
    Réponses: 2
    Dernier message: 10/02/2006, 00h24
  2. [forms 6i] CLEAR_FORM + item non réinitialisé
    Par Magnus dans le forum Oracle
    Réponses: 4
    Dernier message: 28/12/2005, 16h57
  3. [XSLT]Formatage de mon html non désiré
    Par Thanos76 dans le forum XSL/XSLT/XPATH
    Réponses: 5
    Dernier message: 25/06/2005, 13h16
  4. Effet secondaire non désiré de "float"
    Par davcha dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 21/06/2005, 18h33
  5. [JLabel] Redimensionnement auto non désiré
    Par SamRay1024 dans le forum Agents de placement/Fenêtres
    Réponses: 11
    Dernier message: 21/05/2004, 19h13

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo