Skip to content

XAMARIN-44184-Modified the README.md #1

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
38 changes: 38 additions & 0 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
@@ -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
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
**[View document in our Syncfusion Xamarin knowledge base](https://www.syncfusion.com/kb/12228/how-to-change-the-nonworking-days-in-xamarin-forms-schedule-sfschedule)**
# How to change the nonworking days in Xamarin.Forms Schedule (SfSchedule)

You can customize the non-working days of a week by using the [NonWorkingDays](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html#Syncfusion_SfSchedule_XForms_WorkWeekViewSettings_NonWorkingsDays) property of [WorkWeekViewSettings](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html) in Xamarin.Forms [SfSchedule](https://www.syncfusion.com/xamarin-ui-controls/xamarin-scheduler).

**C#**

Declare and define the nonworking days property in ViewModel.
```
public SchedulerViewModel()
{
    this.Appointments = new ScheduleAppointmentCollection();
    this.NonWorkingDays = new ObservableCollection<DayOfWeek>();
    NonWorkingDays.Add(DayOfWeek.Wednesday);
    NonWorkingDays.Add(DayOfWeek.Thursday);
    this.InitializeDataForBookings();
    this.BookingAppointments();
}
```

**XAML**
Bind the appointments to a schedule by using the DataSource property. You can bind the nonworking days collection to the `NonWorkingDays` property of `WorkWeekViewSettings`.
```
    <syncfusion:SfSchedule x:Name="Schedule" ScheduleView="WorkWeekView" DataSource="{Binding Appointments}">
        <syncfusion:SfSchedule.WorkWeekViewSettings>
            <syncfusion:WorkWeekViewSettings NonWorkingsDays="{Binding NonWorkingDays}"/>
        </syncfusion:SfSchedule.WorkWeekViewSettings>
         <syncfusion:SfSchedule.TimelineViewSettings>
            <syncfusion:TimelineViewSettings NonWorkingsDays="{Binding NonWorkingDays}"/>
        </syncfusion:SfSchedule.TimelineViewSettings>
        <syncfusion:SfSchedule.BindingContext>
            <local:SchedulerViewModel/>
        </syncfusion:SfSchedule.BindingContext>
    </syncfusion:SfSchedule>
</ContentPage>
```

KB article - [How to change the nonworking days in Xamarin.Forms Schedule (SfSchedule)](https://www.syncfusion.com/kb/12228/how-to-change-the-nonworking-days-in-xamarin-forms-schedule-sfschedule)