diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..d9a8e36 --- /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 \ No newline at end of file diff --git a/Images/SegmentedContolHeight.png b/Images/SegmentedContolHeight.png new file mode 100644 index 0000000..17c1ea2 Binary files /dev/null and b/Images/SegmentedContolHeight.png differ diff --git a/README.md b/README.md index ec1fbdb..6cb4c3f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,55 @@ -# how-to-customize-segment-contol-height-in-xamarin.forms +# How to customize segment control height in xamarin.forms How to customize segment control height in xamarin.forms + +## Syncfusion Controls + +This project uses the following Syncfusion controls: + +* [SfSegmentedControl](https://www.syncfusion.com/xamarin-ui-controls/xamarin-segmented-control) - To show the segmented control height sample in xamarin.forms + +## 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) + +## 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()); + } + +Refer to this [link](https://help.syncfusion.com/common/essential-studio/licensing/license-key#xamarinforms) for more details. + +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. + +## License + +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.