Skip to content

WPF-964172-UG work for the Volume 2 2025 usability features #1812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions wpf/Diagram/Automatic-Layouts/Automatic-Layouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ N> `AvoidSegmentOverlapping` is not valid for `RadialTreeLayout`.

## Customize margin in layout

The [`Margin`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.Layout.LayoutBase.html#Syncfusion_UI_Xaml_Diagram_Layout_LayoutBase_Margin) property of `DirectedTreeLayout` is used to provide space between the bounds of the tree layout to the diagram. The default margin value is `50`.
The [`Margin`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.Layout.LayoutBase.html#Syncfusion_UI_Xaml_Diagram_Layout_LayoutBase_Margin) property of [`LayoutBase`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.Layout.LayoutBase.html) is used to provide space between the bounds of the tree layout to the diagram. The default margin value is `50`.

{% tabs %}
{% highlight xaml %}
Expand All @@ -347,8 +347,6 @@ diagram.LayoutManager = new LayoutManager()

{% endtabs %}

N> `Margin` is not valid for `RadialTreeLayout`.

## See Also

[How to create parent and child relationship by drag and drop nodes?](https://support.syncfusion.com/kb/article/10008/how-to-create-parent-and-child-relationship-by-drag-and-drop-nodes-in-wpf-diagram-sfdiagram)
Expand Down
11 changes: 11 additions & 0 deletions wpf/Diagram/Printing.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ Printer section.

![Printer List in WPF Diagram](Printing_images/wpf-diagram-printer-list.png)

#### Printer Properties

The **Printer Properties** option allows you to configure advanced settings for the selected printer before printing the diagram. The available options may vary depending on the printer model and driver, but commonly include:

- **Paper Size**: Select from supported paper sizes such as A4, Letter, Legal, etc.
- **Orientation**: Choose between Portrait and Landscape.

To access these settings, click the **Printer Properties** button in the Print Preview window after selecting your printer. This allows you to customize the print output according to your requirements.

![Printer Properties in WPF Diagram](Printing_images/wpf-diagram-printer-properties.png)

### Scaling
SfDiagram provides support to scale the diagram whether to print as single page or split into multiple pages. Scaling options can be changed by setting the `PrintingService.PrintManager.SelectedScaleIndex`
property.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wpf/Diagram/Printing_images/wpf-diagram-printing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion wpf/Diagram/Snapping/DefineSnapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Refer to the [SnapSettings](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xam

## Snap-to-objects

The snap-to-object provides visual cues to assist with aligning and spacing diagram. A node can be snapped with its neighboring objects based on certain alignments (same size and same position). Such alignments are visually represented as smart guide lines, which are in cyan shade color and its color code is #83F6F0.
The snap-to-object provides visual cues to assist with aligning and spacing diagram. A node or group can be snapped with its neighboring objects based on certain alignments (same size and same position). Such alignments are visually represented as smart guide lines, which are in cyan shade color and its color code is #83F6F0.

Refer to the members of [SnapToObject](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.SnapToObject.html).

Expand Down