From 046603462825d76ec662944f086782541bcdc1be Mon Sep 17 00:00:00 2001 From: Raghav-Sudhakar Date: Tue, 22 Nov 2022 12:26:07 +0530 Subject: [PATCH 1/2] WPF-62104-Updated ReadMe file. --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5795e96..a4dd1eb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,52 @@ # Linked DockingManager -This sample demonstrates linking two docking manager, so that child windows can be dragged and dropped from one docking manager to another. +The windows from one DockingManager cannot be dragged and dropped to another DockingManager by default. But Linked Manager support allows to drag and drop the windows from one DockingManager to another by setting TargetDockingManager list. -[Documentation](https://help.syncfusion.com/wpf/dockingmanager/linked-manager) +## C# + + + + + + + + + + + +## C# + + + + + + + + + + + +## Adding TargetManager list of DockingManager +To add TargetManager list in the DockingManager, call AddToTargetManagersList method of the DockingManager with the valid DockingManager instance as argument. + +When only one DockingManager has TargetManagerList, the window drop to TargetManager cannot drag back to Owner DockingManger. For example DockingManager1 and DockingManager2 are the DockingManager instance and the DockingManager2 is added to TargetManagerList of DockingManager1, but the DockingManager2 is not aware of its TargetManager. + +Here, the windows from DockingManager1 are only allowed to be dragged and dropped in DockingManager2, + +## C# + + this.DockingManager1.AddToTargetManagersList(MainWindow.DockingManager2); + +## C# + + this.DockingManager1.AddToTargetManagersList(MainWindow.DockingManager2); + + MainWindow.DockingManager2.AddToTargetManagersList(this.DockingManager1); + +## Removing Target Manager list +To remove DockingManager from the TargetManagerList, call RemoveFromTargetManagerList of DockingManager with the valid DockingManager instance argument. + +## C# + + MainWindow.DockingManager2.RemoveFromTargetManagersList(this.DockingManager1); + +For more details please click [Linked DockingManager](https://help.syncfusion.com/wpf/docking/linked-manager) From 2b10348621929edf109ecf09ef1ec6181e2adf97 Mon Sep 17 00:00:00 2001 From: SyncfusionBuild <89958145+SyncfusionBuild@users.noreply.github.com> Date: Tue, 24 Jan 2023 16:21:36 +0530 Subject: [PATCH 2/2] Gitleaks action file added --- .github/workflows/gitleaks.yaml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/gitleaks.yaml diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..48a24dd --- /dev/null +++ b/.github/workflows/gitleaks.yaml @@ -0,0 +1,38 @@ +name: Secret Value found! +on: + push: + public: +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install the gitleaks + run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz + shell: pwsh + - name: Extract the tar file + run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz + - name: Generate the report + id: gitleaks + run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json + shell: bash + continue-on-error: true + - name: Setup NuGet.exe + if: steps.gitleaks.outcome != 'success' + uses: nuget/setup-nuget@v1 + with: + nuget-version: latest + - name: Install the dotnet + if: steps.gitleaks.outcome != 'success' + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '3.1.x' + - name: Install the report tool packages + if: steps.gitleaks.outcome != 'success' + run: | + nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/" + dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1 + dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" + exit 1