This project is read-only.

[Version 2.0] Setting the IsEnabled property of LayoutAnchorableItem through a LayoutItemContainerStyleSelector is not working

Oct 9, 2012 at 8:54 PM
Edited Oct 10, 2012 at 3:40 PM

Hey there,

In the MVVMTestApp I have added an IsEnabled property setter to the style of the LayoutAnchorableItem like this:

           <avalonDock:DockingManager.LayoutItemContainerStyleSelector>
                <local:PanesStyleSelector>
                    <local:PanesStyleSelector.ToolStyle>
                        <Style TargetType="{x:Type avalonDock:LayoutAnchorableItem}">
                            .
                            .
                            <Setter Property="IsEnabled" Value="False"/>
                        </Style>
                    </local:PanesStyleSelector.ToolStyle>
                    <local:PanesStyleSelector.FileStyle>
                        <Style TargetType="{x:Type avalonDock:LayoutItem}">
                            .
                        </Style>
                    </local:PanesStyleSelector.FileStyle>
                </local:PanesStyleSelector>
            </avalonDock:DockingManager.LayoutItemContainerStyleSelector>

Unfortunately it does not working!

What am i doing wrong?