Skip to content

Resizing Anchorables

Dirkster99 edited this page Jun 14, 2019 · 18 revisions

Tool Window Layout (Load/Save)

  1. Delete the AvalonDock layout file that is loaded on start-up
    MLibTest\bin\Debug\AvalonDock.Layout.config

  2. Start MLibTest\bin\Debug\MLibTest.exe
    Drag the Color Picker (tool window) to the right side and make the Spectrum Slider align with the combo box above it

  3. Click File>New to create a new file
    Expectation: Test application should look like below
    (Tool Window (x) close button is visible as long as caption and other buttons fit into small size)

  4. Resize the MainWindow into its minimal size (try minimal height and/or width)
    Expectation: The DockingManager control (and some elements in it) cannot have a negative size. So, resizing stops either at a sensible default value or at the height/width of 0.

Resize the MainWindow to a smaller size
Expectation: Tool Window gets smaller when document is at minimal size as shown below

  1. Click Maximize (button) in right top of MainWindow
    Expectation: Color Picker (toolwindow) is shown with previsouly set size
    (Spectrum Slider align with the combo box)

  2. Click Restore (button) in right top of MainWindow
    Expectation: Small ToolWindow is shown again as before maximization

  3. Drag Tool 3 (toolwindow) to the left side of the document and repeat previous test steps 4-6
    Expectation: Application should look like in below screenshots

  4. Click Restore (button) in right top of MainWindow
    Click Close Application X (button) in right top of MainWindow
    Restart MLibTest
    Expectation: Layout should be reloaded and application should look as previously layouted

AutoHide

  1. Delete the AvalonDock layout file that is loaded on start-up
    MLibTest\bin\Debug\AvalonDock.Layout.config

  2. Start MLibTest\bin\Debug\MLibTest.exe
    Drag the Color Picker (toolwindow) to the right side and make the Spectrum Slider align with the combo box above it

  3. Click File>New to create a new file Resize the Window to a smaller size
    Expectation: Test application should look like below
    (toolwindow (x) close button is visible as long as caption and other buttons fit into small size)

  4. AutoHide Color Picker (toolwindow)

  5. Expectation: The toolwindow auto hides on the side where it was docked

  6. Click Maximize (button) in right top of MainWindow
    Expectation: Color Picker (toolwindow) is still auto hidden

  7. Click AutoHide (button) to restore the toolwindow in the layout

  8. Expectation: Color Picker (toolwindow) is restored in its previous position with its previous width

  9. Click Restore (button) in right top of MainWindow
    Resize the Window to a smaller size
    Click Close Application X (button) in right top of MainWindow
    Restart MLibTest
    Expectation: Toolwindow is restored with with size previsously setup via GridSplitter

Hide

  1. Delete the AvalonDock layout file that is loaded on start-up
    MLibTest\bin\Debug\AvalonDock.Layout.config

  2. Start MLibTest\bin\Debug\MLibTest.exe
    Drag the Color Picker (tool window) to the right side and make the Spectrum Slider align with the combo box above it

  3. Resize the MainWindow to a smaller size
    Expectation: Test application should look like below
    (Tool Window (x) close button is visible as long as caption and other buttons fit into small size)

  4. Click tool window (x) Hide button

  5. Expectation: Color Picker (toolwindow) is no longer visible

  6. Select Tools>Color Picker to reload Color Picker (toolwindow)

  7. Expectation: Color Picker (toolwindow) is visible in its previously arranged location and size

Complex Layouts

  1. Delete the AvalonDock layout file that is loaded on start-up
    MLibTest\bin\Debug\AvalonDock.Layout.config

  2. Start MLibTest\bin\Debug\MLibTest.exe
    Construct more complex toolwindow layouts (including docking in other positions)

  3. Resize the MainWindow to a smaller size
    Expectation: Test application should look like below
    (Tool Window (x) close button is visible as long as caption and other buttons fit into small size)

  4. Repeat all test steps in previous sections with the variations of complex toolwindow layouts...

Demo Projects

Controls

Layout Models

Interfaces

Class Designs

Bugs

Manual Tests

Clone this wiki locally