summaryrefslogtreecommitdiff
path: root/TVHome
diff options
context:
space:
mode:
authorHeonjae Jang <heonjae.jang@samsung.com>2017-05-19 15:54:30 +0900
committerChulSeung Kim <charles0.kim@samsung.com>2017-06-08 18:34:56 +0900
commit2d23315c27eb9d09a176de5e4598978169d9fd78 (patch)
tree7ac2989ac77f64a68ab71d45c77f34dbedb41261 /TVHome
parent340d7dd87d65c3408a8ad832d609d650940459fa (diff)
downloadhome-2d23315c27eb9d09a176de5e4598978169d9fd78.tar.gz
home-2d23315c27eb9d09a176de5e4598978169d9fd78.tar.bz2
home-2d23315c27eb9d09a176de5e4598978169d9fd78.zip
Add Comments TVHome, TVApps
Change-Id: Ibc8c3daf9bd33e2a424e9b6b541a6d98c5614178 Signed-off-by: Heonjae Jang <heonjae.jang@samsung.com>
Diffstat (limited to 'TVHome')
-rw-r--r--TVHome/TVHome.TizenTV/Sniper.cs96
-rw-r--r--TVHome/TVHome.TizenTV/TVHome.TizenTV.nuget.targets17
-rwxr-xr-xTVHome/TVHome.TizenTV/tizen-manifest.xml4
-rwxr-xr-xTVHome/TVHome/Controls/MainPanelButton.xaml.cs4
-rwxr-xr-xTVHome/TVHome/Controls/PanelButton.cs6
-rwxr-xr-xTVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs5
-rwxr-xr-xTVHome/TVHome/Controls/SubPanelButton.xaml.cs4
-rwxr-xr-xTVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs4
-rwxr-xr-xTVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs9
-rwxr-xr-xTVHome/TVHome/ViewModels/MainPageViewModel.cs43
-rwxr-xr-xTVHome/TVHome/Views/MainPage.xaml.cs16
-rwxr-xr-xTVHome/TVHome/Views/MainPanel.xaml.cs21
-rwxr-xr-xTVHome/TVHome/Views/Panel.cs20
-rwxr-xr-xTVHome/TVHome/Views/SubPanel.xaml.cs9
-rwxr-xr-xTVHome/TVHome/Views/SubThumbnailPanel.xaml.cs16
15 files changed, 251 insertions, 23 deletions
diff --git a/TVHome/TVHome.TizenTV/Sniper.cs b/TVHome/TVHome.TizenTV/Sniper.cs
index 0c277f6..3fc0b5e 100644
--- a/TVHome/TVHome.TizenTV/Sniper.cs
+++ b/TVHome/TVHome.TizenTV/Sniper.cs
@@ -6,19 +6,59 @@ using Tizen;
namespace CoreApp
{
+ /// <summary>
+ /// Handles recent screen shot of launched applications
+ /// </summary>
public class Sniper
{
+ /// <summary>
+ /// Main window of the application
+ /// </summary>
private IntPtr nativeWindow;
+
+ /// <summary>
+ /// A path of storage for recent screen shot of launched application
+ /// </summary>
private string storagePath;
+
+ /// <summary>
+ /// A width of recent screen shot
+ /// </summary>
private int imageWidth;
+
+ /// <summary>
+ /// A height of recent screen shot
+ /// </summary>
private int imageHeight;
+
+ /// <summary>
+ /// A flag indicates whether updating recent screen shot or not
+ /// </summary>
public bool SkipUpdateFlag;
+
+ /// <summary>
+ /// Callbacks of sniper events
+ /// </summary>
private static InterOp.SniperCallback callbacks;
+ /// <summary>
+ /// A EventHandler handles recent screen shot update event
+ /// </summary>
public event EventHandler<Event> UpdatedEvent;
+
+ /// <summary>
+ /// A EventHandler handles add or remove application
+ /// </summary>
public event EventHandler<Event> AddRemoveEvent;
+
+ /// <summary>
+ /// A EventHandler handles skip update event
+ /// </summary>
public event EventHandler<Event> SkipUpdateEvent;
+ /// <summary>
+ /// TODO : Comment this
+ /// </summary>
public class Event : EventArgs
{
public string AppId;
@@ -26,11 +66,23 @@ namespace CoreApp
public string Info;
}
+ /// <summary>
+ /// A method for writing debug log
+ /// </summary>
+ /// <param name="message">A log message</param>
+ /// <param name="file">A path of caller file</param>
+ /// <param name="func">A name of caller function</param>
+ /// <param name="line">A line number of caller line</param>
private void WriteLog(string message, [CallerFilePath] string file = "", [CallerMemberName] string func = "", [CallerLineNumber] int line = 0)
{
Log.Debug("sniper", message);
}
+ /// <summary>
+ /// A method for handling launched application
+ /// </summary>
+ /// <param name="appId">A ID of launched application</param>
+ /// <param name="instanceId">A instance ID of launched application</param>
private void AddedCallback(string appId, string instanceId)
{
EventHandler<Event> handler = AddRemoveEvent;
@@ -60,6 +112,11 @@ namespace CoreApp
handler(this, eventInfo);
}
+ /// <summary>
+ /// A method for handling terminated application
+ /// </summary>
+ /// <param name="appId">A ID of terminated application</param>
+ /// <param name="instanceId">A instance ID of terminated application</param>
private void RemovedCallback(string appId, string instanceId)
{
EventHandler<Event> handler = AddRemoveEvent;
@@ -89,6 +146,12 @@ namespace CoreApp
handler(this, eventInfo);
}
+ /// <summary>
+ /// A method for handling application screen is updated
+ /// </summary>
+ /// <param name="appId">A ID of application that screen is updated</param>
+ /// <param name="instanceId">A instance ID of application that screen is updated</param>
+ /// <param name="Filename">A path of application screen shot</param>
private void UpdatedCallback(string appId, string instanceId, string Filename)
{
EventHandler<Event> handler = UpdatedEvent;
@@ -118,6 +181,13 @@ namespace CoreApp
handler(this, eventInfo);
}
+ /// <summary>
+ /// A method for handling screen update is skipped
+ /// </summary>
+ /// <param name="appId">A ID of application that screen update is skipped</param>
+ /// <param name="instanceId">A instance ID of application that screen update is skipped</param>
+ /// <param name="Filename">A path of application screen shot</param>
+ /// <returns>Returns finish code</returns>
private int SkipUpdateCallback(string appId, string instanceId, string Filename)
{
EventHandler<Event> handler = SkipUpdateEvent;
@@ -156,15 +226,26 @@ namespace CoreApp
return 0;
}
- public Sniper(IntPtr win, string path, int w, int h)
+ /// <summary>
+ /// Constructor
+ /// </summary>
+ /// <param name="window">Main window of this application</param>
+ /// <param name="path">Storage path</param>
+ /// <param name="width">Screen shot width</param>
+ /// <param name="height">Screen shot height</param>
+ public Sniper(IntPtr window, string path, int width, int height)
{
- nativeWindow = win;
+ nativeWindow = window;
storagePath = path;
- imageWidth = w;
- imageHeight = h;
+ imageWidth = width;
+ imageHeight = height;
SkipUpdateFlag = false;
}
+ /// <summary>
+ /// A method for starting monitoring
+ /// Adds callbacks and initialize Sniper class
+ /// </summary>
public void StartMonitor()
{
try
@@ -192,6 +273,9 @@ namespace CoreApp
WriteLog("Sniper starts monitoring : " + storagePath + "ImageSize : " + imageWidth + "x" + imageHeight);
}
+ /// <summary>
+ /// A method stops monitoring
+ /// </summary>
public void StopMonitor()
{
try
@@ -206,6 +290,10 @@ namespace CoreApp
WriteLog("Sniper stops monitoring : " + storagePath + "ImageSize : " + imageWidth + "x" + imageHeight);
}
+ /// <summary>
+ /// A method requests updating application screen shot
+ /// </summary>
+ /// <param name="instanceId">A instance ID of application</param>
public void RequestUpdate(string instanceId)
{
try
diff --git a/TVHome/TVHome.TizenTV/TVHome.TizenTV.nuget.targets b/TVHome/TVHome.TizenTV/TVHome.TizenTV.nuget.targets
index 66cefbe..c577474 100644
--- a/TVHome/TVHome.TizenTV/TVHome.TizenTV.nuget.targets
+++ b/TVHome/TVHome.TizenTV/TVHome.TizenTV.nuget.targets
@@ -1,9 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup Condition="'$(NuGetPackageRoot)' == ''">
- <NuGetPackageRoot>$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">D:\git\home\TVHome\TVHome.TizenTV\TVHome.TizenTV.project.lock.json</ProjectAssetsFile>
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\samsung\.nuget\packages\</NuGetPackageFolders>
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">ProjectJson</NuGetProjectStyle>
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">4.2.0</NuGetToolVersion>
</PropertyGroup>
- <ImportGroup>
- <Import Project="$(NuGetPackageRoot)\Xamarin.Forms\2.3.5-r233-003\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('$(NuGetPackageRoot)\Xamarin.Forms\2.3.5-r233-003\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
+ <PropertyGroup>
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
+ </PropertyGroup>
+ <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <Import Project="$(NuGetPackageRoot)xamarin.forms\2.3.5-r233-003\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('$(NuGetPackageRoot)xamarin.forms\2.3.5-r233-003\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
</ImportGroup>
</Project> \ No newline at end of file
diff --git a/TVHome/TVHome.TizenTV/tizen-manifest.xml b/TVHome/TVHome.TizenTV/tizen-manifest.xml
index 544041f..cd899ae 100755
--- a/TVHome/TVHome.TizenTV/tizen-manifest.xml
+++ b/TVHome/TVHome.TizenTV/tizen-manifest.xml
@@ -5,10 +5,6 @@
<icon>xahome.png</icon>
<label>Home</label>
</ui-application>
- <ui-application appid="org.tizen.xaapps" exec="xaapps.exe" multiple="false" nodisplay="true" taskmanage="false" splash-screen-display="true" type="dotnet" launch_mode="single">
- <icon>xaapps.png</icon>
- <label>Apps</label>
- </ui-application>
<shortcut-list />
<privileges>
<privilege>http://tizen.org/privilege/bluetooth</privilege>
diff --git a/TVHome/TVHome/Controls/MainPanelButton.xaml.cs b/TVHome/TVHome/Controls/MainPanelButton.xaml.cs
index 4673323..77cb61b 100755
--- a/TVHome/TVHome/Controls/MainPanelButton.xaml.cs
+++ b/TVHome/TVHome/Controls/MainPanelButton.xaml.cs
@@ -152,6 +152,10 @@ namespace TVHome.Controls
{
}
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
public override void ChangeShowOptionsMode(bool showOptions)
{
}
diff --git a/TVHome/TVHome/Controls/PanelButton.cs b/TVHome/TVHome/Controls/PanelButton.cs
index 398c7da..6c12bd3 100755
--- a/TVHome/TVHome/Controls/PanelButton.cs
+++ b/TVHome/TVHome/Controls/PanelButton.cs
@@ -103,6 +103,10 @@ namespace TVHome.Controls
/// </summary>
public abstract void ShowContextPopup();
- public abstract void ChangeShowOptionsMode(bool isShowOptions);
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
+ public abstract void ChangeShowOptionsMode(bool showOptions);
}
}
diff --git a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs
index 7a51c49..272a785 100755
--- a/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs
+++ b/TVHome/TVHome/Controls/SubPanelAllAppsButton.xaml.cs
@@ -113,6 +113,11 @@ namespace TVHome.Controls
{
}
+
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
public override void ChangeShowOptionsMode(bool showOptions)
{
}
diff --git a/TVHome/TVHome/Controls/SubPanelButton.xaml.cs b/TVHome/TVHome/Controls/SubPanelButton.xaml.cs
index 78e8fb5..8300b5a 100755
--- a/TVHome/TVHome/Controls/SubPanelButton.xaml.cs
+++ b/TVHome/TVHome/Controls/SubPanelButton.xaml.cs
@@ -194,6 +194,10 @@ namespace TVHome.Controls
#pragma warning restore CS4014
}
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
public override async void ChangeShowOptionsMode(bool showOptions)
{
if (showOptions)
diff --git a/TVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs b/TVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs
index 83eb814..1101413 100755
--- a/TVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs
+++ b/TVHome/TVHome/Controls/SubPanelSettingButton.xaml.cs
@@ -113,6 +113,10 @@ namespace TVHome.Controls
{
}
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
public override void ChangeShowOptionsMode(bool showOptions)
{
}
diff --git a/TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs b/TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs
index 8b2689d..b5bc31b 100755
--- a/TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs
+++ b/TVHome/TVHome/Controls/SubPanelThumbnailButton.xaml.cs
@@ -87,11 +87,6 @@ namespace TVHome.Controls
}
*/
-
- private void AnimationInitialize(object sender, EventArgs e)
- {
- }
-
/// <summary>
/// Handles Button Clicked event
/// </summary>
@@ -199,6 +194,10 @@ namespace TVHome.Controls
isPopupShowing = true;
}
+ /// <summary>
+ /// A method for changing context popup mode
+ /// </summary>
+ /// <param name="showOptions">Options for change context popup mode</param>
public override void ChangeShowOptionsMode(bool showOptions)
{
}
diff --git a/TVHome/TVHome/ViewModels/MainPageViewModel.cs b/TVHome/TVHome/ViewModels/MainPageViewModel.cs
index 3228473..493e011 100755
--- a/TVHome/TVHome/ViewModels/MainPageViewModel.cs
+++ b/TVHome/TVHome/ViewModels/MainPageViewModel.cs
@@ -57,14 +57,17 @@ namespace TVHome.ViewModels
/// Gets or set MainList for MainPanel
/// </summary>
public IEnumerable<ShortcutInfo> MainList { get; set; }
+
/// <summary>
/// Gets or set RecentList for Recent SubPanel
/// </summary>
public IEnumerable<ShortcutInfo> RecentList { get; set; }
+
/// <summary>
/// Gets or set AppList for Apps SubPanel
/// </summary>
public IEnumerable<ShortcutInfo> AppList { get; set; }
+
/// <summary>
/// Gets or set SettingsList for Settings SubPanel
/// </summary>
@@ -74,28 +77,47 @@ namespace TVHome.ViewModels
/// A command for executing when MainPanel is focused.
/// </summary>
public Command MainPanelFocusedCommand { get; set; }
+
/// <summary>
/// A command for executing when SubPanel is focused.
/// </summary>
public Command SubPanelFocusedCommand { get; set; }
+
/// <summary>
/// A command for changing the status to Move status
/// </summary>
public Command SetMoveStatusCommand { get; set; }
+
/// <summary>
/// A command for changing the status to Unpin status
/// </summary>
public Command SetUnpinStatusCommand { get; set; }
+ /// <summary>
+ /// A command for moving item in sub panel
+ /// </summary>
public Command OnMoveCommand { get; set; }
+
+ /// <summary>
+ /// A command for unpin item in sub panel
+ /// </summary>
public Command OnUnpinCommand { get; set; }
+
+ /// <summary>
+ /// A command for delete a recent item
+ /// </summary>
public Command OnClearCommand { get; set; }
+
+ /// <summary>
+ /// A command for delete all recent items
+ /// </summary>
public Command OnClearAllCommand { get; set; }
/// <summary>
/// Gets or set CurrentStatus of HomeStatus
/// </summary>
public HomeStatus CurrentStatus { get; private set; }
+
/// <summary>
/// Gets or set SelectedMenuName of HomeMenuItem
/// </summary>
@@ -135,7 +157,7 @@ namespace TVHome.ViewModels
}
/// <summary>
- /// Sub panel's spacing size
+ /// Apps, Settings sub panel's spacing size
/// </summary>
public int SubPanelSpacing
{
@@ -146,6 +168,9 @@ namespace TVHome.ViewModels
}
}
+ /// <summary>
+ /// Recent sub panel's spacing size
+ /// </summary>
public double SubThumbPanelSpacing
{
get
@@ -599,11 +624,19 @@ namespace TVHome.ViewModels
}
}
+ /// <summary>
+ /// A method for unpin application
+ /// </summary>
+ /// <param name="appId">A application ID for unpin</param>
private void UnpinAppShortcutInfo(string appId)
{
RemovePinnedApp(appId);
}
+ /// <summary>
+ /// A method for updating pinned applications
+ /// </summary>
+ /// <param name="pinnedApps">A list of pinned application</param>
private void UpdatePinnedApps(Dictionary<string, string> pinnedApps)
{
List<AppShortcutInfo> pinnedAppList = new List<AppShortcutInfo>();
@@ -618,6 +651,10 @@ namespace TVHome.ViewModels
TVHomeImpl.GetInstance.AppShortcutControllerInstance.UpdatePinnedApps(pinnedAppList);
}
+ /// <summary>
+ /// A method for remove pinned application
+ /// </summary>
+ /// <param name="appID">A ID of application for removing from pinned application list</param>
private async void RemovePinnedApp(string appID)
{
Dictionary<string, string> PinnedApps = await TVHomeImpl.GetInstance.AppShortcutControllerInstance.GetPinnedAppsAppIDs();
@@ -629,6 +666,10 @@ namespace TVHome.ViewModels
}
}
+ /// <summary>
+ /// A method for updating reordered list
+ /// </summary>
+ /// <param name="moveList">A list of reordered views</param>
private void MoveAppShortcutInfo(List<View> moveList)
{
List<AppShortcutInfo> pinnedAppList = new List<AppShortcutInfo>();
diff --git a/TVHome/TVHome/Views/MainPage.xaml.cs b/TVHome/TVHome/Views/MainPage.xaml.cs
index 17d35e1..5780690 100755
--- a/TVHome/TVHome/Views/MainPage.xaml.cs
+++ b/TVHome/TVHome/Views/MainPage.xaml.cs
@@ -220,6 +220,10 @@ namespace TVHome.Views
};
}
+ /// <summary>
+ /// A method for customizing behavior immediately prior to the Page becoming visible
+ /// Sets focus chain and Moves focus to Apps icon in Main Panel
+ /// </summary>
protected override void OnAppearing()
{
base.OnAppearing();
@@ -235,6 +239,9 @@ namespace TVHome.Views
PageMainPanel.InitialFocusing();
}
+ /// <summary>
+ /// A method for setting focus chain in Main Panel
+ /// </summary>
private void InitializeMainPanelButtonFocusChain()
{
Button recentMainPanelButton = PageMainPanel.GetButtonToFocusing(0);
@@ -247,6 +254,9 @@ namespace TVHome.Views
settingMainPanelButton.On<Tizen>().SetNextFocusLeftView(appsMainPanelButton);
}
+ /// <summary>
+ /// A method for setting focus chain in Recent Sub Panel
+ /// </summary>
private void InitializeRecentSubPanelButtonFocusChain()
{
List<View> recentSubPanelButtons = new List<View>(RecentSubPanel.GetSubPanelButtons());
@@ -271,6 +281,9 @@ namespace TVHome.Views
}
}
+ /// <summary>
+ /// A method for setting focus chain in Apps Sub Panel
+ /// </summary>
private void InitializeAppsSubPanelButtonFocusChain()
{
List<View> appsSubPanelButtons = new List<View>(AppsSubPanel.GetSubPanelButtons());
@@ -297,6 +310,9 @@ namespace TVHome.Views
}
}
+ /// <summary>
+ /// A method for setting focus chain in Settings Sub Panel
+ /// </summary>
private void InitializeSettingsSubPanelButtonFocusChain()
{
List<View> settingSubPanelButtons = new List<View>(SettingsSubPanel.GetSubPanelButtons());
diff --git a/TVHome/TVHome/Views/MainPanel.xaml.cs b/TVHome/TVHome/Views/MainPanel.xaml.cs
index fc53ed6..1447636 100755
--- a/TVHome/TVHome/Views/MainPanel.xaml.cs
+++ b/TVHome/TVHome/Views/MainPanel.xaml.cs
@@ -31,7 +31,12 @@ namespace TVHome.Views
public partial class MainPanel : Panel
{
public delegate void SelectEventHandler(HomeMenuItem item);
+
+ /// <summary>
+ /// A EventHandler for Item selected event
+ /// </summary>
public SelectEventHandler OnItemSelectedHandler;
+
/// <summary>
/// MainPanel icon's transition height value when it focused.
/// </summary>
@@ -95,6 +100,11 @@ namespace TVHome.Views
button.FindByName<Button>("ButtonFocusArea").Focus();
}
+ /// <summary>
+ /// A method for getting focusable element of Panel Button
+ /// </summary>
+ /// <param name="index">A index of panel button to get</param>
+ /// <returns>A Button element of Panel Button</returns>
public Button GetButtonToFocusing(int index)
{
var button = PanelButtonGrid.Children[index];
@@ -134,20 +144,23 @@ namespace TVHome.Views
await this.ScaleTo(1, 0);
}
- public void SetButtonFocus(int idx)
+ /// <summary>
+ /// A method for setting focus to Panel Button
+ /// </summary>
+ /// <param name="index">A index of Panel Button to set focus</param>
+ public void SetButtonFocus(int index)
{
- var button = PanelButtonGrid.Children[idx];
+ var button = PanelButtonGrid.Children[index];
button.FindByName<Button>("ButtonFocusArea").Focus();
}
+
public override void MenuKeyPressed()
{
-
}
public override void ForceHidePanel()
{
- throw new NotImplementedException();
}
}
} \ No newline at end of file
diff --git a/TVHome/TVHome/Views/Panel.cs b/TVHome/TVHome/Views/Panel.cs
index 93d5274..a5cbb61 100755
--- a/TVHome/TVHome/Views/Panel.cs
+++ b/TVHome/TVHome/Views/Panel.cs
@@ -69,16 +69,28 @@ namespace TVHome.Views
set { SetValue(OnMoveVMCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the OnClearVMCommand bindable property
+ /// </summary>
public static readonly BindableProperty OnClearVMCommandProperty = BindableProperty.Create("OnClearVMCommand", typeof(ICommand), typeof(SubThumbnailPanel));
+ /// <summary>
+ /// A command is executed when item remove is clicked
+ /// </summary>
public ICommand OnClearVMCommand
{
get { return (ICommand)GetValue(OnClearVMCommandProperty); }
set { SetValue(OnClearVMCommandProperty, value); }
}
+ /// <summary>
+ /// Identifies the OnClearAllVMCommand bindable property
+ /// </summary>
public static readonly BindableProperty OnClearAllVMCommandProperty = BindableProperty.Create("OnClearAllVMCommand", typeof(ICommand), typeof(SubThumbnailPanel));
+ /// <summary>
+ /// A command is executed when item remove all is clicked
+ /// </summary>
public ICommand OnClearAllVMCommand
{
get { return (ICommand)GetValue(OnClearAllVMCommandProperty); }
@@ -148,6 +160,10 @@ namespace TVHome.Views
/// A method for handling to hide panel
/// </summary>
public abstract void HidePanel();
+
+ /// <summary>
+ /// A method for handling to hide panel without animation
+ /// </summary>
public abstract void ForceHidePanel();
/// <summary>
@@ -156,6 +172,10 @@ namespace TVHome.Views
public abstract void ShowPanel();
public delegate void ItemClickEventHandler();
+
+ /// <summary>
+ /// A EventHandler for handling Item is clicked
+ /// </summary>
public ItemClickEventHandler OnItemClickEventHandler;
/// <summary>
diff --git a/TVHome/TVHome/Views/SubPanel.xaml.cs b/TVHome/TVHome/Views/SubPanel.xaml.cs
index af98020..145d4f4 100755
--- a/TVHome/TVHome/Views/SubPanel.xaml.cs
+++ b/TVHome/TVHome/Views/SubPanel.xaml.cs
@@ -219,6 +219,9 @@ namespace TVHome.Views
}
}
+ /// <summary>
+ /// A method for scrolling to right
+ /// </summary>
private async void ScrollToRight()
{
double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) + SizeUtils.GetWidthSize(216);
@@ -226,6 +229,9 @@ namespace TVHome.Views
await PanelScrollView.ScrollToAsync(distance, 0, true);
}
+ /// <summary>
+ /// A method for scrolling to left
+ /// </summary>
private async void ScrollToLeft()
{
double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) - SizeUtils.GetWidthSize(216);
@@ -458,6 +464,9 @@ namespace TVHome.Views
ButtonViewList[prevIndex] = originItemView;
}
+ /// <summary>
+ /// A method for handling to hide panel without animation
+ /// </summary>
public override void ForceHidePanel()
{
foreach (var item in PanelButtonStack.Children)
diff --git a/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs b/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs
index f951f35..fc1facc 100755
--- a/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs
+++ b/TVHome/TVHome/Views/SubThumbnailPanel.xaml.cs
@@ -71,6 +71,9 @@ namespace TVHome.Views
ButtonList = new List<PanelButton>();
}
+ /// <summary>
+ ///
+ /// </summary>
public override void MenuKeyPressed()
{
if (isFocused)
@@ -155,6 +158,9 @@ namespace TVHome.Views
}
}
+ /// <summary>
+ /// A method for scrolling to right
+ /// </summary>
private async void ScrollToRight()
{
double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) + SizeUtils.GetWidthSize(320);
@@ -162,6 +168,9 @@ namespace TVHome.Views
await PanelScrollView.ScrollToAsync(distance, 0, true);
}
+ /// <summary>
+ /// A method for scrolling to left
+ /// </summary>
private async void ScrollToLeft()
{
double distance = SizeUtils.GetWidthSize((int)PanelScrollView.ScrollX) - SizeUtils.GetWidthSize(320);
@@ -169,6 +178,10 @@ namespace TVHome.Views
await PanelScrollView.ScrollToAsync(distance, 0, true);
}
+ /// <summary>
+ /// A method for getting Panel Buttons
+ /// </summary>
+ /// <returns>A list of panel button views</returns>
public IList<View> GetSubPanelButtons()
{
return PanelButtonStack.Children;
@@ -252,6 +265,9 @@ namespace TVHome.Views
#pragma warning restore CS4014
}
+ /// <summary>
+ /// A method for handling to hide panel without animation
+ /// </summary>
public override void ForceHidePanel()
{
foreach (var item in PanelButtonStack.Children)