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 diff --git a/Images/Chip1.png b/Images/Chip1.png new file mode 100644 index 0000000..a639932 Binary files /dev/null and b/Images/Chip1.png differ diff --git a/Images/Chip2.png b/Images/Chip2.png new file mode 100644 index 0000000..c7ec5e2 Binary files /dev/null and b/Images/Chip2.png differ diff --git a/readme.md b/readme.md index 418e1f0..567f79d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# How-do-I-remove-the-indicator-icon-from-the-Xamarin.Forms-Chip +# How To Remove The Indicator Icon From The Xamarin.Forms SfChip This example demonstrates how to hide the check icon while selecting the chip in Filter ChipGroup @@ -8,73 +8,55 @@ To hide the selected chip selection indicator icon was achieved by adding the Sf In addition, we have to set the Transparent color to the BackgroundColor and BorderColor of the Chip in the ItemTemplate. It will take the BackgroundColor from the [SelectedChipBackgroundColor](https://help.syncfusion.com/xamarin/chips/customization#selectedchipbackgroundcolor) and [ChipBackgroundColor](https://help.syncfusion.com/xamarin/chips/customization#chipbackgroundcolor) properties of ChipGroup. TextColor of the chips has been updated based on the [IsChecked](https://help.syncfusion.com/cr/xamarin/Syncfusion.Buttons.XForms~Syncfusion.XForms.Buttons.SfButton~IsChecked.html) value with [ChipTextColor](https://help.syncfusion.com/xamarin/chips/customization#chiptextcolor) and [SelectedChipTextColor](https://help.syncfusion.com/xamarin/chips/customization#selectedchiptextcolor) properties as per the following code example. -**XAML:** - -``` - -… - - - - - - - - - - - - - -… - -``` - -**C#:** - -``` - -private void SessionListFilterOptions_SelectionChanged(object sender, Syncfusion.Buttons.XForms.SfChip.SelectionChangedEventArgs e) - { - if (e.AddedItem != null) - { - (e.AddedItem as Language).IsChecked = true; - } +## Syncfusion Controls - if (e.RemovedItem != null) - { - (e.RemovedItem as Language).IsChecked = false; - } - } +This project uses the following Syncfusion controls: + +* [SfChip](https://www.syncfusion.com/xamarin-ui-controls/xamarin-chips) - To show the sfchip and sfchipgroup. + +## Screenshots + + +## Supported platforms + +| Platforms | Supported versions | +| --------- | ------------------ | +| Android | API level 19 and later versions | +| iOS | iOS 9.0 and later versions | + +Refer to the following link for more details: +[System Requirements](https://help.syncfusion.com/xamarin/installation-and-upgrade/system-requirements) +## Requirements to run the sample -``` +* [Visual Studio 2017](https://visualstudio.microsoft.com/downloads/) or [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/) +* Xamarin add-ons for Visual Studio (available in Visual Studio installer) -See Also: +## How to run the sample + +1. Clone the sample and open it in Visual Studio. + + *Note: If you download the sample using the "Download ZIP" option, right-click it, select Properties, and then select Unblock.* + +2. Register your license key in the App.cs file as demonstrated in the following code. + + public App() + { + //Register Syncfusion license + Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY"); + + InitializeComponent(); + + MainPage = new NavigationPage(new MainPage()); + } -[What are the types available in ChipGroup?](https://help.syncfusion.com/xamarin/chips/types) +Refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key#xamarinforms) for more details. -[What are the customizations available in ChipGroup?](https://help.syncfusion.com/xamarin/chips/customization) +3. Set any one of the platform specific projects (iOS, Android or UWP) as a start-up project. +4. Clean and build the application. +5. Run the application. -[How to notify selection changes in ChipGroup?](https://help.syncfusion.com/xamarin/chips/events#selectionchanged-event) +## License -Also refer our [feature tour](https://www.syncfusion.com/xamarin-ui-controls/xamarin-chips) page to know more features available in our chips. +Syncfusion has no liability for any damage or consequence that may arise by using or viewing the samples. The samples are for demonstrative purposes, and if you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion’s samples. -## Troubleshooting ## -### Path too long exception -If you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.