I have one question.
I don’t want to duplicate my code, so I see that I can use: User Control / Local The problem is that when I use local, I can just call the file, which is in the same folder as this one, and I want to call your file in another folder.
Example:
in my layout /_Menu.xaml
<UserControl
x:Class="TeysserWP8.Views.misc._menuLayout"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:TeysserWP8.Views.misc"
xmlns:drawerLayout="using:DrawerLayout"
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>
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0"/>
<GradientStop Color="#FF563AA0" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Button Command="{Binding MyDietViewCommand}" Content="Mes Régimes" Margin="10,21,0,502" Width="245"></Button>
<Button Command="{Binding DietStoreViewCommand}" Content="Régimes Store" Margin="10,89,0,434" Width="245"></Button>
<Button Command="{Binding LogoutViewCommand}" Content="Déconnexion" Margin="10,502,0,21" Width="245"></Button>
</Grid>
</UserControl>
in my store /Show.xaml
<Grid>
some code
</Grid>
<local:/Layout/_Menu /> <-- i Want something like this but its not work.
If the _Menu.xaml file was in the same folder as Show.xaml (Store Folder), it will work.
Could you help me? Thanks.
source
share