From e188f6fc5118f550b046ea2219274a2fb62ae474 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Mon, 1 Jul 2024 20:12:26 +0530 Subject: [PATCH 01/11] WPF 886828 - Updated Selection mode topic changes --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index fa2fa83a72..1ed3911dcc 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -9,7 +9,7 @@ documentation: ug # Restrict SelectionMode as Single in WPF Gantt -To restrict the selection mode to single, set the ListBoxSelectionMode options of GanttGrid’s Model in the GanttControl loaded event. +To restrict the selection mode to single, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of Gantt in the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) loaded event. The following codes illustrate this @@ -19,7 +19,6 @@ The following codes illustrate this … … @@ -30,7 +29,7 @@ The following codes illustrate this … private void Gantt_Loaded(object sender, RoutedEventArgs e) { - this.Gantt.GanttGrid.Model.Options.ListBoxSelectionMode = Syncfusion.Windows.Controls.Grid.GridSelectionMode.One; + this.Gantt.SelectionMode = GanttSelectionMode.Single; } … From 6eeec08953ca009789356dd258e1def5b23b4de2 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Tue, 2 Jul 2024 12:24:39 +0530 Subject: [PATCH 02/11] Updated review corrections --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index 1ed3911dcc..a02fe3cda3 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -19,7 +19,7 @@ The following codes illustrate this … + Loaded="OnGanttLoaded"> … @@ -27,7 +27,7 @@ The following codes illustrate this {% highlight c# %} … -private void Gantt_Loaded(object sender, RoutedEventArgs e) +private void OnGanttLoaded(object sender, RoutedEventArgs e) { this.Gantt.SelectionMode = GanttSelectionMode.Single; } From a04d2df712c767d5134984e703d8094b8b10e2e1 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 11 Jul 2024 15:53:54 +0530 Subject: [PATCH 03/11] Review corrections updated --- .../Restrict-SelectionMode-as-Single.md | 152 ++++++++++++++++-- 1 file changed, 139 insertions(+), 13 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index a02fe3cda3..8be88b8e52 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -1,37 +1,163 @@ --- layout: post -title: Restrict SelectionMode as Single | Gantt | Wpf | Syncfusion -description: This section describes how to restrict the SelectionMode behavior as Single in GanttControl for WPF platform. +title: Restrict SelectionMode | Gantt | Wpf | Syncfusion +description: This section describes how to restrict the SelectionMode behavior in GanttControl for WPF platform. platform: wpf control: Gantt documentation: ug --- -# Restrict SelectionMode as Single in WPF Gantt +# Restrict SelectionMode -To restrict the selection mode to single, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of Gantt in the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) loaded event. +To restrict the selection mode, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) as None. The following codes illustrate this {% tabs %} {% highlight xaml %} -… + SelectionMode="None"> + + + + + + -… {% endhighlight %} {% highlight c# %} -… -private void OnGanttLoaded(object sender, RoutedEventArgs e) -{ - this.Gantt.SelectionMode = GanttSelectionMode.Single; -} -… +this.ganttControl.ItemsSource = new ViewModel().TaskCollection; +this.ganttControl.SelectionMode = GanttSelectionMode.None; + +// Task attribute mapping +TaskAttributeMapping taskAttributeMapping = new TaskAttributeMapping(); +taskAttributeMapping.TaskIdMapping = "TaskId"; +taskAttributeMapping.TaskNameMapping = "TaskName"; +taskAttributeMapping.StartDateMapping = "StartDate"; +taskAttributeMapping.ChildMapping = "Child"; +taskAttributeMapping.FinishDateMapping = "FinishDate"; +taskAttributeMapping.DurationMapping = "Duration"; +taskAttributeMapping.ProgressMapping = "Progress"; +taskAttributeMapping.PredecessorMapping = "Predecessor"; +taskAttributeMapping.ResourceInfoMapping = "Resources"; +this.ganttControl.TaskAttributeMapping = taskAttributeMapping; {% endhighlight %} + +{% highlight c# tabtitle="ViewModel.cs" %} + public class ViewModel + { + /// + /// Holds the task collections. + /// + private ObservableCollection taskCollections; + + /// + /// Initializes a new instance of the class. + /// + public ViewModel() + { + this.taskCollections = GetData(); + } + + /// + /// Gets or sets the appointment item source. + /// + /// The appointment item source. + public ObservableCollection TaskCollection + { + get + { + return this.taskCollections; + } + set + { + this.taskCollections = value; + } + } + + /// + /// Method to get the data. + /// + /// The task details + public ObservableCollection GetData() + { + var taskDetails = new ObservableCollection(); + + taskDetails.Add(new TaskDetails() { TaskId = 1, TaskName = "Analysis/Planning", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 14), Progress = 40d }); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 2, TaskName = "Identify Components to be Localized", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 5), Progress = 20d })); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 3, TaskName = "Ensure file localizability", StartDate = new DateTime(2011, 7, 6), FinishDate = new DateTime(2011, 7, 7), Progress = 20d })); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 4, TaskName = "Identify tools", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 5, TaskName = "Test tools", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 8, 1), Progress = 10d })); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 6, TaskName = "Develop delivery timeline", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 8, 1), Progress = 10d })); + taskDetails[0].Child.Add((new TaskDetails() { TaskId = 7, TaskName = "Analysis Complete", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 8, 10), Progress = 10d })); + + taskDetails.Add(new TaskDetails() { TaskId = 8, TaskName = "Production", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 14), Progress = 40d }); + taskDetails[1].Child.Add((new TaskDetails() { TaskId = 9, TaskName = "Software Components", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 5), Progress = 20d })); + taskDetails[1].Child.Add((new TaskDetails() { TaskId = 10, TaskName = "Localization Component - User Interface", StartDate = new DateTime(2011, 7, 6), FinishDate = new DateTime(2011, 7, 7), Progress = 20d })); + taskDetails[1].Child.Add((new TaskDetails() { TaskId = 11, TaskName = "User Assistance Components", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + taskDetails[1].Child.Add((new TaskDetails() { TaskId = 12, TaskName = "Software components complete", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); + + taskDetails.Add(new TaskDetails() { TaskId = 13, TaskName = "Quality Assurance", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 12), Progress = 40d, }); + taskDetails[2].Child.Add((new TaskDetails() { TaskId = 14, TaskName = "Review project information", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 15), Progress = 20d })); + taskDetails[2].Child.Add((new TaskDetails() { TaskId = 15, TaskName = "Localization Component", StartDate = new DateTime(2011, 7, 6), FinishDate = new DateTime(2011, 7, 8), Progress = 20d })); + taskDetails[2].Child.Add((new TaskDetails() { TaskId = 16, TaskName = "Localization Component", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + taskDetails[2].Child.Add((new TaskDetails() { TaskId = 17, TaskName = "Localization Component", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 18), Progress = 10d })); + + taskDetails.Add(new TaskDetails() { TaskId = 18, TaskName = "Beta Testing", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 14), Progress = 40d }); + taskDetails[3].Child.Add((new TaskDetails() { TaskId = 19, TaskName = "Disseminate completed product", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 5), Progress = 20d })); + taskDetails[3].Child.Add((new TaskDetails() { TaskId = 20, TaskName = "Obtain feedback", StartDate = new DateTime(2011, 7, 6), FinishDate = new DateTime(2011, 7, 7), Progress = 20d })); + taskDetails[3].Child.Add((new TaskDetails() { TaskId = 21, TaskName = "Modify", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); + taskDetails[3].Child.Add((new TaskDetails() { TaskId = 22, TaskName = "Test", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); + taskDetails[3].Child.Add((new TaskDetails() { TaskId = 23, TaskName = "Complete", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 19), Progress = 10d })); + + taskDetails.Add(new TaskDetails() { TaskId = 24, TaskName = "Post-Project Review", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 18), Progress = 40d, }); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 25, TaskName = "Finalize cost analysis", StartDate = new DateTime(2011, 7, 3), FinishDate = new DateTime(2011, 7, 5), Progress = 20d })); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 26, TaskName = "Analyze performance", StartDate = new DateTime(2011, 7, 6), FinishDate = new DateTime(2011, 7, 7), Progress = 20d })); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 27, TaskName = "Archive files", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 28, TaskName = "Document lessons learned", StartDate = new DateTime(2011, 7, 14), FinishDate = new DateTime(2011, 7, 18), Progress = 10d })); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 29, TaskName = "Distribute to team members", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + taskDetails[4].Child.Add((new TaskDetails() { TaskId = 30, TaskName = "Post-project review complete", StartDate = new DateTime(2011, 7, 10), FinishDate = new DateTime(2011, 7, 14), Progress = 10d })); + + taskDetails[0].Resources = new ObservableCollection() { new Resource { ID = 1, Name = "John" }, new Resource { ID = 2, Name = "Neil" } }; + taskDetails[0].Child[3].Resources = new ObservableCollection() { new Resource() { ID = 3, Name = "Peter" } }; + taskDetails[1].Resources = new ObservableCollection() { new Resource() { ID = 4, Name = "David" } }; + + taskDetails[0].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 2, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[0].Child[2].Predecessor.Add(new Predecessor() { GanttTaskIndex = 3, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[0].Child[3].Predecessor.Add(new Predecessor() { GanttTaskIndex = 3, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + + taskDetails[1].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 9, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[1].Child[2].Predecessor.Add(new Predecessor() { GanttTaskIndex = 10, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[1].Child[3].Predecessor.Add(new Predecessor() { GanttTaskIndex = 7, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + + taskDetails[2].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 12, GanttTaskRelationship = GanttTaskRelationship.FinishToFinish }); + taskDetails[2].Child[2].Predecessor.Add(new Predecessor() { GanttTaskIndex = 12, GanttTaskRelationship = GanttTaskRelationship.FinishToFinish }); + taskDetails[2].Child[3].Predecessor.Add(new Predecessor() { GanttTaskIndex = 12, GanttTaskRelationship = GanttTaskRelationship.FinishToFinish }); + + taskDetails[3].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 18, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[3].Child[2].Predecessor.Add(new Predecessor() { GanttTaskIndex = 18, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[3].Child[3].Predecessor.Add(new Predecessor() { GanttTaskIndex = 19, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + + taskDetails[4].Child[1].Predecessor.Add(new Predecessor() { GanttTaskIndex = 25, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[4].Child[2].Predecessor.Add(new Predecessor() { GanttTaskIndex = 28, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[4].Child[3].Predecessor.Add(new Predecessor() { GanttTaskIndex = 30, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + taskDetails[4].Child[4].Predecessor.Add(new Predecessor() { GanttTaskIndex = 27, GanttTaskRelationship = GanttTaskRelationship.StartToStart }); + return taskDetails; + } +} + +{% endhighlight %} {% endtabs %} \ No newline at end of file From 42080628303efdb37cf9bb75aff3403b727a38a1 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 11 Jul 2024 16:14:47 +0530 Subject: [PATCH 04/11] Resolved CI issue --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index 8be88b8e52..51fcfa14b1 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -1,7 +1,7 @@ --- layout: post title: Restrict SelectionMode | Gantt | Wpf | Syncfusion -description: This section describes how to restrict the SelectionMode behavior in GanttControl for WPF platform. +description: This section describes how to restrict the SelectionMode behavior in Gantt control for WPF platform. platform: wpf control: Gantt documentation: ug From a1b0dd92cd26ce6d8142011670e626510eb37640 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 18 Jul 2024 12:49:58 +0530 Subject: [PATCH 05/11] Review correction updated --- .../Restrict-SelectionMode-as-Single.md | 36 ++++--------------- 1 file changed, 6 insertions(+), 30 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index 51fcfa14b1..e1aef7e3fc 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -1,59 +1,35 @@ --- layout: post -title: Restrict SelectionMode | Gantt | Wpf | Syncfusion -description: This section describes how to restrict the SelectionMode behavior in Gantt control for WPF platform. +title: Restrict item selection | Gantt | Wpf | Syncfusion +description: This section describes how to implement the SelectionMode behavior in the WPF Gantt Control. platform: wpf control: Gantt documentation: ug --- -# Restrict SelectionMode +# Restrict item selection -To restrict the selection mode, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) as None. +To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to None. The following codes illustrate this {% tabs %} -{% highlight xaml %} +{% highlight xaml hl_lines="3" %} - - - {% endhighlight %} -{% highlight c# %} +{% highlight c# hl_lines="2" %} this.ganttControl.ItemsSource = new ViewModel().TaskCollection; this.ganttControl.SelectionMode = GanttSelectionMode.None; -// Task attribute mapping -TaskAttributeMapping taskAttributeMapping = new TaskAttributeMapping(); -taskAttributeMapping.TaskIdMapping = "TaskId"; -taskAttributeMapping.TaskNameMapping = "TaskName"; -taskAttributeMapping.StartDateMapping = "StartDate"; -taskAttributeMapping.ChildMapping = "Child"; -taskAttributeMapping.FinishDateMapping = "FinishDate"; -taskAttributeMapping.DurationMapping = "Duration"; -taskAttributeMapping.ProgressMapping = "Progress"; -taskAttributeMapping.PredecessorMapping = "Predecessor"; -taskAttributeMapping.ResourceInfoMapping = "Resources"; -this.ganttControl.TaskAttributeMapping = taskAttributeMapping; - {% endhighlight %} {% highlight c# tabtitle="ViewModel.cs" %} From 5ba2b9e9784983cfb85a2d646d1a151f8bb1c756 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 18 Jul 2024 13:01:17 +0530 Subject: [PATCH 06/11] CI issue resolved --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index e1aef7e3fc..31fd57c509 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -1,7 +1,7 @@ --- layout: post title: Restrict item selection | Gantt | Wpf | Syncfusion -description: This section describes how to implement the SelectionMode behavior in the WPF Gantt Control. +description: This section describes how to implement the SelectionMode behavior in the Syncfusion Essential Studio WPF Gantt control. platform: wpf control: Gantt documentation: ug From 00fcd414927f014d927d5ab26393286cdace5503 Mon Sep 17 00:00:00 2001 From: Krithika Date: Thu, 18 Jul 2024 13:43:25 +0530 Subject: [PATCH 07/11] 883480 Include Silent printing with printer name --- wpf/Pdf-Viewer/Printing-PDF-Files.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/wpf/Pdf-Viewer/Printing-PDF-Files.md b/wpf/Pdf-Viewer/Printing-PDF-Files.md index 905919ed0c..ffca494e2a 100644 --- a/wpf/Pdf-Viewer/Printing-PDF-Files.md +++ b/wpf/Pdf-Viewer/Printing-PDF-Files.md @@ -33,6 +33,26 @@ pdfviewer1.Print() {%endhighlight%} {% endtabs %} +## Silent Printing with Printer Name + +The [Print](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_Print_System_String_) method of [PdfViewerControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html) and [PdfDocumentView](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfDocumentView.html) allows you to print PDF files silently to the specified printer, without any user interaction. You can enable the preferred settings for silent printing using the [PrinterSettings](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.PdfViewer.PdfViewerControl.html#Syncfusion_Windows_PdfViewer_PdfViewerControl_PrinterSettings) property. The following code example shows how to perform silent printing with a specified printer name in WPF PDF Viewer. + +{% tabs %} +{%highlight c#%} + +string printerName = "enter the printer name"; +pdfviewer1.Print(printerName); + +{%endhighlight%} + +{%highlight vb%} + +Dim printerName As String = "enter the printer name" +pdfviewer1.Print(printerName) + +{%endhighlight%} +{% endtabs %} + ## Customizing print size PDF viewer printer settings allows scaling PDF pages to shrink or enlarge while printing. From f5ad8b9f99e28aee965eb69c5d453e8f32bee174 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 18 Jul 2024 16:39:53 +0530 Subject: [PATCH 08/11] Updated the review corrections. --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index 31fd57c509..cf0a4c402c 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -9,14 +9,14 @@ documentation: ug # Restrict item selection -To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to None. +To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttSelectionMode.html#Syncfusion_Windows_Controls_Gantt_GanttSelectionMode_None) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to None. The following codes illustrate this {% tabs %} {% highlight xaml hl_lines="3" %} - @@ -27,8 +27,8 @@ The following codes illustrate this {% endhighlight %} {% highlight c# hl_lines="2" %} -this.ganttControl.ItemsSource = new ViewModel().TaskCollection; -this.ganttControl.SelectionMode = GanttSelectionMode.None; +this.gantt.ItemsSource = new ViewModel().TaskCollection; +this.gantt.SelectionMode = GanttSelectionMode.None; {% endhighlight %} From 308a44837c268d5756fee08afbd8e14e4d86d412 Mon Sep 17 00:00:00 2001 From: TamilarasanGunasekaran Date: Thu, 18 Jul 2024 16:52:33 +0530 Subject: [PATCH 09/11] None link added --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index cf0a4c402c..dfe7aff56e 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -9,7 +9,7 @@ documentation: ug # Restrict item selection -To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttSelectionMode.html#Syncfusion_Windows_Controls_Gantt_GanttSelectionMode_None) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to None. +To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to [None](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttSelectionMode.html#Syncfusion_Windows_Controls_Gantt_GanttSelectionMode_None). The following codes illustrate this From 838a2c1940d8d4f3b819e1dca6499341dcf75f8d Mon Sep 17 00:00:00 2001 From: Karthickmani97 <67908880+Karthickmani97@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:57:54 +0530 Subject: [PATCH 10/11] Update Restrict-SelectionMode-as-Single.md --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index dfe7aff56e..745b785c09 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -19,9 +19,9 @@ The following codes illustrate this - + - + {% endhighlight %} @@ -136,4 +136,4 @@ this.gantt.SelectionMode = GanttSelectionMode.None; } {% endhighlight %} -{% endtabs %} \ No newline at end of file +{% endtabs %} From 2cf15986e74e2cb6b48f25a356e13e604f0d6b13 Mon Sep 17 00:00:00 2001 From: Karthickmani97 <67908880+Karthickmani97@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:09:07 +0530 Subject: [PATCH 11/11] Update Restrict-SelectionMode-as-Single.md --- wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md index 745b785c09..33a642f96d 100644 --- a/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md +++ b/wpf/Gantt/How-To/Restrict-SelectionMode-as-Single.md @@ -9,7 +9,7 @@ documentation: ug # Restrict item selection -To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to [None](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttSelectionMode.html#Syncfusion_Windows_Controls_Gantt_GanttSelectionMode_None). +To restrict item selection, set the [SelectionMode](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html#Syncfusion_Windows_Controls_Gantt_GanttControl_SelectionMode) property of the [GanttControl](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttControl.html) to [None](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Gantt.GanttSelectionMode.html#Syncfusion_Windows_Controls_Gantt_GanttSelectionMode_None). The following codes illustrate this