platform/core/csapi/tizenfx.git
3 years agoMerge remote-tracking branch 'origin/master' into tizen
admin [Mon, 21 Dec 2020 15:52:30 +0000 (15:52 +0000)]
Merge remote-tracking branch 'origin/master' into tizen

3 years ago[NUI] Version update (nui2205) (#2406)
dongsug-song [Tue, 15 Dec 2020 06:49:08 +0000 (15:49 +0900)]
[NUI] Version update (nui2205) (#2406)

- matched with dali2-2.0.5

3 years ago[NUI] Version update (nui2206)
Dongsug Song [Mon, 21 Dec 2020 11:06:33 +0000 (20:06 +0900)]
[NUI] Version update (nui2206)

3 years ago[NUI] Remove RegisterCallback function
huiyu.eun [Mon, 21 Dec 2020 08:16:20 +0000 (17:16 +0900)]
[NUI] Remove RegisterCallback function

stringDelegate registration is aledy called from the constructor.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years agoUpdate ViewPublicMethods.cs
huiyueun [Mon, 21 Dec 2020 03:43:16 +0000 (12:43 +0900)]
Update ViewPublicMethods.cs

3 years ago[NUI] Add an exception when deleting a view that is not child
huiyu.eun [Mon, 21 Dec 2020 02:19:34 +0000 (11:19 +0900)]
[NUI] Add an exception when deleting a view that is not child

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Use PascalCase for private fields
zhouleonlei [Fri, 18 Dec 2020 09:06:22 +0000 (17:06 +0800)]
[NUI] Use PascalCase for private fields

3 years ago[NUI] Fix CA2000 issue for Application Builder(disposed)
zhouleonlei [Fri, 18 Dec 2020 06:35:48 +0000 (14:35 +0800)]
[NUI] Fix CA2000 issue for Application Builder(disposed)

3 years ago[NUI] Fixing the emtpy finalizers(CA1821)
Wonsik Jung [Fri, 18 Dec 2020 09:39:21 +0000 (18:39 +0900)]
[NUI] Fixing the emtpy finalizers(CA1821)

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1821

3 years ago[NUI] Initialize feedback instance only when the Feedback property is on.
Jiyun Yang [Thu, 17 Dec 2020 07:08:36 +0000 (16:08 +0900)]
[NUI] Initialize feedback instance only when the Feedback property is on.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix build warning (CA1032)
Wonsik Jung [Mon, 14 Dec 2020 10:57:58 +0000 (19:57 +0900)]
[NUI] Fix build warning (CA1032)

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1032

3 years ago[NUI] Fix CA2000 issues in WidgetView.
guowei.wang [Thu, 17 Dec 2020 08:25:56 +0000 (16:25 +0800)]
[NUI] Fix CA2000 issues in WidgetView.

3 years ago[NUI] Fix CA1054
Dongsug Song [Wed, 9 Dec 2020 12:46:00 +0000 (21:46 +0900)]
[NUI] Fix CA1054

- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1054
- This rule splits the parameter name into tokens based on the camel casing convention and checks whether each token equals "uri", "Uri", "urn", "Urn", "url", or "Url". If there is a match, the rule assumes that the parameter represents a uniform resource identifier (URI). A string representation of a URI is prone to parsing and encoding errors, and can lead to security vulnerabilities. If a method takes a string representation of a URI, a corresponding overload should be provided that takes an instance of the Uri class, which provides these services in a safe and secure manner.

3 years ago[NUI] Fix CS0108
Dongsug Song [Wed, 9 Dec 2020 10:04:07 +0000 (19:04 +0900)]
[NUI] Fix CS0108

3 years ago[NUI] Rename EventHandler WithReturnType to end in EventHandler
Yeongjong Lee [Tue, 15 Dec 2020 02:56:44 +0000 (11:56 +0900)]
[NUI] Rename EventHandler WithReturnType to end in EventHandler

Fixes CA1710

3 years ago[NUI] Fix CA1044
Dongsug Song [Wed, 9 Dec 2020 11:56:39 +0000 (20:56 +0900)]
[NUI] Fix CA1044

- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1044
- Get accessors provide read access to a property and set accessors provide write access. Although it is acceptable and often necessary to have a read-only property, the design guidelines prohibit the use of write-only properties. This is because letting a user set a value and then preventing the user from viewing the value does not provide any security. Also, without read access, the state of shared objects cannot be viewed, which limits their usefulness.

3 years ago[NUI] Fix CA1063
Dongsug Song [Fri, 11 Dec 2020 07:41:12 +0000 (16:41 +0900)]
[NUI] Fix CA1063

- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1063
- Every unsealed type that declares and implements the IDisposable interface must provide its own protected virtual void Dispose(bool) method. Dispose() should call Dispose(true), and the finalizer should call Dispose(false). If you create an unsealed type that declares and implements the IDisposable interface, you must define Dispose(bool) and call it. For more information, see Clean up unmanaged resources (.NET guide) and Dispose pattern.

3 years ago[NUI] Fix build warning CA2213
Bowon Ryu [Wed, 16 Dec 2020 06:12:03 +0000 (15:12 +0900)]
[NUI] Fix build warning CA2213

CA2213: Disposable fields should be disposed

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years ago[NUI] Fix build warning CA1820
Bowon Ryu [Wed, 16 Dec 2020 05:36:27 +0000 (14:36 +0900)]
[NUI] Fix build warning CA1820

CA1820: Test for empty strings using string length

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years ago[NUI] Fix build warning CA1308
seungho [Thu, 10 Dec 2020 03:21:17 +0000 (12:21 +0900)]
[NUI] Fix build warning CA1308

 - CA1308: Normalize strings to uppercase

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] suppress CA1710 code analysis violation for deprecased APIs
Yeongjong Lee [Tue, 15 Dec 2020 03:22:02 +0000 (12:22 +0900)]
[NUI] suppress CA1710 code analysis violation for deprecased APIs

3 years ago[NUI] Fix the issue that the TrackColor fails to take effect.
guowei.wang [Tue, 15 Dec 2020 06:14:11 +0000 (14:14 +0800)]
[NUI] Fix the issue that the TrackColor fails to take effect.

3 years ago[NUI] Fix build warning & clean code [CA1051]
huiyu [Tue, 15 Dec 2020 07:05:55 +0000 (16:05 +0900)]
[NUI] Fix build warning & clean code [CA1051]

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1051
 - change private (swigCPtr)

Signed-off-by: huiyu <huiyu.eun@samsung.com>
3 years ago[NUI] Fix CA1066
Daekwang Ryu [Mon, 14 Dec 2020 05:23:05 +0000 (14:23 +0900)]
[NUI] Fix CA1066

CA1066:Implement IEquatable when overriding Equals

3 years ago[NUI] Fix CA2000 issues of UIComponents.
guowei.wang [Tue, 15 Dec 2020 07:45:06 +0000 (15:45 +0800)]
[NUI] Fix CA2000 issues of UIComponents.

3 years ago[NUI] Add AlertDialog class
Jaehyun Cho [Wed, 25 Nov 2020 05:29:45 +0000 (14:29 +0900)]
[NUI] Add AlertDialog class

AlertDialog is used to show a dialog with title, message and action
buttons.

Navigator provides static method ShowAlertDialog which pushes Page
containing AlertDialog.

3 years ago[NUI] Add Dialog class
Jaehyun Cho [Mon, 16 Nov 2020 08:34:51 +0000 (17:34 +0900)]
[NUI] Add Dialog class

Dialog is used to show a popup content with background scrim.

Navigator provides static method ShowDialog which pushes Page containing
Dialog.

3 years ago[NUI] Add left/right shadow effect for the scrollablebase.
huayong.xu [Thu, 19 Nov 2020 08:27:10 +0000 (16:27 +0800)]
[NUI] Add left/right shadow effect for the scrollablebase.

This patch is to implement left/right shadow effect for the
scrollablebase.

3 years ago[NUI] Fix svace issue for texture
zhouleonlei [Tue, 15 Dec 2020 05:25:36 +0000 (13:25 +0800)]
[NUI] Fix svace issue for texture

3 years agoRelease 9.0.0.15798 submit/tizen/20201218.005503
admin [Thu, 17 Dec 2020 15:55:03 +0000 (15:55 +0000)]
Release 9.0.0.15798

3 years agoMerge remote-tracking branch 'origin/master' into tizen
admin [Thu, 17 Dec 2020 15:55:03 +0000 (15:55 +0000)]
Merge remote-tracking branch 'origin/master' into tizen

3 years ago[Log] Modify documentation about dlog priorities (#2421)
hyotaekshim [Thu, 17 Dec 2020 05:34:02 +0000 (14:34 +0900)]
[Log] Modify documentation about dlog priorities (#2421)

Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
3 years agoRelease 9.0.0.15797 accepted/tizen/unified/20201217.124257 submit/tizen/20201217.005227
admin [Wed, 16 Dec 2020 15:52:27 +0000 (15:52 +0000)]
Release 9.0.0.15797

3 years agoMerge remote-tracking branch 'origin/master' into tizen
admin [Wed, 16 Dec 2020 15:52:27 +0000 (15:52 +0000)]
Merge remote-tracking branch 'origin/master' into tizen

3 years ago[NUI] Null check of Owner property of LayoutItem for Independent View. (#2416)
bshsqa [Wed, 16 Dec 2020 05:52:10 +0000 (14:52 +0900)]
[NUI] Null check of Owner property of LayoutItem for Independent View. (#2416)

- Current implementation, we didn't check whether the Owner Property is null or not in the Layout method.
 - This patch add null check of it to avoid null exception

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
3 years agoRelease 9.0.0.15796 submit/tizen/20201215.155857
admin [Tue, 15 Dec 2020 06:58:57 +0000 (06:58 +0000)]
Release 9.0.0.15796

3 years agoMerge remote-tracking branch 'origin/master' into tizen
admin [Tue, 15 Dec 2020 06:58:57 +0000 (06:58 +0000)]
Merge remote-tracking branch 'origin/master' into tizen

3 years ago[NUI] Version update (nui2205) (#2406)
dongsug-song [Tue, 15 Dec 2020 06:49:08 +0000 (15:49 +0900)]
[NUI] Version update (nui2205) (#2406)

- matched with dali2-2.0.5

3 years ago[NUI] Fix build warning CA1720
Sunghyun Kim [Thu, 10 Dec 2020 10:18:22 +0000 (19:18 +0900)]
[NUI] Fix build warning CA1720

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1720
CA1720: Identifiers should not contain type names

These warnings need to suppress.
because it is very common name and it's already published.
According to the document described about the rule, we can suppress warnings.

3 years ago[NUI] Delete warning messages
huiyu [Tue, 15 Dec 2020 04:45:11 +0000 (13:45 +0900)]
[NUI] Delete warning messages

Add SuppressMessage code to the API to be deleted.

Signed-off-by: huiyu <huiyu.eun@samsung.com>
3 years ago[NUI] Change "IsTapGestureFeedback" as "Feedback"
Dongsug Song [Tue, 15 Dec 2020 02:54:44 +0000 (11:54 +0900)]
[NUI] Change "IsTapGestureFeedback" as "Feedback"

3 years ago[NUI] Remove build warning - CA1055 (#2338)
huiyueun [Tue, 15 Dec 2020 03:23:05 +0000 (12:23 +0900)]
[NUI] Remove build warning - CA1055 (#2338)

CA1055: URI return values should not be strings
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1055

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
3 years agoRevert "[NUI] Fix build warning[CA1000]"
huiyu [Tue, 15 Dec 2020 02:10:34 +0000 (11:10 +0900)]
Revert "[NUI] Fix build warning[CA1000]"

This reverts commit 4cef848feaaefe4abac0b5f7890b8402e37fbcf6.

3 years ago[NUI] Fix build warning CA1724 (#2394)
bshsqa [Tue, 15 Dec 2020 01:44:12 +0000 (10:44 +0900)]
[NUI] Fix build warning CA1724 (#2394)

- https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1724
 - This warning requires to discuss to fix the name of the Class.

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] text: Add property for primary cursor (caret) position in TextField/TextEditor
ali198724 [Tue, 8 Dec 2020 08:46:51 +0000 (10:46 +0200)]
[NUI] text: Add property for primary cursor (caret) position in TextField/TextEditor

3 years ago[NUI] Fix build warning[CA1000]
huiyu [Mon, 14 Dec 2020 04:49:29 +0000 (13:49 +0900)]
[NUI] Fix build warning[CA1000]

Signed-off-by: huiyu <huiyu.eun@samsung.com>
3 years ago[NUI] Fix build warning[CA1064]
huiyu [Mon, 14 Dec 2020 03:30:18 +0000 (12:30 +0900)]
[NUI] Fix build warning[CA1064]

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1065

Signed-off-by: huiyu <huiyu.eun@samsung.com>
3 years ago[NUI] Fix build warning CS1064
Sunghyun Kim [Mon, 14 Dec 2020 07:27:40 +0000 (16:27 +0900)]
[NUI] Fix build warning CS1064

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1064
CA1064: Exceptions should be public

3 years ago[NUI] Add TabView and related classes
Jaeun Choi [Tue, 6 Oct 2020 02:33:12 +0000 (11:33 +0900)]
[NUI] Add TabView and related classes

TabView and its related classes, TabBar, TabContent, TabButton and
TabButtonGroup, are added.

TabView consists of TabBar and TabContent.

TabBar consists of a list of TabButton.
TabContent consists of a list of View.

TabView.AddTab() adds TabButton and View to TabBar and TabContent in
TabView.
TabView.RemoveTab() removes TabButton and View from TabBar and
TabContent in TabView.

3 years ago[NUI] Improve Theme load
Jiyun Yang [Mon, 7 Dec 2020 04:19:40 +0000 (13:19 +0900)]
[NUI] Improve Theme load

* Provide default theme in C#: Xaml file IO and parsing time reduced
* Provide on demand theme loading for packages: This enables to avoid unnecessary package load

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years agoChange SCROLL_FINAL_X to ScrollFinalX (#2382)
JoogabYun [Mon, 14 Dec 2020 07:09:41 +0000 (16:09 +0900)]
Change SCROLL_FINAL_X to ScrollFinalX (#2382)

3 years ago[NUI] Fix CA1710, change name with with the correct suffix
Yeongjong Lee [Thu, 3 Dec 2020 09:26:08 +0000 (18:26 +0900)]
[NUI] Fix CA1710, change name with with the correct suffix

3 years ago[NUI] Add RelativeLayout sample
Yeongjong Lee [Thu, 3 Dec 2020 08:29:30 +0000 (17:29 +0900)]
[NUI] Add RelativeLayout sample

3 years ago[NUI] introduce RelativeLayout
Yeongjong Lee [Wed, 21 Oct 2020 06:45:02 +0000 (15:45 +0900)]
[NUI] introduce RelativeLayout

RelativeLayout calculates the size and position of all the
children based on their relationship to each other.

Please see confluence pages for more details.

3 years ago[NUI] Modify SwitchSample and warnings
zhouleonlei [Fri, 11 Dec 2020 08:46:01 +0000 (16:46 +0800)]
[NUI] Modify SwitchSample and warnings

3 years ago[NUI] Modify 6.0 to 6.5
zhouleonlei [Fri, 11 Dec 2020 07:42:04 +0000 (15:42 +0800)]
[NUI] Modify 6.0 to 6.5

3 years ago[NUI] Add sound feedback for Control
zhouleonlei [Fri, 11 Dec 2020 07:31:03 +0000 (15:31 +0800)]
[NUI] Add sound feedback for Control

3 years ago[NUI] Fix CA2000 warning issues of Application / ImageView.
guowei.wang [Thu, 12 Nov 2020 10:10:53 +0000 (18:10 +0800)]
[NUI] Fix CA2000 warning issues of Application / ImageView.

3 years ago[NUI] Call show winodw on ApplicationInit
huiyu.eun [Fri, 11 Dec 2020 01:23:54 +0000 (10:23 +0900)]
[NUI] Call show winodw on ApplicationInit

- When preload application, the show is called before the appcore is created.
- Call the window show at OnInit and notify the app core

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Suppress CA1716, CA1052, CA1034 for deprecated APIs
Dongsug Song [Fri, 11 Dec 2020 01:17:08 +0000 (10:17 +0900)]
[NUI] Suppress CA1716, CA1052, CA1034 for deprecated APIs

- Since the detected classes will be deprecated, CA1716 warning message is suppressed.
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1716
- This is conflict resolving patch for https://github.com/Samsung/TizenFX/pull/2374

3 years ago[NUI] use discard to ignore unused return value
Yeongjong Lee [Thu, 3 Dec 2020 09:48:44 +0000 (18:48 +0900)]
[NUI] use discard to ignore unused return value

Fixes CA1806

3 years ago[NUI] Fix build warning CS0109
Sunghyun Kim [Thu, 10 Dec 2020 09:10:49 +0000 (18:10 +0900)]
[NUI] Fix build warning CS0109

https://docs.microsoft.com/ko-kr/dotnet/csharp/misc/cs0109

3 years ago[NUI] Prevent unnecessary Layout call, make independent if it has true ExcludeLayouti...
seungho [Thu, 10 Dec 2020 08:53:13 +0000 (17:53 +0900)]
[NUI] Prevent unnecessary Layout call, make independent if it has true ExcludeLayouting and root.

 - Make changed flag in Layout method true when the layout is really changed.
 - If a layout has true value of ExcludeLayouting and it also a root layout, currently it couldn't handled as independent.
 - This patch adds to check ExcludeLayouting Property when it call Layout method.

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Remove DropDown class since it is moved to fhub-nui
Jiyun Yang [Thu, 10 Dec 2020 05:59:35 +0000 (14:59 +0900)]
[NUI] Remove DropDown class since it is moved to fhub-nui

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix CA1034 for obsolete classes
Jiyun Yang [Thu, 10 Dec 2020 05:44:31 +0000 (14:44 +0900)]
[NUI] Fix CA1034 for obsolete classes

[CA1034: Nested types should not be visible](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1034)

Suppress warning messages for obsolete classes

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Change property name frome Url to Uri
seungho [Thu, 10 Dec 2020 05:21:24 +0000 (14:21 +0900)]
[NUI] Change property name frome Url to Uri

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Fix build warning CS0419
seungho [Thu, 10 Dec 2020 03:20:08 +0000 (12:20 +0900)]
[NUI] Fix build warning CS0419

 - Ambiguous reference in cref attribute: 'Method Name1'. Assuming 'Method Name2', but could have also matched other overloads including 'Method Name3'.

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Fix build warning CA2007
seungho [Thu, 10 Dec 2020 03:22:30 +0000 (12:22 +0900)]
[NUI] Fix build warning CA2007

 - CA2007: Do not directly await a Task
 - When an asynchronous method awaits a Task directly, continuation usually occurs in the same thread that created the task, depending on the async context. This behavior can be costly in terms of performance and can result in a deadlock on the UI thread. Consider calling Task.ConfigureAwait(Boolean) to signal your intention for continuation.

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Fix svace issues
zhouleonlei [Wed, 9 Dec 2020 06:01:58 +0000 (14:01 +0800)]
[NUI] Fix svace issues

3 years ago[NUI] Fix CA1052
Jiyun Yang [Wed, 9 Dec 2020 05:49:11 +0000 (14:49 +0900)]
[NUI] Fix CA1052

CA1052
Static holder types should be Static or NotInheritable.

This patch fixes classes that holds only static members to static or sealed.
If the class is obsolete, added suppress message attribute to hide warnings.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix CA1069
Jiyun Yang [Wed, 9 Dec 2020 04:55:55 +0000 (13:55 +0900)]
[NUI] Fix CA1069

CA1069
Enums should not have duplicate values.

This patch changed ProperRanges to struct from enum.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix CA2214
Jiyun Yang [Wed, 9 Dec 2020 03:55:07 +0000 (12:55 +0900)]
[NUI] Fix CA2214

CA2214
Do not call overridable methods in constructors.

* View.cs
  * In the current design, it is hard to remove virtual method call in View constructor.
  * So the patch moved method calling to the private method newly defined.
* ControlStyle.cs
* TextFieldStyle.cs
* ImageViewStyle.cs
* TextLabelStyle.cs
  * Removed unnecessary constructors.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Remove build warning - CA2241
Moonhee, Choi [Tue, 8 Dec 2020 10:24:05 +0000 (19:24 +0900)]
[NUI] Remove build warning - CA2241

3 years ago[NUI] Fix to restore setter of AnimatedImageView.ResourceUrl
Jaehyun Cho [Fri, 4 Dec 2020 04:38:27 +0000 (13:38 +0900)]
[NUI] Fix to restore setter of AnimatedImageView.ResourceUrl

The setter of AnimatedImageView.ResourceUrl was removed incorrectly by
PR #2232.
To fix the above issue, the setter of AnimatedImageView.ResourceUrl is
restored.

3 years ago[NUI] make Graphics.Backend internal
Yeongjong Lee [Thu, 3 Dec 2020 09:34:05 +0000 (18:34 +0900)]
[NUI] make Graphics.Backend internal

Fixes CA2211

3 years ago[NUI] remove "_" and refactoring naming to pascal case.
Joogab Yun [Thu, 10 Dec 2020 08:19:38 +0000 (17:19 +0900)]
[NUI] remove "_" and refactoring naming to pascal case.

3 years ago[NUI] Remove build warning - CA1825
Moonhee, Choi [Tue, 8 Dec 2020 09:27:03 +0000 (18:27 +0900)]
[NUI] Remove build warning - CA1825

3 years ago[NUI] Remove build warning - CA1041
Moonhee, Choi [Tue, 8 Dec 2020 08:57:54 +0000 (17:57 +0900)]
[NUI] Remove build warning - CA1041

3 years ago[NUI] fix exception when Theme.Resource is used in xaml file
Yeongjong Lee [Thu, 3 Dec 2020 05:50:45 +0000 (14:50 +0900)]
[NUI] fix exception when Theme.Resource is used in xaml file

Since local value `xamlFile` is set after `LoadFromXaml()`,
`xamlFile` is always null in `Reload()`.

To fix this exception, it sets `xamlFile` before `XamlLoader.Load()`.

3 years ago[NUI] Fix wrong AnimationState after VectorAnimatedImageView playing stoped
Dongsug Song [Wed, 2 Dec 2020 02:46:38 +0000 (11:46 +0900)]
[NUI] Fix wrong AnimationState after VectorAnimatedImageView playing stoped

3 years ago[NUI] separate layouting logic of the independent children
Yeongjong Lee [Thu, 19 Nov 2020 06:44:35 +0000 (15:44 +0900)]
[NUI] separate layouting logic of the independent children

This patch introduces `IterateLayoutChildren()` method that return
an enumerable collection of the child layouts that affected by parent
layout.

Independent children will be measured in `OnMeasureIndependentChildren()`.

By using `IterateLayoutChildren()`, we can remove the codes that check
whether child layout exclude from layout flow in `OnMeasure`. and api
users don't need to check `View.ExcludeLayouting` property in custom layouts.

3 years ago[NUI] fixed bug about set desired size
Joogab Yun [Wed, 18 Nov 2020 07:06:18 +0000 (16:06 +0900)]
[NUI] fixed bug about set desired size

3 years ago[NUI] Add RedrawInScalingDown in LottieAnimationView
Dongsug Song [Wed, 9 Dec 2020 04:56:31 +0000 (13:56 +0900)]
[NUI] Add RedrawInScalingDown in LottieAnimationView

3 years ago[NUI] Change clipping mode of ScrollableBase (#2354)
bshsqa [Wed, 9 Dec 2020 05:22:46 +0000 (14:22 +0900)]
[NUI] Change clipping mode of ScrollableBase (#2354)

- ClipChildren clipping mode uses stencil buffer.
 - But, scrollableBase is always pretended as rectangular shape so we can change it to ClipToBoundingBox that uses scissor.
 - Usually, Scissor is better than stencil buffer for the performance.

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
3 years agoRelease 9.0.0.15749 accepted/tizen/unified/20201209.124930 submit/tizen/20201208.153507
admin [Tue, 8 Dec 2020 06:35:07 +0000 (06:35 +0000)]
Release 9.0.0.15749

3 years agoMerge remote-tracking branch 'origin/master' into tizen
admin [Tue, 8 Dec 2020 06:35:07 +0000 (06:35 +0000)]
Merge remote-tracking branch 'origin/master' into tizen

3 years ago[NUI] Add Padding parameter for TextPageUtil (#2332)
JoogabYun [Tue, 8 Dec 2020 06:04:57 +0000 (15:04 +0900)]
[NUI] Add Padding parameter for TextPageUtil (#2332)

3 years ago[NUI] Modify NUI Seamless animation bug (#2334) (#2341)
huiyueun [Tue, 8 Dec 2020 03:35:36 +0000 (12:35 +0900)]
[NUI] Modify NUI Seamless animation bug (#2334) (#2341)

* [NUI] Modify NUI Seamless animation bug

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* [NUI] Modify build warning of seamless

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
* Update DefaultFrameBroker.cs

* Update TransitionAnimations.cs

* Update DefaultFrameBroker.cs

* Update SeamlessBackward.cs

* Update SeamlessForward.cs

* Update TransitionOptions.cs

* Update NUIBrokerSample.cs

* Update DefaultFrameBroker.cs

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Use weak reference for theme changed event
Jiyun Yang [Fri, 20 Nov 2020 08:39:04 +0000 (17:39 +0900)]
[NUI] Use weak reference for theme changed event

Previous theme changed event was holding reference of the view for the theme manager's lifetime
unless the view is disposed by calling Dispose() explicitly.
Since the theme manager is a static class, so there might be a change that the view can't get free by GC.
To solve this problem, this patch apply a weak event that uses weak reference for the handler
so that the views are no longer be caught by theme manager.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Introduce CornerRadiusPolicy to View
Jiyun Yang [Mon, 9 Nov 2020 11:50:02 +0000 (20:50 +0900)]
[NUI] Introduce CornerRadiusPolicy to View

The CornerRadiusPolicy indicates whether the CornerRadius value is relative or absolute.
The default policy is absolute, which means the CornerRadius is an absolute float length.
If the policy is relative, the CornerRadius can have percentage value between 0.0f to 1.0f,
that is relative to the smaller of view's width and height.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Add Url property to convert image buffer to URL for ImageView (#2286)
bshsqa [Mon, 7 Dec 2020 06:59:19 +0000 (15:59 +0900)]
[NUI] Add Url property to convert image buffer to URL for ImageView (#2286)

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
3 years ago[NUI] Modify popup dismiss bug (#2336)
huiyueun [Mon, 7 Dec 2020 05:50:14 +0000 (14:50 +0900)]
[NUI] Modify popup dismiss bug (#2336)

when dismiss popup, the shadow does not disappear.
-An error occurs after changing the parent to GetParent ().
-layer of converting View is null.

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
3 years ago[NUI] Fix CA2000 warning issues of Camera / ItemView / Animatable / Animation / Anima...
guowei.wang [Wed, 18 Nov 2020 10:29:40 +0000 (18:29 +0800)]
[NUI] Fix CA2000 warning issues of Camera / ItemView / Animatable / Animation / AnimationImageView.

3 years ago[NUI] Let scroll again when displacement for OutOfBound effect become 0
seungho [Thu, 3 Dec 2020 06:59:45 +0000 (15:59 +0900)]
[NUI] Let scroll again when displacement for OutOfBound effect become 0

Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years ago[NUI] Fix not to get framework path via StyleManager
Jiyun Yang [Thu, 3 Dec 2020 07:31:21 +0000 (16:31 +0900)]
[NUI] Fix not to get framework path via StyleManager

StyleManager uses dali singleton service which is not initialized in PreLoad().
Previously in Preload(), ThemeManager got framework resource path via static constant in StyleManager,
which leaded to initialize StyleManager instance that is not valid in PreLoad().

So this patch moved framework resource path constant to the constant file.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
3 years ago[NUI] Fix a build warning CA1827 (#2314)
Seoyeon2Kim [Thu, 3 Dec 2020 05:49:53 +0000 (14:49 +0900)]
[NUI] Fix a build warning CA1827 (#2314)

- Changed to use `Count()` method once for a local variable.
 Then, we do not have to be worried about CA1827.
- To fix the build warning, it could replace `Count()` method with `Any()` method
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1827
- But, to improve performance as a review, use `Count()` itself.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years ago[NUI-Text] Add more scroll functinality to texteditor
ali198724 [Thu, 5 Nov 2020 18:40:21 +0000 (20:40 +0200)]
[NUI-Text] Add more scroll functinality to texteditor

1- add Horizontal_Scroll_position property (float)
2- add VerticalScrollPosition property (float)
3- add ScrollBy function (take Vector2)

3 years ago[NUI] Add Window extension method GetDefaultNavigator
Jaehyun Cho [Fri, 20 Nov 2020 02:53:16 +0000 (11:53 +0900)]
[NUI] Add Window extension method GetDefaultNavigator

To provide default navigator of window, Window extension method
GetDefaultNavigator is added.

3 years ago[NUI] fix CA1801 build warnings from auto-generated codes by SWIG
Youngbok Shin [Wed, 2 Dec 2020 08:06:19 +0000 (17:06 +0900)]
[NUI] fix CA1801 build warnings from auto-generated codes by SWIG

The 'futureUse' parameter is never being used through the whole code.
It removes 'futureUse' parameter from functions.

3 years ago[NUI] Fix build warnings related to XAML (#2287)
Seoyeon2Kim [Wed, 2 Dec 2020 04:28:06 +0000 (13:28 +0900)]
[NUI] Fix build warnings related to XAML (#2287)

- Need to avoid assigning a property to itself
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2245
- Not to use broken cryptographic algorithm : MD5 -> SHA256
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca5351

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>