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

Silverlight Discussion :

problème utilisation navigation:frame


Sujet :

Silverlight

Mode arborescent

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2011
    Messages
    216
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Octobre 2011
    Messages : 216
    Par défaut problème utilisation navigation:frame
    bonjour,

    j' ai un problème au niveau de ma Frame, je ne peut pas charger de page, voici mon code :

    Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
                <navigation:Frame x:Name="ContentFrame" 
                                  Source="/Vue/graphep.xaml" NavigationFailed="contenu_NavigationFailed">
                    <navigation:Frame.UriMapper>
                        <uriMapper:UriMapper>
                            <uriMapper:UriMapping Uri="" MappedUri="/Vue/graphep.xaml"/>
                            <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Vue/{pageName}.xaml"/>
                        </uriMapper:UriMapper>
                    </navigation:Frame.UriMapper>
                </navigation:Frame>

    en fichier joint l' arboresence de mon projet.

    j' ai également testé ca :

    Code xaml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
                <navigation:Frame x:Name="ContentFrame" 
                                  Source="/graphep" NavigationFailed="contenu_NavigationFailed">
                    <navigation:Frame.UriMapper>
                        <uriMapper:UriMapper>
                            <uriMapper:UriMapping Uri="" MappedUri="/graphep"/>
                            <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Vue/{pageName}.xaml"/>
                        </uriMapper:UriMapper>
                    </navigation:Frame.UriMapper>
                </navigation:Frame>

    voici le code xaml complet:

    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
    <UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
                 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  
                 x:Class="test_appli.MainPage"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
                 xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 mc:Ignorable="d" d:DesignHeight="900" d:DesignWidth="1200">
     
     
        <Grid x:Name="LayoutRoot" Background="White">
            <Border Height="135" HorizontalAlignment="Left" Margin="0,0,0,765" Name="border_haut" VerticalAlignment="Bottom" Width="1200" Background="#FFCE3A3A">
                <Grid>
                    <ComboBox Height="30" Name="cbxContrat" Margin="49,52,902,53" />
                    <ComboBox Margin="512,51,0,0" Name="cbxAnnee" Height="31" VerticalAlignment="Top" HorizontalAlignment="Left" Width="168" IsEnabled="False" />
                    <Button Content="Valider" Height="71" HorizontalAlignment="Left" Margin="970,31,0,0" Name="btnvalider" VerticalAlignment="Top" Width="135" />
                </Grid>
            </Border>
     
            <Border Height="715" HorizontalAlignment="Left" Margin="0,135,0,50" Name="border_host" Width="1200" Background="#FF549AB1" VerticalAlignment="Bottom" >
     
                <navigation:Frame x:Name="ContentFrame" 
                                  Source="/graphep" NavigationFailed="contenu_NavigationFailed">
                    <navigation:Frame.UriMapper>
                        <uriMapper:UriMapper>
                            <uriMapper:UriMapping Uri="" MappedUri="/graphep"/>
                            <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Vue/{pageName}.xaml"/>
                        </uriMapper:UriMapper>
                    </navigation:Frame.UriMapper>
                </navigation:Frame>
     
            </Border>
     
            <Border Height="50" HorizontalAlignment="Left" Margin="0,0,0,0" Name="border_bas" VerticalAlignment="Bottom" Width="1200" Background="#FF509D50">
                <sdk:Label Height="50" HorizontalAlignment="Left" Margin="319,0,0,0" Name="lblposition" VerticalAlignment="Top" Width="673" />
            </Border>
        </Grid>
     
    </UserControl>

    pouvez vous m' aider please ?

    Merci
    Images attachées Images attachées  

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [Tomcat][Spring] Problème utilisation mémoire
    Par Wutintin dans le forum Hibernate
    Réponses: 12
    Dernier message: 08/09/2005, 14h57
  2. [JSTL] [EL] Problème utilisation <c:out>
    Par XavierL dans le forum Taglibs
    Réponses: 7
    Dernier message: 14/08/2005, 20h12
  3. (Problème) Utilisation de l'API mySQL [Delphi 2005 Perso]
    Par will-scs dans le forum Bases de données
    Réponses: 2
    Dernier message: 08/08/2005, 18h26
  4. [JAR]Problème utilisation manifest et jar
    Par doudine dans le forum Eclipse Java
    Réponses: 6
    Dernier message: 07/01/2005, 10h21
  5. Utiliser les frames
    Par laury dans le forum Composants VCL
    Réponses: 5
    Dernier message: 10/05/2003, 10h14

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