官术网_书友最值得收藏!

  • .NET 4.0 Generics
  • David Lai Xavier Hacking
  • 468字
  • 2021-04-02 19:30:10

Grouping the canvas components

Canvas components can be grouped with one or more other components.

Getting ready

Drag several components to the canvas.

How to do it...

  1. Select the components that you want to group by either selecting them by dragging the mouse over the components, or clicking the components one-by-one while holding the Ctrl button on your keyboard.
  2. Right-click anywhere on the canvas and select Group from the context menu. You can also use the shortcut Ctrl + G to group these components. As you can see, the components are now a group with a common border (Dynamic Visibility and Entry Effect):

    And some shared preferences (Dynamic Visibility and Entry Effect):

  3. If you create a lot of groups of components, we advise that you name these groups to prevent you from getting lost and confused during the dashboard development. First go to the Object Browser.
  4. Select the group you want to rename.
  5. Double-click the group or right-click and select Rename from the context menu.
  6. Type in the new name for this group.

How it works...

When your dashboard gets more complex, not only will the data model in the spreadsheet grow, the number of components used on the canvas will also increase. Using groups to differentiate the canvas components from each other is a great way to stay in control of your dashboard.

There's more...

Besides browsing through your (grouped) components, the Object Browser has two additional options which come in very handy during the development of a complex dashboard.

Hiding components

Firstly, you can hide components and/or groups of components, which will make your life easier if you are using a lot of overlaying components. By checking Hide for some components, you won't be bothered by these components and you can work with the components that are unhidden.

Note

There is one thing you should keep in mind: If you hide a component that is part of a group and the group itself is unhidden, the complete group will still be movable and its properties will be changeable.

Locking components

Secondly, the Object Browser gives us the possibility to lock one or more components and/or groups of components. Doing this makes it impossible to select these components so it won't be possible to move, change, or do anything else with it.

Hiding or locking components is easy. In the Object Browser you will see two symbols with two columns of dots beneath them. The first column is the 'hide' column; the second one defines which components are locked. To hide or lock a component, you just have to click on the correct dot in the row of the component. The dot will be replaced with a checkmark. In the following screenshot, you can see that the Budget group is hidden while the Actual group is locked:

主站蜘蛛池模板: 长宁县| 内江市| 镇赉县| 陇南市| 宝兴县| 留坝县| 柯坪县| 京山县| 井冈山市| 郴州市| 永城市| 吉安县| 武平县| 南开区| 临夏市| 福建省| 昔阳县| 交口县| 荆门市| 涞水县| 仁怀市| 穆棱市| 额济纳旗| 甘谷县| 天台县| 灵武市| 曲阜市| 墨江| 新田县| 库尔勒市| 金山区| 廉江市| 丰台区| 漠河县| 无锡市| 滨海县| 灵璧县| 耿马| 蚌埠市| 赤壁市| 礼泉县|