Skip to content

Commit 61521c1

Browse files
committed
polishing
1 parent a1f9e28 commit 61521c1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

components/dockmanager/events.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ This article explains the events available in the Telerik DockManager for Blazor
1515
* [OnDock](#ondock)
1616
* [OnUndock](#ondock)
1717
* [VisibleChanged](#visiblechanged)
18-
* [UnpinnedSizeChanged](#unpinnedsizechanged)
1918
* [SizeChanged](#sizechanged)
19+
* [UnpinnedSizeChanged](#unpinnedsizechanged)
2020
* [OnPaneResize](#onpaneresize)
2121
* [State Events](#state-events)
2222
* [OnPin](#onpin)
@@ -50,17 +50,17 @@ The event handler receives as an argument an `DockManagerUndockEventArgs` object
5050

5151
The `VisibleChanged` event is fired when the user tries to hide a given pane. You can effectively cancel the event by not propagating the new visibility state to the variable the `Visible` property is bound to. This is the way to cancel the event and keep the pane visible.
5252

53-
## UnpinnedSizeChanged
54-
55-
The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed.
56-
5753
## SizeChanged
5854

5955
The `SizeChanged` event is triggered when the `Size` parameter of the corresponding pane is changed.
6056

57+
## UnpinnedSizeChanged
58+
59+
The `UnpinnedSizeChanged` event is triggered when the `UnpinnedSize` parameter of the corresponding pane is changed.
60+
6161
## OnPaneResize
6262

63-
The `OnPaneResize` event is fired when any pane is resized. It lets you respond to that change if needed - for example, call the `.Refresh()` method of a chart or otherwise repaint a child component in the content. You can also use it to, for example, update the saved [state](slug:dockmanager-state) for your users.
63+
The `OnPaneResize` event is fired when a pane is resized, except unpinned panes. It lets you respond to that change if needed - for example, call the `.Refresh()` method of a chart or otherwise repaint a child component in the content. You can also use it to, for example, update the saved [state](slug:dockmanager-state) for your users.
6464

6565
The event handler receives as an argument an `DockManagerPaneResizeEventArgs` object that contains:
6666

@@ -259,6 +259,8 @@ The event handler receives as an argument an `DockManagerUnpinEventArgs` object
259259
private void Pane1UnpinnedSizeChanged(string newUnpinnedSize)
260260
{
261261
Pane1UnpinnedSize = newUnpinnedSize;
262+
263+
DockManagetEventLog.Insert(0, $"Pane <strong>Pane 1</strong> was resized to {newUnpinnedSize} while unpinned.");
262264
}
263265
264266
private void OnPaneUnpin(DockManagerUnpinEventArgs args)

0 commit comments

Comments
 (0)