Bonjour,
J'ai besoin d'un petit coup de pouce sur XAML SVP. Je n'arrive pas à déclarer en XAML une classe créée pourtant dans le même projet et namespace que mon formulaire ! Ma classe est 'TilePanel'. Projet / Namespace = 'WPF_Nice_Layout'
<?Mapping XmlNamespace="WPF_Nice_Layout" ClrNamespace="WPF_Nice_Layout" ?>
<Window x:Class="WPF_Nice_Layout.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:myapp="clr-namespace:WPF_Nice_Layout"
Title="WPF_Nice_Layout"
Height="300"
Width="300"
>
<StackPanel Orientation="Vertical">
<Slider Name="_slider" />
<myapp.TilePanel ChildSize="{Binding ElementName=_slider, Path=Value}">
<Border Background="Red" Margin="4" />
<Border Background="Green" Margin="4" />
</myapp.TilePanel>
</StackPanel>
</Window>
L'erreur de compilation est : myApp.TilePanel doesn't exist in the namespace "schemas.microsoft.com/winfx/2006/xaml/presentation" !
Merci pour votre aide,
Nd.
Partager