This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ItemFocused event to CircleListView
- Loading branch information
1 parent
65b344b
commit e630090
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/Tizen.Wearable.CircularUI.Forms/ItemFocusedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved | ||
* | ||
* Licensed under the Flora License, Version 1.1 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://floralicense.org/license/ | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
using System; | ||
|
||
namespace Tizen.Wearable.CircularUI.Forms | ||
{ | ||
/// <summary> | ||
/// Event arguments for the ItemFocused event of CircleListView. | ||
/// </summary> | ||
public class ItemFocusedEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Creates a new ItemFocusedEventArgs object. | ||
/// </summary> | ||
/// <param name="item">An item data of new focused item.</param> | ||
/// <param name="itemIndex">An index of new focused item.</param> | ||
public ItemFocusedEventArgs(object item, int itemIndex) | ||
{ | ||
Item = item; | ||
ItemIndex = itemIndex; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the data of new focused item | ||
/// </summary> | ||
public object Item { get; private set; } | ||
|
||
/// <summary> | ||
/// Gets the index of new focused item | ||
/// </summary> | ||
public int ItemIndex { get; private set; } | ||
} | ||
} |