Add comments for the media hub
authorGeunsun, Lee <gs86.lee@samsung.com>
Mon, 22 May 2017 09:44:19 +0000 (18:44 +0900)
committerGeunsun, Lee <gs86.lee@samsung.com>
Mon, 22 May 2017 09:45:24 +0000 (18:45 +0900)
Change-Id: Ia2baba90ab0f3a70df4b94a858fbff47abfc6740

TVMediaHub/TVMediaHub.Tizen/Models/StorageProvider.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/ImageTabViewModelLocator.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/VideoPlayerViewModel.cs
TVMediaHub/TVMediaHub.Tizen/ViewModels/VideoTabViewModel.cs
TVMediaHub/TVMediaHub.Tizen/Views/ImageTab.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoPlayer.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/VideoTab.xaml.cs

index f60db2a..0ed2e48 100755 (executable)
@@ -19,13 +19,24 @@ using Tizen.Content.MediaContent;
 
 namespace TVMediaHub.Tizen.Models
 {
+    /// <summary>
+    /// A StorageProvider for the media hub
+    /// </summary>
     public class StorageProvider
     {
+        /// <summary>
+        /// A constructor
+        /// </summary>
         public StorageProvider()
         {
+            /// Connect to the media database to search, insert, remove or modify media information.
             ContentDatabase.Connect();
         }
 
+        /// <summary>
+        /// Returns the ContentCollections with optional filter from the media database.
+        /// </summary>
+        /// <returns>Task with the list of the ContentCollection</returns>
         public IEnumerable<Storage> Read()
         {
             return ContentManager.Database.SelectAll<Storage>(null);
index 9c44f9d..b602ecd 100755 (executable)
@@ -25,6 +25,7 @@ namespace TVMediaHub.Tizen.ViewModels
         /// A instance of the ImageTabViewModel
         /// </summary>
         private static ImageTabViewModel _viewModel = new ImageTabViewModel();
+
         /// <summary>
         /// Gets the instance of the ImageTabViewModel
         /// </summary>
index 89a51ce..fee3ac6 100755 (executable)
  * limitations under the License.
  */
 
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
 namespace TVMediaHub.Tizen.ViewModels
 {
+    /// <summary>
+    /// A class for ViewModel of Video Player
+    /// </summary>
     public class VideoPlayerViewModel
     {
     }
index 694bff1..1c7e778 100755 (executable)
@@ -19,11 +19,8 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.Threading;
-using System.Threading.Tasks;
 using System.Windows.Input;
-using Tizen;
 using Tizen.Content.MediaContent;
-using Tizen.Xamarin.Forms.Extension;
 using TVMediaHub.Tizen.Models;
 using TVMediaHub.Tizen.Utils;
 using Xamarin.Forms;
@@ -39,6 +36,7 @@ namespace TVMediaHub.Tizen.ViewModels
         /// A event that is occurred when property of ViewModel is changed
         /// </summary>
         public event PropertyChangedEventHandler PropertyChanged;
+
         /// <summary>
         /// A method for invoking PropertyChanged event
         /// </summary>
index fd79bfe..b5d498f 100755 (executable)
@@ -30,10 +30,13 @@ using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
 namespace TVMediaHub.Tizen.Views
 {
     /// <summary>
-    /// A custom ContentPage for displaying Image tab
+    /// A custom ContentPage for displaying the image tab
     /// </summary>
     public partial class ImageTab : ContentPageEx
     {
+        /// <summary>
+        /// The flag whether content is ready
+        /// </summary>
         private bool IsContentReady = false;
 
         /// <summary>
@@ -96,6 +99,7 @@ namespace TVMediaHub.Tizen.Views
         /// Identifies the OnClickCommand bindable property
         /// </summary>
         public static readonly BindableProperty OnClickCommandProperty = BindableProperty.Create("OnClickCommand", typeof(ICommand), typeof(ImageItem), default(ICommand));
+
         /// <summary>
         /// Gets or sets OnClickCommand
         /// </summary>
@@ -126,6 +130,9 @@ namespace TVMediaHub.Tizen.Views
             set { SetValue(IsDeleteStatusProperty, value); }
         }
 
+        /// <summary>
+        /// A list of bottom buttons
+        /// </summary>
         private List<KeyValuePair<double, Button>> BottomButtonList;
 
         /// <summary>
@@ -295,7 +302,7 @@ namespace TVMediaHub.Tizen.Views
         /// <summary>
         /// A method for setting footer's focus chain
         /// </summary>
-        /// <param name="scrollX"></param>
+        /// <param name="scrollX">The current X position of the scroll</param>
         private void SetFooterFocusChain(double scrollX)
         {
             var Padding = SizeUtils.GetWidthSize(96);
@@ -354,6 +361,12 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// Moves the scroller to the given target
+        /// </summary>
+        /// <param name="targetX">The given target</param>
+        /// <param name="targetWidth">The width of the given target</param>
+        /// <param name="padding">The padding of the given target</param>
         private void ScrollToTarget(double targetX, int targetWidth, int padding)
         {
             var ScrollX = ImageTabScrollView.ScrollX;
@@ -424,7 +437,6 @@ namespace TVMediaHub.Tizen.Views
         /// <param name="e">A SelectedItemChanged event's argument</param>
         private void OnSourceChanged(object sender, SelectedItemChangedEventArgs e)
         {
-
         }
 
         /// <summary>
index e91165a..16c1bd7 100755 (executable)
@@ -28,10 +28,13 @@ namespace TVMediaHub.Tizen.Views
     using Tizen = Xamarin.Forms.PlatformConfiguration.Tizen;
 
     /// <summary>
-    /// @TODO: Comment
+    /// A custom ContentPage for displaying the video player
     /// </summary>
     public partial class VideoPlayer : ContentPageEx
     {
+        /// <summary>
+        /// Enumeration for the state of the control area
+        /// </summary>
         enum ControlAreaState
         {
             SHOW = 0,
@@ -39,21 +42,56 @@ namespace TVMediaHub.Tizen.Views
             AUTO,
         };
 
-        private int duration;
+        /// <summary>
+        /// The media duration in Milliseconds.
+        /// </summary>
+        private int sourceDuration;
+
+        /// <summary>
+        /// The instance of the player
+        /// </summary>
         private Player playerInstance;
+
+        /// <summary>
+        /// The window of the full screen
+        /// </summary>
         private ElmSharp.Window fullScreenWindow;
 #if MULTIMEDIA_API_VERSION_1_0_55
         private Display playerDisplayInstance;
 #else
+        /// <summary>
+        /// The instance of the player display
+        /// </summary>
         private PlayerDisplay playerDisplayInstance;
 #endif
+        /// <summary>
+        /// The media source
+        /// </summary>
         private MediaUriSource videoMediaSource;
+
+        /// <summary>
+        /// The height size(72)
+        /// </summary>
         private double height72 = SizeUtils.GetHeightSize(72);
 
+        /// <summary>
+        /// The key name list to handle key event
+        /// </summary>
         private string[] remoteKeys = new string[] { "Up", "Down", "Left", "Right", "XF86Menu" };
+
+        /// <summary>
+        /// The timer to handle the control area
+        /// </summary>
         private IntPtr timer = default(IntPtr);
+
+        /// <summary>
+        /// The interval of the timer
+        /// </summary>
         private double timerInterval = 5.0;
 
+        /// <summary>
+        /// Gets or sets whether play status is back forward or back rewind
+        /// </summary>
         private bool IsInPlayBackRewFwd
         {
             set
@@ -77,7 +115,14 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// The value for play back forward index
+        /// </summary>
         private int playBackForwardIndex;
+
+        /// <summary>
+        /// Gets or sets play back forward index
+        /// </summary>
         private int PlayBackForwardIndex
         {
             set
@@ -91,8 +136,14 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// The value for play back rewind index
+        /// </summary>
         private int playBackRewindIndex;
 
+        /// <summary>
+        /// Gets or sets play back rewind index
+        /// </summary>
         private int PlayBackRewindIndex
         {
             set
@@ -106,15 +157,28 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// The value for the playback rate
+        /// </summary>
         private float[] PlayBackRate = { 1, 2, 4 };
 
+        /// <summary>
+        /// Identifies the CurrenVideo bindable property
+        /// </summary>
         public static readonly BindableProperty CurrentVideoProperty = BindableProperty.Create("CurrentVideo", typeof(MediaInformation), typeof(VideoPlayer), null);
+
+        /// <summary>
+        /// Gets or sets CurrentVideo
+        /// </summary>
         public MediaInformation CurrentVideo
         {
             get { return (MediaInformation)GetValue(CurrentVideoProperty); }
             set { SetValue(CurrentVideoProperty, value); }
         }
 
+        /// <summary>
+        /// A constructor
+        /// </summary>
         public VideoPlayer()
         {
             BindingContext = VideoTabViewModelLocator.ViewModel;
@@ -152,6 +216,9 @@ namespace TVMediaHub.Tizen.Views
             };
         }
 
+        /// <summary>
+        /// Grabs the key of the remote controller
+        /// </summary>
         private void GrabRemoteKeys()
         {
             foreach (var key in remoteKeys)
@@ -162,6 +229,9 @@ namespace TVMediaHub.Tizen.Views
             App.MainWindow.KeyDown += RemoteKeyDownListener;
         }
 
+        /// <summary>
+        /// Ungrabs the key of the remote controller
+        /// </summary>
         private void UngrabRemoteKeys()
         {
             App.MainWindow.KeyDown -= RemoteKeyDownListener;
@@ -172,11 +242,20 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// KeyDown will be triggered when key is preesd down
+        /// </summary>
+        /// <param name="sender">The object that raised the event</param>
+        /// <param name="e">Information about the event</param>
         private void RemoteKeyDownListener(object sender, ElmSharp.EvasKeyEventArgs e)
         {
             SetControlAreaState(ControlAreaState.AUTO);
         }
 
+        /// <summary>
+        /// Sets the status of the control area
+        /// </summary>
+        /// <param name="state">The status to be set</param>
         private void SetControlAreaState(ControlAreaState state)
         {
             switch (state)
@@ -226,12 +305,23 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// Initialize the timer of the player
+        /// </summary>
         private void InitializeTimer()
         {
             Device.StartTimer(new TimeSpan(0, 0, 0, 0, 100), TimerElapsed);
         }
 
+        /// <summary>
+        /// The previous status of the player
+        /// </summary>
         PlayerState prevPlayerStatus = PlayerState.Idle;
+
+        /// <summary>
+        /// Display elapsed time of the media source
+        /// </summary>
+        /// <returns>If the player state is playing or paused, false; otherwise, true</returns>
         private bool TimerElapsed()
         {
             Device.BeginInvokeOnMainThread(() =>
@@ -245,7 +335,7 @@ namespace TVMediaHub.Tizen.Views
 
                 int playPosition = playerInstance.GetPlayPosition();
                 SetPlayTime(playPosition);
-                progress.Progress = (double)playPosition / duration;
+                progress.Progress = (double)playPosition / sourceDuration;
                 DbgPort.D("Status : " + playerInstance.State + "/" + prevPlayerStatus + ", temp : " + playPosition + ", progress : " + progress.Progress.ToString());
 
                 if (prevPlayerStatus != playerInstance.State)
@@ -274,7 +364,7 @@ namespace TVMediaHub.Tizen.Views
 
                 // TODO : check later, hotfix for VD GBM player
                 if ((PlayBackRewindIndex != 0 && playPosition < 4000)
-                    || PlayBackForwardIndex != 0 && playPosition > (duration - 6000))
+                    || PlayBackForwardIndex != 0 && playPosition > (sourceDuration - 6000))
                 {
                     IsInPlayBackRewFwd = false;
                     playerInstance.SetPlaybackRate((PlayBackRate[0]));
@@ -295,6 +385,9 @@ namespace TVMediaHub.Tizen.Views
             return true;
         }
 
+        /// <summary>
+        /// Initialize the player display
+        /// </summary>
         private void InitializePlayerDisplay()
         {
             // Create Player Display and Window
@@ -331,7 +424,6 @@ namespace TVMediaHub.Tizen.Views
 
                     SetControlAreaState(ControlAreaState.AUTO);
                 }
-
             };
             DbgPort.D("ElmSharp.Window has been created");
 #if MULTIMEDIA_API_VERSION_1_0_55
@@ -342,6 +434,9 @@ namespace TVMediaHub.Tizen.Views
             DbgPort.D("Player Display has been created");
         }
 
+        /// <summary>
+        /// Initialize the player
+        /// </summary>
         private void InitializePlayer()
         {
             // Create Player Instance
@@ -375,6 +470,9 @@ namespace TVMediaHub.Tizen.Views
             playerInstance.SetSource(videoMediaSource);
         }
 
+        /// <summary>
+        /// Prepares the media player for playback, asynchronously
+        /// </summary>
         private async void PrepareAsync()
         {
             DbgPort.D("Prepare player");
@@ -383,7 +481,7 @@ namespace TVMediaHub.Tizen.Views
 
             if (playerInstance.State == PlayerState.Ready)
             {
-                duration = playerInstance.StreamInfo.GetDuration();
+                sourceDuration = playerInstance.StreamInfo.GetDuration();
                 SetRemainTime();
                 // If you don't want to play automatically whenever VideoPlayer is opened, remove below line.
                 // TODO: Remove this later, only for TDC
@@ -393,6 +491,10 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// Sets the play time on the control area
+        /// </summary>
+        /// <param name="time"></param>
         private void SetPlayTime(int time)
         {
             int second = (time / 1000) % 60;
@@ -404,17 +506,23 @@ namespace TVMediaHub.Tizen.Views
             PlayTimeSec.Text = string.Format("{0:D2}", second);
         }
 
+        /// <summary>
+        /// Sets the remain time on the control area
+        /// </summary>
         private void SetRemainTime()
         {
-            int second = (duration / 1000) % 60;
-            int minute = (duration / (1000 * 60)) % 60;
-            int hour = (duration / (1000 * 60 * 60)) % 24;
+            int second = (sourceDuration / 1000) % 60;
+            int minute = (sourceDuration / (1000 * 60)) % 60;
+            int hour = (sourceDuration / (1000 * 60 * 60)) % 24;
 
             RemainTimeHr.Text = string.Format("{0:D2}", hour);
             RemainTimeMin.Text = string.Format("{0:D2}", minute);
             RemainTimeSec.Text = string.Format("{0:D2}", second);
         }
 
+        /// <summary>
+        /// A method for initializing page when the page is appeared
+        /// </summary>
         protected override void InitializePage()
         {
             DbgPort.D("Initialize Page");
@@ -445,9 +553,13 @@ namespace TVMediaHub.Tizen.Views
             GrabRemoteKeys();
         }
 
+        /// <summary>
+        /// Hide the control area
+        /// </summary>
+        /// <returns></returns>
         private Func<bool> HideControlAreaHandler()
         {
-            return delegate()
+            return delegate ()
             {
                 SetControlAreaState(ControlAreaState.HIDE);
 
@@ -457,6 +569,9 @@ namespace TVMediaHub.Tizen.Views
             };
         }
 
+        /// <summary>
+        /// A method for finalizing page when the page is disappeared
+        /// </summary>
         protected override void FinalizePage()
         {
             DbgPort.D("Finalize Page");
@@ -470,6 +585,9 @@ namespace TVMediaHub.Tizen.Views
             UngrabRemoteKeys();
         }
 
+        /// <summary>
+        /// Starts or resumes playback
+        /// </summary>
         private void PlayVideo()
         {
             DbgPort.D("ElmSharp.Window is activated");
@@ -489,6 +607,9 @@ namespace TVMediaHub.Tizen.Views
             VideoTabViewModelLocator.ViewModel.SetPlayedAt(CurrentVideo);
         }
 
+        /// <summary>
+        /// Initialize the font size for the player
+        /// </summary>
         private void InitializeFontSize()
         {
             int fontSize44 = SizeUtils.GetFontSize(44);
@@ -526,6 +647,9 @@ namespace TVMediaHub.Tizen.Views
             NumText.On<Tizen>().SetFontWeight(FontWeight.Light);
         }
 
+        /// <summary>
+        /// Initialize control buttons for the player
+        /// </summary>
         private void InitializeButtons()
         {
             MediaHubButton[] buttons = new MediaHubButton[6] { PreviousBtn, RewindBtn, PausePlayBtn, ForwardBtn, NextBtn, OptionBtn };
@@ -540,6 +664,11 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// This method is called when previous button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private async void PreviousBtnClicked(object sender, EventArgs e)
         {
             if (ControlArea.Opacity == 0)
@@ -564,6 +693,11 @@ namespace TVMediaHub.Tizen.Views
             progress.Progress = 0.0;
         }
 
+        /// <summary>
+        /// This method is called when rewind button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void RewindBtnClicked(object sender, EventArgs e)
         {
             PlayBackForwardIndex = 0;
@@ -617,6 +751,11 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// This method is called when pause/play button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void PausePlayBtnClicked(object sender, EventArgs e)
         {
             if (SpeedInfo.Opacity == 1)
@@ -653,6 +792,11 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// This method is called when forward button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void ForwardBtnClicked(object sender, EventArgs e)
         {
             PlayBackRewindIndex = 0;
@@ -685,6 +829,11 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// This method is called when next button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private async void NextBtnClicked(object sender, EventArgs e)
         {
             if (ControlArea.Opacity == 0)
@@ -697,7 +846,7 @@ namespace TVMediaHub.Tizen.Views
 
             try
             {
-                await playerInstance.SetPlayPositionAsync(duration - 500, true);
+                await playerInstance.SetPlayPositionAsync(sourceDuration - 500, true);
             }
             catch (Exception err)
             {
@@ -708,6 +857,9 @@ namespace TVMediaHub.Tizen.Views
             progress.Progress = 1.0;
         }
 
+        /// <summary>
+        /// A method for running hide animation
+        /// </summary>
         public override void RunHideAnimation()
         {
             if (SpeedInfo.Opacity == 1)
@@ -722,6 +874,9 @@ namespace TVMediaHub.Tizen.Views
             TitleLabel.FadeTo(0, 667, Easing.CubicInOut);
         }
 
+        /// <summary>
+        /// A method for running show animation
+        /// </summary>
         public override void RunShowAnimation()
         {
             GradientDim.Opacity = 0;
index f5af4a0..5edaf1f 100644 (file)
@@ -29,11 +29,15 @@ using Xamarin.Forms.PlatformConfiguration.TizenSpecific;
 namespace TVMediaHub.Tizen.Views
 {
     /// <summary>
-    /// @TODO: Comment
+    /// A custom ContentPage for displaying the video tab
     /// </summary>
     public partial class VideoTab : ContentPageEx
     {
+        /// <summary>
+        /// The flag whether content is ready
+        /// </summary>
         private bool IsContentReady = false;
+
         /// <summary>
         /// Identifies the ItemsSource bindable property
         /// </summary>
@@ -48,14 +52,23 @@ namespace TVMediaHub.Tizen.Views
             set { SetValue(ItemsSourceProperty, value); }
         }
 
+        /// <summary>
+        /// Identifies the GetInformationCommand bindable property
+        /// </summary>
         public static readonly BindableProperty GetInformationsCommandProperty = BindableProperty.Create("GetInformationsCommand", typeof(ICommand), typeof(VideoTab), default(ICommand));
 
+        /// <summary>
+        /// Gets or sets GetInformation Command
+        /// </summary>
         public ICommand GetInformationsCommand
         {
             get { return (ICommand)GetValue(GetInformationsCommandProperty); }
             set { SetValue(GetInformationsCommandProperty, value); }
         }
 
+        /// <summary>
+        /// Identifies the IsDeleteStatus bindable property
+        /// </summary>
         public static readonly BindableProperty IsDeleteStatusProperty = BindableProperty.Create("IsDeleteStatus", typeof(bool), typeof(VideoTab), false);
 
         /// <summary>
@@ -95,7 +108,14 @@ namespace TVMediaHub.Tizen.Views
             set { SetValue(ChangeSortOptionCommandProperty, value); }
         }
 
+        /// <summary>
+        /// Identifies the OnClickCommand bindable property
+        /// </summary>
         public static readonly BindableProperty OnClickCommandProperty = BindableProperty.Create("OnClickCommand", typeof(ICommand), typeof(VideoItem), default(ICommand));
+
+        /// <summary>
+        /// Gets or sets OnClick Command
+        /// </summary>
         public ICommand OnClickCommand
         {
             get
@@ -109,8 +129,14 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// A list of bottom buttons
+        /// </summary>
         private List<KeyValuePair<double, Button>> BottomButtonList;
 
+        /// <summary>
+        /// A constructor
+        /// </summary>
         public VideoTab()
         {
             BindingContext = VideoTabViewModelLocator.ViewModel;
@@ -118,14 +144,20 @@ namespace TVMediaHub.Tizen.Views
             InitializeData();
             InitializeSize();
             InitializeFooter();
-            ItemsSource.CollectionChanged += ItemsSource_CollectionChanged;
+            ItemsSource.CollectionChanged += ItemsSourceCollectionChanged;
         }
 
+        /// <summary>
+        /// Initialize the data that is used in this class
+        /// </summary>
         private void InitializeData()
         {
             BottomButtonList = new List<KeyValuePair<double, Button>>();
         }
 
+        /// <summary>
+        /// Initialize the size that is used in this class
+        /// </summary>
         private void InitializeSize()
         {
             VideoTabList.Padding = new Thickness(SizeUtils.GetWidthSize(96), SizeUtils.GetWidthSize(0));
@@ -137,9 +169,11 @@ namespace TVMediaHub.Tizen.Views
             LabelNoContents.FontSize = SizeUtils.GetFontSize(28);
         }
 
+        /// <summary>
+        /// Initialize elements on footer area
+        /// </summary>
         private void InitializeFooter()
         {
-
             FooterNormal.OnDropdownSourceItemSelected += OnSourceChanged;
 
             FooterNormal.OnDropdownSortItemSelected += OnSortOptionChanged;
@@ -151,6 +185,9 @@ namespace TVMediaHub.Tizen.Views
             FooterDelete.CancelButtonEvent += OnCancelClicked;
         }
 
+        /// <summary>
+        /// A method for initializing page when the page is appeared
+        /// </summary>
         protected override void InitializePage()
         {
             if (IsContentReady == false)
@@ -160,6 +197,9 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// A method for finalizing page when the page is disappeared
+        /// </summary>
         protected override void FinalizePage()
         {
             /*
@@ -176,7 +216,12 @@ namespace TVMediaHub.Tizen.Views
             */
         }
 
-        private void ItemsSource_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
+        /// <summary>
+        /// Occurs when an item is added, removed, changed, moved, or the entire list is refreshed.
+        /// </summary>
+        /// <param name="sender">The object that raised the event</param>
+        /// <param name="e">Information about the event</param>
+        private void ItemsSourceCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
         {
             if (e.Action.ToString().Equals("Add"))
             {
@@ -251,6 +296,10 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// Sets the focust chain on footer area
+        /// </summary>
+        /// <param name="scrollX">The current X position of the scroll</param>
         private void SetFooterFocusChain(double scrollX)
         {
             var Padding = SizeUtils.GetWidthSize(96);
@@ -309,6 +358,12 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// Moves the scroller to the given target
+        /// </summary>
+        /// <param name="targetX">The given target</param>
+        /// <param name="targetWidth">The width of the given target</param>
+        /// <param name="padding">The padding of the given target</param>
         private void ScrollToTarget(double targetX, int targetWidth, int padding)
         {
             var ScrollX = VideoTabScrollView.ScrollX;
@@ -336,6 +391,11 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// This method is called when cancel button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void OnCancelClicked(object sender, EventArgs e)
         {
             ChangeTabStatusCommand?.Execute("");
@@ -344,11 +404,20 @@ namespace TVMediaHub.Tizen.Views
             SetFooterFocusChain(VideoTabScrollView.ScrollX);
         }
 
+        /// <summary>
+        /// This method is called when SelectAll button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void OnSelectAllClicked(object sender, EventArgs e)
         {
-
         }
 
+        /// <summary>
+        /// This method is called when OK button is clicked
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A event's argument</param>
         private void OnOKClicked(object sender, EventArgs e)
         {
             // TODO : Change to delete Content command
@@ -358,16 +427,31 @@ namespace TVMediaHub.Tizen.Views
             SetFooterFocusChain(VideoTabScrollView.ScrollX);
         }
 
+        /// <summary>
+        /// This method is called when Source option is changed
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A SelectedItemChanged event's argument</param>
         private void OnSourceChanged(object sender, SelectedItemChangedEventArgs e)
         {
             // TODO : Source Change
         }
 
+        /// <summary>
+        /// This method is called when Sort option is changed
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A SelectedItemChanged event's argument</param>
         private void OnSortOptionChanged(object sender, SelectedItemChangedEventArgs e)
         {
             ChangeSortOptionCommand?.Execute(e.SelectedItem);
         }
 
+        /// <summary>
+        /// This method is called when option menu is changed
+        /// </summary>
+        /// <param name="sender">The source of the event</param>
+        /// <param name="e">A SelectedItemChanged event's argument</param>
         private void OnOptionSelected(object sender, ContextPopupSelectedEventArgs e)
         {
             var label = e.Item.Label.ToLower();
@@ -380,6 +464,9 @@ namespace TVMediaHub.Tizen.Views
             }
         }
 
+        /// <summary>
+        /// A method for running hide animation
+        /// </summary>
 #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
         public override async void RunHideAnimation()
 #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously
@@ -390,6 +477,9 @@ namespace TVMediaHub.Tizen.Views
 #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
         }
 
+        /// <summary>
+        /// A method for running show animation
+        /// </summary>
 #pragma warning disable CS1998 // Async method lacks 'await' operators and will run synchronously
         public override async void RunShowAnimation()
 #pragma warning restore CS1998 // Async method lacks 'await' operators and will run synchronously