<commit_before>﻿using System;
using System.Windows.Input;
using Xamarin.Forms;

namespace XamForms.Controls
{
	public partial class Calendar : ContentView
	{

		/// <summary>
		/// Gets the title label in the month navigation.
		/// </summary>
		public Label TitleLabel { get; protected set; }
		
		#region TitleLeftArrow

		/// <summary>
		/// Gets the left button of the month navigation.
		/// </summary>
		public CalendarButton TitleLeftArrow { get; protected set; }
		
		/// <summary>
		/// Gets or sets the color of the left arrow.
		/// </summary>
		public Color TitleLeftArrowColor
		{
		    get
		    {
			return TitleLeftArrow.TextColor;
		    }
		    set
		    {
			TitleLeftArrow.TextColor = value;
		    }
		}
		
		#endregion
		
		#region TitleRightArrow

		/// <summary>
		/// Gets the right button of the month navigation.
		/// </summary>
		public CalendarButton TitleRightArrow { get; protected set; }
		
		/// <summary>
		/// Gets or sets the color of the right arrow.
		/// </summary>
		public Color TitleRightArrowColor
		{
		    get
		    {
			return TitleRightArrow.TextColor;
		    }
		    set
		    {
			TitleRightArrow.TextColor = value;
		    }
		}
		
		#endregion

		/// <summary>
		/// Gets the right button of the month navigation.
		/// </summary>
		public StackLayout MonthNavigationLayout { get; protected set; }

		#region MonthNavigationShow

		public static readonly BindableProperty MonthNavigationShowProperty =
			BindableProperty.Create(nameof(MonthNavigationShow), typeof(bool), typeof(Calendar), true,
									propertyChanged: (bindable, oldValue, newValue) => (bindable as Calendar).MonthNavigation.IsVisible = (bool)newValue);<commit_msg>Change color of arrows properties to be bindable<commit_after>﻿using System;
using System.Windows.Input;
using Xamarin.Forms;

namespace XamForms.Controls
{
	public partial class Calendar : ContentView
	{

		/// <summary>
		/// Gets the title label in the month navigation.
		/// </summary>
		public Label TitleLabel { get; protected set; }
		
		#region TitleLeftArrow

		/// <summary>
		/// Gets the left button of the month navigation.
		/// </summary>
		public CalendarButton TitleLeftArrow { get; protected set; }
		
		public static readonly BindableProperty TitleLeftArrowColorProperty =
			BindableProperty.Create(nameof(TitleLeftArrowColor), typeof(Color), typeof(Calendar), true,
									propertyChanged: (bindable, oldValue, newValue) => (bindable as Calendar).TitleLeftArrow.TextColor = (Color)newValue);

		/// <summary>
		/// Gets or sets the color of the left arrow.
		/// </summary>
		/// <value>The month navigation show.</value>
		public bool TitleLeftArrowColor
		{
			get { return (Color)GetValue(TitleLeftArrowColorProperty); }
			set { SetValue(TitleLeftArrowColorProperty, value); }
		}
		
		#endregion
		
		#region TitleRightArrow

		/// <summary>
		/// Gets the right button of the month navigation.
		/// </summary>
		public CalendarButton TitleRightArrow { get; protected set; }
		
		public static readonly BindableProperty TitleRightArrowColorProperty =
			BindableProperty.Create(nameof(TitleRightArrowColor), typeof(Color), typeof(Calendar), true,
									propertyChanged: (bindable, oldValue, newValue) => (bindable as Calendar).TitleRightArrow.TextColor = (Color)newValue);

		/// <summary>
		/// Gets or sets the color of the right arrow.
		/// </summary>
		/// <value>The month navigation show.</value>
		public bool TitleRightArrowColor
		{
			get { return (Color)GetValue(TitleRightArrowColorProperty); }
			set { SetValue(TitleRightArrowColorProperty, value); }
		}
		
		#endregion

		/// <summary>
		/// Gets the right button of the month navigation.
		/// </summary>
		public StackLayout MonthNavigationLayout { get; protected set; }

		#region MonthNavigationShow

		public static readonly BindableProperty MonthNavigationShowProperty =
			BindableProperty.Create(nameof(MonthNavigationShow), typeof(bool), typeof(Calendar), true,
									propertyChanged: (bindable, oldValue, newValue) => (bindable as Calendar).MonthNavigation.IsVisible = (bool)newValue);
{'fraction_non_alphanumeric': 0.10686274509803921, 'fraction_numerical': 0.0, 'mean_word_length': 3.3414893617021275, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7585450', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1130, 'n_words': 332}