This project is read-only.

Next bugs and questions

Mar 26, 2009 at 9:25 AM
Edited Mar 26, 2009 at 9:27 AM

Hi, Ado!

(Sorry for my poor English).

1. What must I do to set one of some DocumentPanes without header line (part)?

2. Horizontal ResizingPanel contains two DockablePane (one pane above another pane). I drag upper pane and I saw that other pane has saved its size. Try to drop dragged pane into remained pane to anchor (Top). If height of dragged pane is more than height of remained pane, that program generates exception (negative size). And else, heights of these panes are not correct. I seem that AvalonDock has some serious problems in arrange of its child contents.

3. Try to run your test project AvalonDockTest. If I press on a right-splitter of DocumentPane and move it from left-border of this pane, that pane will not appear immediately when mouse return. Is it a bug?

4. When are you planned next AvalonDock release (1.2)?

Thanks.

Eugene.

 

Mar 26, 2009 at 11:12 AM
Hi
1. Restyle DocumentPane with something like this:
<Window.Resources>
<Style TargetType="{x:Type ad:DocumentPane}">
<Setter Property="Background" Value="{DynamicResource {ComponentResourceKey {x:Type ad:DockingManager}, {x:Static ad:AvalonDockBrushes.DefaultBackgroundBrush}}}"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ad:DocumentPane}" >
<Border
Focusable="False"
Background="{TemplateBinding Background}"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Border
BorderThickness="5"
BorderBrush="#FFC1D2EE"
CornerRadius="3"
Focusable="False">
</Border>
<Border BorderThickness="2"
BorderBrush="#FFD6E2F8"
CornerRadius="3"
Margin="1"
Focusable="False"
Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Background}"
>
<ContentPresenter
Content="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedItem.Content}"
Margin="2"
KeyboardNavigation.TabNavigation="Local"
KeyboardNavigation.DirectionalNavigation="Contained"
KeyboardNavigation.TabIndex="1"
/>
</Border>
</Grid>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="HasItems" Value="False">
<Setter Property="Visibility" Value="Hidden"/>
</Trigger>
<EventTrigger RoutedEvent="Window.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation
Storyboard.TargetProperty="Opacity"
From="0" To="1" Duration="0:0:0.200" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
2. Could you please post an XAML code that generates the exception?
3. If the DockingManager control contains a WindowsFormsHost, it can happen because WinForms controls refresh very slowly.
4. I'm preparing an entry on my blog to show new features and fixes for the next release just to collect lastminute feedbacks from the community. In any case ver 1.2 should be out next week.
Thanks to you,
Ado

Sent: Thursday, March 26, 2009 9:26 AM
Subject: Next bugs and questions [AvalonDock:51353]

From: JohnMnemonic

Hi, Ado!

(Sorry for my poor English).

1. What must I do to set one of some DocumentPanes without header line (part)?

2. Horizontal ResizingPanel contains two DockablePane (one pane above another pane). I drag upper pane and I saw that other pane has saved its size. Try to drop dragged pane into remained pane to anchor (Top). If height of dragged pane is more than height of remained pane, that program generates exception (negative size). And else, heights of these panes are not correct. I seem that AvalonDock has some serious problems in arrange of its child contents.

3. Try to run your test project AvalonDockTest. If I press on a right-splitter of DocumentPane and move it from left-border of this pane, that pane will not appear immediately when mouse return. Is it a bug?

4. When are you planned next AvalonDock release (1.2)?

Thanks.

Eugene.

Mar 27, 2009 at 8:35 AM

1. I do not understand, how to set this style (without header line) for all DocumentPanes in one DockingManager. I use several DockingMangers in my project window.
2. Sorry, necessary ResizingPanel has vertical orientation. DC4 is upper pane. By the way, this problem has a place for horizontal ResizingPanel too (in similar situation).
<Window x:Class="AvalonDockTest.Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:my="clr-namespace:AvalonDock;assembly=AvalonDock"
Title="Njorl's Saga Manager" Height="600" Width="800" >
    <my:DockingManager Name="mainDockingManager" >
        <my:ResizingPanel Orientation="Vertical">
            <my:ResizingPanel Orientation="Horizontal">
                <my:DockablePane my:ResizingPanel.ResizeWidth="200">
                    <my:DockableContent Title="DC1" />
                    <my:DockableContent Title="DC2" />
                </my:DockablePane>
                <my:DocumentPane >
                    <my:DocumentContent Title="Doc1"/>
                </my:DocumentPane>
                <my:DockablePane my:ResizingPanel.ResizeWidth="200">
                    <my:DockableContent Title="DC3"/>
                </my:DockablePane>
            </my:ResizingPanel>
            <my:DockablePane my:ResizingPanel.ResizeHeight="100">
                <my:DockableContent Title="DC4" />
            </my:DockablePane>
            <my:DockablePane my:ResizingPanel.ResizeHeight="60">
                <my:DockableContent Title="DC5" />
            </my:DockablePane>
        </my:ResizingPanel>
    </my:DockingManager>
</Window>
3. My DockingManager control does not contain a WindowsFormsHost. Try to run your test project AvalonDockTest once more.
4. Thanks.

Eugene

Mar 31, 2009 at 8:24 PM
Hi Eugene,
I replied to your email with the same content coming with a different address (Евгений Грасин gev@neurosoft.ru). Did you receive it?
Sep 9, 2009 at 11:24 AM
Edited Sep 9, 2009 at 12:40 PM