Page 1 of 1

Director Plugin and ListBox

Posted: 11 Feb 2014, 14:56
by mofo7777
Hello.

I'm trying to use a simple ListBox Inside Director Plugin :

Code: Select all

<UserControl x:Class="ListBoxTest.Window"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">

    <Grid>
        <ListBox Margin="20">
            <ListBoxItem>New York</ListBoxItem>
            <ListBoxItem>Los Angeles</ListBoxItem>
            <ListBoxItem>Paris</ListBoxItem>
            <ListBoxItem>Zurich</ListBoxItem>
        </ListBox>
    </Grid>
</UserControl>
The Plugin fails with this error :
ControlTemplate TargetType 'ListView' does not match the type 'ListBox' based on a model
.

I don't how to solve this problem. I know the control's Plugin get the Ventuz Theme. I tried to apply another style to the ListBox, but with no luck.

Do you know why ListBox can't be load Inside Director Plugin ?

Re: Director Plugin and ListBox

Posted: 11 Feb 2014, 15:15
by mofo7777
Re.

It's OK for me because I can use a ListView instead of a ListBox...