From 9b622fe1f22345c834d3e7dc69129160e5a57abe Mon Sep 17 00:00:00 2001 From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Tue, 18 Jun 2019 10:02:37 +0900 Subject: [PATCH] [NUI] Rollback split-nui (#887) * Revert "[NUI] Add inherit binding context support (#880)" This reverts commit 35c9ff2ec4be2c6678087bb108e7cd3c1c1a310b. * Revert "[NUI] To support constructor with default parameters (#879)" This reverts commit 99794148e8bcd9b9364434ed2190a4628bce12db. * Revert "[NUI] Add NUI.Xaml into Platform binary (#867)" This reverts commit e018baf6f0e85c7558460856ec61885c982baba0. * Revert "[NUI] Split NUI Assemblies (#865)" This reverts commit 59970b38bb97cee7b6ff8afb9388996c022c9010. * [NUI]Fix the issue that View which created by Xaml can't show correctly --- packaging/PlatformFileList.txt | 1 - src/Tizen.NUI.Design/Tizen.NUI.Design.csproj | 4 +- src/Tizen.NUI.Design/Tizen.NUI.Design.sln | 14 - .../Tizen.NUI.Design/AttributeTableBuilder.cs | 2 +- .../Tizen.NUI/AttributeTableBuilder.cs | 1 - src/Tizen.NUI.Xaml/Properties/AssemblyInfo.cs | 18 - .../Properties/GlobalAssemblyInfo.cs | 6 - src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.csproj | 19 - src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.sln | 55 - .../XamlBinding/INavigationMenuController.cs | 7 - .../internal/XamlBinding/IPageContainer.cs | 7 - .../internal/XamlBinding/IViewContainer.cs | 9 - .../XamlBinding/ModalPoppedEventArgs.cs | 9 - .../XamlBinding/ModalPushedEventArgs.cs | 9 - .../XamlBinding/ModalPushingEventArgs.cs | 9 - .../public/Forms/BaseComponents/CustomView.cs | 838 ----- .../Forms/BaseComponents/FlexContainer.cs | 237 -- .../public/Forms/BaseComponents/ImageView.cs | 480 --- .../public/Forms/BaseComponents/Scrollable.cs | 407 --- .../public/Forms/BaseComponents/TableView.cs | 532 --- .../public/Forms/BaseComponents/TextEditor.cs | 1759 --------- .../public/Forms/BaseComponents/TextField.cs | 1712 --------- .../public/Forms/BaseComponents/TextLabel.cs | 918 ----- .../public/Forms/BaseComponents/VideoView.cs | 320 -- .../src/public/Forms/BaseComponents/View.cs | 3174 ----------------- .../public/Forms/BaseComponents/VisualView.cs | 199 -- .../src/public/Forms/BaseHandle.cs | 402 --- .../src/public/Forms/Container.cs | 149 - src/Tizen.NUI.Xaml/src/public/Forms/Layer.cs | 349 -- .../src/public/UIComponents/Button.cs | 750 ---- .../src/public/UIComponents/CheckBoxButton.cs | 65 - .../src/public/UIComponents/Popup.cs | 828 ----- .../src/public/UIComponents/ProgressBar.cs | 365 -- .../src/public/UIComponents/PushButton.cs | 99 - .../src/public/UIComponents/RadioButton.cs | 70 - .../src/public/UIComponents/ScrollBar.cs | 393 -- .../src/public/UIComponents/ScrollView.cs | 1301 ------- .../src/public/UIComponents/Slider.cs | 592 --- .../src/public/UIComponents/ToggleButton.cs | 152 - .../src/public/Xaml/IMarkupExtension.cs | 46 - .../src/public/Xaml/IProvideValueTarget.cs | 29 - .../src/public/Xaml/IReferenceProvider.cs | 21 - .../src/public/Xaml/IValueProvider.cs | 22 - .../src/public/Xaml/IXamlTypeResolver.cs | 30 - .../src/public/Xaml/IXmlLineInfoProvider.cs | 22 - .../Xaml/MarkupExtensions/ArrayExtension.cs | 72 - .../Xaml/MarkupExtensions/BindingExtension.cs | 124 - .../DynamicResourceExtension.cs | 47 - .../Xaml/MarkupExtensions/NullExtension.cs | 27 - .../TemplateBindingExtension.cs | 53 - .../src/public/Xaml/XamlFilePathAttribute.cs | 18 - .../src/public/Xaml/XmlLineInfo.cs | 46 - .../CollectionSynchronizationCallback.cs | 10 - .../public/XamlBinding/GraphicsTypeManager.cs | 40 - .../XamlBinding/IExtendedTypeConverter.cs | 20 - .../public/XamlBinding/IResourcesProvider.cs | 18 - .../src/public/XamlBinding/IValueConverter.cs | 19 - .../XamlBinding/Internals/DynamicResource.cs | 24 - .../Internals/IDynamicResourceHandler.cs | 18 - .../XamlBinding/Internals/INameScope.cs | 31 - .../Internals/PreserveAttribute.cs | 37 - .../XamlBinding/Internals/ResourceLoader.cs | 53 - .../src/public/XamlBinding/Performance.cs | 94 - .../public/XamlBinding/SizeTypeConverter.cs | 60 - .../public/XamlBinding/StyleSheets/IStyle.cs | 23 - .../StyleSheets/IStyleSelectable.cs | 41 - .../src/public/XamlBinding/Transition.cs | 783 ---- .../src/public/XamlBinding/TypeConverter.cs | 50 - src/Tizen.NUI/Properties/AssemblyInfo.cs | 15 + src/Tizen.NUI/src/internal/Application.cs | 432 ++- .../src/internal/BindableProperty.cs | 89 - .../internal/Xaml/ApplyPropertiesVisitor.cs | 23 +- .../src/internal/Xaml/CreateValuesVisitor.cs | 52 +- .../src/internal/Xaml/DesignMode.cs | 0 .../src/internal/Xaml/ExpandMarkupsVisitor.cs | 2 +- .../Xaml/FillResourceDictionariesVisitor.cs | 2 +- .../src/internal/Xaml/HydrationContext.cs | 0 .../src/internal/Xaml/IConverterOptions.cs | 0 .../internal/Xaml/IDictionaryExtensions.cs | 0 .../src/internal/Xaml/IExpressionParser.cs | 0 .../src/internal/Xaml/IMarkupExtension.cs | 19 + .../Xaml/INativeValueConverterService.cs | 0 .../src/internal/Xaml/IProvideParentValues.cs | 0 .../src/internal/Xaml/IProvideValueTarget.cs | 8 + .../src/internal/Xaml/IReferenceProvider.cs | 7 + .../src/internal/Xaml/IResourcesLoader.cs | 0 .../src/internal/Xaml/IRootObjectProvider.cs | 0 .../internal/Xaml/IValueConverterProvider.cs | 0 .../src/internal/Xaml/IValueProvider.cs | 9 + .../src/internal/Xaml/IXamlTypeResolver.cs | 10 + .../src/internal/Xaml/IXmlLineInfoProvider.cs | 9 + .../internal/Xaml/MarkupExpressionParser.cs | 0 .../internal/Xaml/MarkupExtensionParser.cs | 2 +- .../Xaml/MarkupExtensions/ArrayExtension.cs | 41 + .../Xaml/MarkupExtensions/BindingExtension.cs | 56 + .../DynamicResourceExtension.cs | 28 + .../Xaml/MarkupExtensions/NullExtension.cs | 14 + .../MarkupExtensions/ReferenceExtension.cs | 25 +- .../Xaml/MarkupExtensions/StaticExtension.cs | 23 +- .../StaticResourceExtension.cs | 28 +- .../MarkupExtensions/StyleSheetExtension.cs | 26 +- .../TemplateBindingExtension.cs | 36 + .../Xaml/MarkupExtensions/TypeExtension.cs | 23 +- .../src/internal/Xaml/NamescopingVisitor.cs | 2 +- .../internal/Xaml/PruneIgnoredNodesVisitor.cs | 0 .../src/internal/Xaml/ReflectionExtensions.cs | 2 +- .../internal/Xaml/RegisterXNamesVisitor.cs | 2 +- .../src/internal/Xaml/ResourcesLoader.cs | 4 +- .../Xaml/RuntimeNamePropertyAttribute.cs | 0 .../src/internal/Xaml/TypeArgumentsParser.cs | 0 .../internal/Xaml/TypeConversionAttribute.cs | 0 .../internal/Xaml/TypeConversionExtensions.cs | 39 +- .../internal/Xaml/ValueConverterProvider.cs | 1 + .../src/internal/Xaml/VisualStateManager.cs | 15 +- .../Xaml/XamlCompilationAttribute.cs | 18 +- .../internal/Xaml/XamlFilePathAttribute.cs | 13 + .../src/internal/Xaml/XamlLoader.cs | 41 +- .../src/internal/Xaml/XamlNode.cs | 4 +- .../src/internal/Xaml/XamlNodeVisitor.cs | 0 .../src/internal/Xaml/XamlParseException.cs | 2 +- .../src/internal/Xaml/XamlParser.cs | 7 +- .../internal}/Xaml/XamlResourceIdAttribute.cs | 35 +- .../src/internal}/Xaml/XamlServiceProvider.cs | 169 +- .../src/internal/Xaml/XmlLineInfo.cs | 29 + .../src/internal/Xaml/XmlName.cs | 0 .../src/internal/Xaml/XmlnsHelper.cs | 0 .../src/internal/XamlBinding/Accelerator.cs | 2 +- .../XamlBinding/AcceleratorTypeConverter.cs | 2 +- .../XamlBinding/ActionSheetArguments.cs | 4 +- .../internal/XamlBinding/AlertArguments.cs | 4 +- .../src/internal}/XamlBinding/Application.cs | 243 +- .../src/internal/XamlBinding/BaseMenuItem.cs | 4 +- .../XamlBinding/BindableObjectExtensions.cs | 2 +- .../internal}/XamlBinding/BindableProperty.cs | 56 +- .../XamlBinding/BindablePropertyConverter.cs | 21 +- .../XamlBinding/BindablePropertyKey.cs | 6 +- .../src/internal}/XamlBinding/Binding.cs | 25 +- .../src/internal}/XamlBinding/BindingBase.cs | 22 +- .../XamlBinding/BindingBaseExtensions.cs | 2 +- .../internal/XamlBinding/BindingExpression.cs | 64 +- .../src/internal}/XamlBinding/BindingMode.cs | 4 +- .../XamlBinding/BindingTypeConverter.cs | 4 +- .../CollectionSynchronizationCallback.cs | 7 + .../CollectionSynchronizationContext.cs | 2 +- .../XamlBinding/ColorTypeConverter.cs | 20 +- .../src/internal/XamlBinding/Configuration.cs | 2 +- .../XamlBinding/ContentPropertyAttribute.cs | 4 +- .../internal/XamlBinding/ControlTemplate.cs | 4 +- .../src/internal/XamlBinding/DataTemplate.cs | 2 +- .../XamlBinding/DataTemplateExtensions.cs | 5 +- .../XamlBinding/DataTemplateSelector.cs | 6 +- .../XamlBinding/DependencyAttribute.cs | 2 +- .../XamlBinding/DependencyFetchTarget.cs | 2 +- .../XamlBinding/DependencyResolver.cs | 4 +- .../internal/XamlBinding/DependencyService.cs | 8 +- .../src/internal/XamlBinding/Device.cs | 20 +- .../src/internal/XamlBinding/DeviceInfo.cs | 9 +- .../internal/XamlBinding/DeviceOrientation.cs | 5 +- .../src/internal/XamlBinding/Effect.cs | 6 +- .../XamlBinding/EffectiveFlowDirection.cs | 2 +- .../EffectiveFlowDirectionExtensions.cs | 5 +- .../internal/XamlBinding/ElementCollection.cs | 2 +- .../internal/XamlBinding/ElementEventArgs.cs | 2 +- .../internal/XamlBinding/ElementTemplate.cs | 6 +- .../XamlBinding/EnumerableExtensions.cs | 4 +- .../src/internal/XamlBinding/EventArg.cs | 4 +- .../XamlBinding/ExportEffectAttribute.cs | 2 +- .../XamlBinding/ExtentsTypeConverter.cs | 6 +- .../internal/XamlBinding/FileImageSource.cs | 2 +- .../XamlBinding/FileImageSourceConverter.cs | 2 +- .../src/internal/XamlBinding/FlowDirection.cs | 2 +- .../internal/XamlBinding/GestureRecognizer.cs | 2 +- .../internal/XamlBinding/HandlerAttribute.cs | 2 +- .../XamlBinding/IAppIndexingProvider.cs | 2 +- .../src/internal/XamlBinding/IAppLinkEntry.cs | 2 +- .../src/internal/XamlBinding/IAppLinks.cs | 2 +- .../XamlBinding/IApplicationController.cs | 7 + .../internal/XamlBinding/IConfigElement.cs | 5 +- .../internal/XamlBinding/IConfigPlatform.cs | 5 +- .../internal/XamlBinding/IControlTemplated.cs | 2 +- .../XamlBinding/IEffectControlProvider.cs | 5 +- .../src/internal/XamlBinding/IElement.cs | 4 +- .../XamlBinding/IElementConfiguration.cs | 2 +- .../XamlBinding/IElementController.cs | 4 +- .../XamlBinding/IExtendedTypeConverter.cs | 13 + .../XamlBinding/IGestureRecognizer.cs | 2 +- .../XamlBinding/IIsolatedStorageFile.cs | 4 +- .../src/internal/XamlBinding/ILayout.cs | 2 +- .../internal/XamlBinding/ILayoutController.cs | 2 +- .../XamlBinding/IMenuItemController.cs | 2 +- .../XamlBinding/INativeBindingService.cs | 2 +- .../src/internal/XamlBinding/INavigation.cs | 5 +- .../XamlBinding/INavigationMenuController.cs | 7 + .../XamlBinding/INavigationPageController.cs | 5 +- .../internal/XamlBinding/IPaddingElement.cs | 2 +- .../internal/XamlBinding/IPageContainer.cs | 7 + .../internal/XamlBinding/IPageController.cs | 3 +- .../src/internal/XamlBinding/IPlatform.cs | 5 +- .../IPlatformElementConfiguration.cs | 5 +- .../internal/XamlBinding/IPlatformServices.cs | 6 +- .../src/internal/XamlBinding/IRegisterable.cs | 2 +- .../XamlBinding/IResourceDictionary.cs | 4 +- .../XamlBinding/ISystemResourcesProvider.cs | 5 +- .../src/internal/XamlBinding/ITimer.cs | 2 +- .../internal/XamlBinding/IViewContainer.cs | 9 + .../internal/XamlBinding/IViewController.cs | 2 +- .../XamlBinding/IVisualElementController.cs | 8 +- .../src/internal/XamlBinding/ImageSource.cs | 2 +- .../XamlBinding/ImageSourceConverter.cs | 2 +- .../Interactivity/AttachedCollection.cs | 2 +- .../XamlBinding/Interactivity/Behavior.cs | 17 +- .../Interactivity/BindingCondition.cs | 4 +- .../XamlBinding/Interactivity/Condition.cs | 2 +- .../XamlBinding/Interactivity/DataTrigger.cs | 17 +- .../XamlBinding/Interactivity/EventTrigger.cs | 19 +- .../Interactivity/IAttachedObject.cs | 2 +- .../Interactivity/MultiCondition.cs | 2 +- .../XamlBinding/Interactivity/MultiTrigger.cs | 2 +- .../Interactivity/PropertyCondition.cs | 8 +- .../XamlBinding/Interactivity/Trigger.cs | 21 +- .../Interactivity/TriggerAction.cs | 15 +- .../XamlBinding/Interactivity/TriggerBase.cs | 19 +- .../Interactivity/XamlPropertyCondition.cs | 4 +- .../XamlBinding/Internals/DynamicResource.cs | 14 + .../XamlBinding/Internals/IDataTemplate.cs | 3 +- .../XamlBinding/Internals/IDeserializer.cs | 3 +- .../Internals/IDynamicResourceHandler.cs | 10 + .../XamlBinding/Internals/INameScope.cs | 14 + .../Internals/INamescopeProvider.cs | 2 +- .../Internals/InvalidationTrigger.cs | 3 +- .../XamlBinding/Internals/NameScope.cs | 18 +- .../Internals/NumericExtensions.cs | 3 +- .../Internals/PreserveAttribute.cs | 22 + .../XamlBinding/Internals/ResourceLoader.cs | 30 + .../internal/XamlBinding/Internals/Ticker.cs | 4 +- .../XamlBinding/Internals/TypedBinding.cs | 20 +- .../XamlBinding/InvalidNavigationException.cs | 2 +- .../XamlBinding/InvalidationEventArgs.cs | 4 +- .../src/internal/XamlBinding/Layout.cs | 319 ++ .../internal/XamlBinding/LayoutAlignment.cs | 2 +- .../internal/XamlBinding/LayoutExpandFlag.cs | 2 +- .../src/internal/XamlBinding/LayoutOptions.cs | 2 +- .../XamlBinding/LayoutOptionsConverter.cs | 8 +- .../XamlBinding/ListStringTypeConverter.cs | 4 +- .../src/internal/XamlBinding/MenuItem.cs | 2 +- .../src/internal/XamlBinding/MergedStyle.cs | 10 +- .../internal/XamlBinding/MessagingCenter.cs | 2 +- .../internal/XamlBinding/ModalEventArgs.cs | 3 +- .../XamlBinding/ModalPoppedEventArgs.cs | 9 + .../XamlBinding/ModalPoppingEventArgs.cs | 4 +- .../XamlBinding/ModalPushedEventArgs.cs | 9 + .../XamlBinding/ModalPushingEventArgs.cs | 9 + .../XamlBinding/NUIConstantExtension.cs | 6 +- .../src/internal/XamlBinding/NamedSize.cs | 2 +- .../XamlBinding/NavigationEventArgs.cs | 8 +- .../internal/XamlBinding/NavigationMenu.cs | 11 +- .../internal/XamlBinding/NavigationModel.cs | 5 +- .../internal/XamlBinding/NavigationPage.cs | 627 ++++ .../internal/XamlBinding/NavigationProxy.cs | 5 +- .../NavigationRequestedEventArgs.cs | 6 +- .../src/internal/XamlBinding/NullEffect.cs | 2 +- .../internal/XamlBinding/ObservableWrapper.cs | 10 +- .../src/internal/XamlBinding/OnIdiom.cs | 4 +- .../src/internal/XamlBinding/OnPlatform.cs | 2 +- .../internal/XamlBinding/PaddingElement.cs | 2 +- .../XamlBinding/ParameterAttribute.cs | 2 +- .../PlatformConfigurationRegistry.cs | 2 +- .../XamlBinding/PositionTypeConverter.cs | 21 +- .../XamlBinding/RectangleTypeConverter.cs | 11 +- .../src/internal/XamlBinding/Registrar.cs | 8 +- .../XamlBinding/RenderWithAttribute.cs | 2 +- .../ResolutionGroupNameAttribute.cs | 2 +- .../XamlBinding/ResourcesChangedEventArgs.cs | 4 +- .../XamlBinding/ResourcesExtensions.cs | 30 +- .../XamlBinding/RotationTypeConverter.cs | 10 +- .../src/internal/XamlBinding/RoutingEffect.cs | 2 +- .../src/internal}/XamlBinding/Setter.cs | 19 +- .../src/internal/XamlBinding/SizeRequest.cs | 5 +- .../internal/XamlBinding/SizeTypeConverter.cs | 51 + .../src/internal}/XamlBinding/Style.cs | 34 +- .../XamlBinding/StyleSheets/CharExtensions.cs | 0 .../XamlBinding/StyleSheets/CssReader.cs | 19 +- .../XamlBinding/StyleSheets/IStyle.cs | 13 + .../StyleSheets/IStyleSelectable.cs | 20 + .../XamlBinding/StyleSheets/Selector.cs | 0 .../XamlBinding/StyleSheets/Style.cs | 21 +- .../StyleSheets/StylePropertyAttribute.cs | 2 +- .../XamlBinding/StyleSheets/StyleSheet.cs | 18 +- .../StyleSheets/StyleSheetExtensions.cs | 18 +- .../StyleSheets/StyleSheetServiceProvider.cs | 0 .../StyleSheets/TextReaderExtensions.cs | 0 .../internal/XamlBinding/SynchronizedList.cs | 2 +- .../src/internal/XamlBinding/TargetIdiom.cs | 2 +- .../internal/XamlBinding/TargetPlatform.cs | 2 +- .../internal/XamlBinding/TemplateBinding.cs | 2 +- .../internal/XamlBinding/TemplateUtilities.cs | 9 +- .../src/internal/XamlBinding/Thickness.cs | 4 +- .../XamlBinding/ThicknessTypeConverter.cs | 4 +- .../XamlBinding/TizenPlatformServices.cs | 6 +- .../src/internal/XamlBinding/ToolbarItem.cs | 2 +- .../XamlBinding/ToolbarItemEventArgs.cs | 2 +- .../internal/XamlBinding/ToolbarItemOrder.cs | 2 +- .../XamlBinding/TrackableCollection.cs | 2 +- .../src/internal/XamlBinding/TypeConverter.cs | 35 + .../XamlBinding/TypeConverterAttribute.cs | 4 +- .../XamlBinding/TypeTypeConverter.cs | 11 +- .../internal}/XamlBinding/UriTypeConverter.cs | 11 +- .../XamlBinding/VectorTypeConverter.cs | 41 +- .../internal/XamlBinding/WeakEventManager.cs | 2 +- src/Tizen.NUI/src/public/Animation.cs | 231 +- .../src/public/BaseComponents/ImageView.cs | 40 +- .../src/public/BaseComponents/TableView.cs | 1 + .../src/public/BaseComponents/TextEditor.cs | 22 +- .../src/public/BaseComponents/TextField.cs | 22 +- .../src/public/BaseComponents/TextLabel.cs | 5 +- .../src/public/BaseComponents/View.cs | 99 +- src/Tizen.NUI/src/public/BaseHandle.cs | 35 +- src/Tizen.NUI/src/public/Color.cs | 2 + src/Tizen.NUI/src/public/Container.cs | 2 +- src/Tizen.NUI/src/public/Element.cs | 19 - src/Tizen.NUI/src/public/Extents.cs | 2 + .../src/public/GraphicsTypeManager.cs | 10 + src/Tizen.NUI/src/public/Layer.cs | 15 + src/Tizen.NUI/src/public/NUIApplication.cs | 4 + src/Tizen.NUI/src/public/Position.cs | 2 + src/Tizen.NUI/src/public/Position2D.cs | 2 + src/Tizen.NUI/src/public/Property.cs | 16 + src/Tizen.NUI/src/public/Rectangle.cs | 4 +- src/Tizen.NUI/src/public/RelativeVector2.cs | 4 +- src/Tizen.NUI/src/public/RelativeVector3.cs | 2 + src/Tizen.NUI/src/public/RelativeVector4.cs | 4 +- src/Tizen.NUI/src/public/Rotation.cs | 2 + src/Tizen.NUI/src/public/Size.cs | 2 + src/Tizen.NUI/src/public/Size2D.cs | 2 + .../src/public/UIComponents/Button.cs | 2 +- .../src/public/UIComponents/PushButton.cs | 34 +- .../src/public/UIComponents/Slider.cs | 25 +- src/Tizen.NUI/src/public/Vector2.cs | 2 + src/Tizen.NUI/src/public/Vector3.cs | 2 + src/Tizen.NUI/src/public/Vector4.cs | 2 + .../public}/Xaml/ProvideCompiledAttribute.cs | 0 .../src/public/Xaml/ViewExtensions.cs | 41 +- .../src/public/XamlBinding/BindableObject.cs | 128 +- .../src/public/XamlBinding/Command.cs | 25 +- .../src/public/XamlBinding/ContentPage.cs | 181 +- .../src/public/XamlBinding/Element.cs | 195 +- .../public/XamlBinding/IResourcesProvider.cs | 19 + .../src/public/XamlBinding/IValueConverter.cs | 31 + .../public/XamlBinding/NameScopeExtensions.cs | 13 +- .../src/public/XamlBinding/Page.cs | 146 +- .../public/XamlBinding/ResourceDictionary.cs | 72 +- .../src/public/XamlBinding/TemplatedPage.cs | 5 +- .../src/public/XamlBinding/Transition.cs | 216 ++ .../XamlBinding/XmlnsDefinitionAttribute.cs | 18 +- 354 files changed, 3871 insertions(+), 19918 deletions(-) delete mode 100755 src/Tizen.NUI.Xaml/Properties/AssemblyInfo.cs delete mode 100755 src/Tizen.NUI.Xaml/Properties/GlobalAssemblyInfo.cs delete mode 100755 src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.csproj delete mode 100755 src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.sln delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationMenuController.cs delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageContainer.cs delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewContainer.cs delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPoppedEventArgs.cs delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushedEventArgs.cs delete mode 100755 src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushingEventArgs.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/CustomView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/FlexContainer.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/ImageView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/Scrollable.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TableView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextEditor.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextField.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextLabel.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VideoView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/View.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VisualView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/BaseHandle.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/Container.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Forms/Layer.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/Button.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/CheckBoxButton.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/Popup.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/ProgressBar.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/PushButton.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/RadioButton.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollBar.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollView.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/Slider.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/UIComponents/ToggleButton.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IMarkupExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IProvideValueTarget.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IReferenceProvider.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IValueProvider.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IXamlTypeResolver.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/IXmlLineInfoProvider.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ArrayExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/BindingExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/DynamicResourceExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/NullExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TemplateBindingExtension.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/XamlFilePathAttribute.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/Xaml/XmlLineInfo.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/CollectionSynchronizationCallback.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/GraphicsTypeManager.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/IExtendedTypeConverter.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/IResourcesProvider.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/IValueConverter.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/DynamicResource.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/IDynamicResourceHandler.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/INameScope.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/PreserveAttribute.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/ResourceLoader.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Performance.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/SizeTypeConverter.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyle.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyleSelectable.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/Transition.cs delete mode 100755 src/Tizen.NUI.Xaml/src/public/XamlBinding/TypeConverter.cs delete mode 100755 src/Tizen.NUI/src/internal/BindableProperty.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/ApplyPropertiesVisitor.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/CreateValuesVisitor.cs (91%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/DesignMode.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/ExpandMarkupsVisitor.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/FillResourceDictionariesVisitor.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/HydrationContext.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IConverterOptions.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IDictionaryExtensions.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IExpressionParser.cs (100%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/IMarkupExtension.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/INativeValueConverterService.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IProvideParentValues.cs (100%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/IProvideValueTarget.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/IReferenceProvider.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IResourcesLoader.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IRootObjectProvider.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/IValueConverterProvider.cs (100%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/IValueProvider.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/IXamlTypeResolver.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/IXmlLineInfoProvider.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/MarkupExpressionParser.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/MarkupExtensionParser.cs (99%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ArrayExtension.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/BindingExtension.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/DynamicResourceExtension.cs create mode 100755 src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/NullExtension.cs rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/MarkupExtensions/ReferenceExtension.cs (60%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/MarkupExtensions/StaticExtension.cs (69%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/MarkupExtensions/StaticResourceExtension.cs (79%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/MarkupExtensions/StyleSheetExtension.cs (66%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TemplateBindingExtension.cs rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/MarkupExtensions/TypeExtension.cs (50%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/NamescopingVisitor.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/PruneIgnoredNodesVisitor.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/ReflectionExtensions.cs (97%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/RegisterXNamesVisitor.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/ResourcesLoader.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/RuntimeNamePropertyAttribute.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/TypeArgumentsParser.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/TypeConversionAttribute.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/TypeConversionExtensions.cs (89%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/ValueConverterProvider.cs (95%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/VisualStateManager.cs (94%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/XamlCompilationAttribute.cs (54%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/XamlFilePathAttribute.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XamlLoader.cs (93%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XamlNode.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XamlNodeVisitor.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XamlParseException.cs (96%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XamlParser.cs (99%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/XamlResourceIdAttribute.cs (58%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/Xaml/XamlServiceProvider.cs (57%) create mode 100755 src/Tizen.NUI/src/internal/Xaml/XmlLineInfo.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XmlName.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/Xaml/XmlnsHelper.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Accelerator.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/AcceleratorTypeConverter.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ActionSheetArguments.cs (92%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/AlertArguments.cs (91%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Application.cs (59%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/BaseMenuItem.cs (52%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/BindableObjectExtensions.cs (97%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/BindableProperty.cs (90%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/BindablePropertyConverter.cs (88%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/BindablePropertyKey.cs (65%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Binding.cs (83%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/BindingBase.cs (77%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/BindingBaseExtensions.cs (89%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/BindingExpression.cs (90%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/BindingMode.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/BindingTypeConverter.cs (68%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationCallback.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/CollectionSynchronizationContext.cs (94%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/ColorTypeConverter.cs (83%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Configuration.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ContentPropertyAttribute.cs (79%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ControlTemplate.cs (85%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DataTemplate.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DataTemplateExtensions.cs (83%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DataTemplateSelector.cs (81%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DependencyAttribute.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DependencyFetchTarget.cs (74%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DependencyResolver.cs (96%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DependencyService.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Device.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DeviceInfo.cs (82%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/DeviceOrientation.cs (64%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Effect.cs (91%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/EffectiveFlowDirection.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ElementCollection.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ElementEventArgs.cs (91%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ElementTemplate.cs (95%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/EnumerableExtensions.cs (95%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/EventArg.cs (71%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ExportEffectAttribute.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ExtentsTypeConverter.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/FileImageSource.cs (97%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/FileImageSourceConverter.cs (93%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/FlowDirection.cs (97%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/GestureRecognizer.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/HandlerAttribute.cs (93%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IAppIndexingProvider.cs (72%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IAppLinkEntry.cs (91%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IAppLinks.cs (86%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/IApplicationController.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IConfigElement.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IConfigPlatform.cs (63%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IControlTemplated.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IEffectControlProvider.cs (81%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IElement.cs (84%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IElementConfiguration.cs (85%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IElementController.cs (90%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/IExtendedTypeConverter.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IGestureRecognizer.cs (77%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IIsolatedStorageFile.cs (82%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ILayout.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ILayoutController.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IMenuItemController.cs (84%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/INativeBindingService.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/INavigation.cs (97%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/INavigationMenuController.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/INavigationPageController.cs (89%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IPaddingElement.cs (90%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/IPageContainer.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IPageController.cs (86%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IPlatform.cs (83%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IPlatformElementConfiguration.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IPlatformServices.cs (84%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IRegisterable.cs (62%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IResourceDictionary.cs (71%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ISystemResourcesProvider.cs (50%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ITimer.cs (90%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/IViewContainer.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IViewController.cs (70%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/IVisualElementController.cs (69%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ImageSource.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ImageSourceConverter.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/AttachedCollection.cs (99%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/Behavior.cs (65%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/BindingCondition.cs (96%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/Condition.cs (97%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/DataTrigger.cs (61%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/EventTrigger.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/IAttachedObject.cs (82%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/MultiCondition.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/MultiTrigger.cs (94%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/PropertyCondition.cs (90%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/Trigger.cs (60%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/TriggerAction.cs (53%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Interactivity/TriggerBase.cs (85%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs (97%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Internals/DynamicResource.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/IDataTemplate.cs (62%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/IDeserializer.cs (79%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Internals/IDynamicResourceHandler.cs create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Internals/INameScope.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/INamescopeProvider.cs (70%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/InvalidationTrigger.cs (82%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Internals/NameScope.cs (66%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/NumericExtensions.cs (88%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Internals/PreserveAttribute.cs create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Internals/ResourceLoader.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Internals/Ticker.cs (96%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Internals/TypedBinding.cs (92%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/InvalidNavigationException.cs (84%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/InvalidationEventArgs.cs (78%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/Layout.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/LayoutAlignment.cs (81%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/LayoutExpandFlag.cs (74%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/LayoutOptions.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/LayoutOptionsConverter.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ListStringTypeConverter.cs (81%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/MenuItem.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/MergedStyle.cs (95%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/MessagingCenter.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ModalEventArgs.cs (80%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/ModalPoppedEventArgs.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ModalPoppingEventArgs.cs (57%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/ModalPushedEventArgs.cs create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/ModalPushingEventArgs.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NUIConstantExtension.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NamedSize.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NavigationEventArgs.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NavigationMenu.cs (89%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NavigationModel.cs (97%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/NavigationPage.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NavigationProxy.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NavigationRequestedEventArgs.cs (92%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/NullEffect.cs (85%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ObservableWrapper.cs (96%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/OnIdiom.cs (92%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/OnPlatform.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/PaddingElement.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ParameterAttribute.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/PlatformConfigurationRegistry.cs (97%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/PositionTypeConverter.cs (67%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/RectangleTypeConverter.cs (64%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Registrar.cs (97%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/RenderWithAttribute.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ResolutionGroupNameAttribute.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ResourcesChangedEventArgs.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ResourcesExtensions.cs (71%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/RotationTypeConverter.cs (83%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/RoutingEffect.cs (96%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Setter.cs (78%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/SizeRequest.cs (93%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/SizeTypeConverter.cs rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/Style.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/CharExtensions.cs (100%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/StyleSheets/CssReader.cs (75%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/StyleSheets/IStyle.cs create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/StyleSheets/IStyleSelectable.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/Selector.cs (100%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/StyleSheets/Style.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/StylePropertyAttribute.cs (96%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/StyleSheets/StyleSheet.cs (79%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/StyleSheetExtensions.cs (51%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/StyleSheetServiceProvider.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/StyleSheets/TextReaderExtensions.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/SynchronizedList.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TargetIdiom.cs (80%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TargetPlatform.cs (82%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TemplateBinding.cs (99%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TemplateUtilities.cs (91%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/Thickness.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ThicknessTypeConverter.cs (96%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TizenPlatformServices.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ToolbarItem.cs (98%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ToolbarItemEventArgs.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/ToolbarItemOrder.cs (75%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TrackableCollection.cs (91%) create mode 100755 src/Tizen.NUI/src/internal/XamlBinding/TypeConverter.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/TypeConverterAttribute.cs (95%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/TypeTypeConverter.cs (69%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/UriTypeConverter.cs (51%) rename src/{Tizen.NUI.Xaml/src/public => Tizen.NUI/src/internal}/XamlBinding/VectorTypeConverter.cs (63%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/internal/XamlBinding/WeakEventManager.cs (99%) delete mode 100755 src/Tizen.NUI/src/public/Element.cs rename src/{Tizen.NUI.Xaml/src/internal => Tizen.NUI/src/public}/Xaml/ProvideCompiledAttribute.cs (100%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/Xaml/ViewExtensions.cs (67%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/BindableObject.cs (90%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/Command.cs (88%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/ContentPage.cs (58%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/Element.cs (79%) create mode 100755 src/Tizen.NUI/src/public/XamlBinding/IResourcesProvider.cs create mode 100755 src/Tizen.NUI/src/public/XamlBinding/IValueConverter.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/NameScopeExtensions.cs (76%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/Page.cs (78%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/ResourceDictionary.cs (87%) rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/TemplatedPage.cs (93%) create mode 100755 src/Tizen.NUI/src/public/XamlBinding/Transition.cs rename src/{Tizen.NUI.Xaml => Tizen.NUI}/src/public/XamlBinding/XmlnsDefinitionAttribute.cs (69%) diff --git a/packaging/PlatformFileList.txt b/packaging/PlatformFileList.txt index 411716062..06353a18d 100755 --- a/packaging/PlatformFileList.txt +++ b/packaging/PlatformFileList.txt @@ -63,7 +63,6 @@ Tizen.Network.WiFiDirect.dll #common #mobile #tv #ivi Tizen.Nlp.dll #mobile #mobile-emul Tizen.NUI.dll #common #mobile #mobile-emul #tv #wearable Tizen.NUI.Wearable.dll #wearable -Tizen.NUI.Xaml.dll #common #mobile #mobile-emul #tv #wearable Tizen.PhonenumberUtils.dll #mobile #mobile-emul #wearable Tizen.Pims.Calendar.dll #common #mobile #mobile-emul #tv #wearable Tizen.Pims.Contacts.dll #mobile #mobile-emul #wearable diff --git a/src/Tizen.NUI.Design/Tizen.NUI.Design.csproj b/src/Tizen.NUI.Design/Tizen.NUI.Design.csproj index da1aa4c14..4b9e740f9 100755 --- a/src/Tizen.NUI.Design/Tizen.NUI.Design.csproj +++ b/src/Tizen.NUI.Design/Tizen.NUI.Design.csproj @@ -6,11 +6,11 @@ - + - + diff --git a/src/Tizen.NUI.Design/Tizen.NUI.Design.sln b/src/Tizen.NUI.Design/Tizen.NUI.Design.sln index 2d817695e..9ee267a3f 100755 --- a/src/Tizen.NUI.Design/Tizen.NUI.Design.sln +++ b/src/Tizen.NUI.Design/Tizen.NUI.Design.sln @@ -14,8 +14,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen", "..\Tizen\Tizen.csp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\Tizen.Log\Tizen.Log.csproj", "{837994B4-B99D-4EFE-B6FF-1BE17EE78711}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Xaml", "..\Tizen.NUI.Xaml\Tizen.NUI.Xaml.csproj", "{7940BB09-D1C6-45BC-A220-723F823C3DFB}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -98,18 +96,6 @@ Global {837994B4-B99D-4EFE-B6FF-1BE17EE78711}.Release|x64.Build.0 = Release|Any CPU {837994B4-B99D-4EFE-B6FF-1BE17EE78711}.Release|x86.ActiveCfg = Release|Any CPU {837994B4-B99D-4EFE-B6FF-1BE17EE78711}.Release|x86.Build.0 = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|x64.ActiveCfg = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|x64.Build.0 = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|x86.ActiveCfg = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Debug|x86.Build.0 = Debug|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|Any CPU.Build.0 = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|x64.ActiveCfg = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|x64.Build.0 = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|x86.ActiveCfg = Release|Any CPU - {7940BB09-D1C6-45BC-A220-723F823C3DFB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/Tizen.NUI.Design/Tizen.NUI.Design/AttributeTableBuilder.cs b/src/Tizen.NUI.Design/Tizen.NUI.Design/AttributeTableBuilder.cs index 09c0cd491..3422de831 100755 --- a/src/Tizen.NUI.Design/Tizen.NUI.Design/AttributeTableBuilder.cs +++ b/src/Tizen.NUI.Design/Tizen.NUI.Design/AttributeTableBuilder.cs @@ -2,7 +2,7 @@ using System.ComponentModel; using Microsoft.Windows.Design; using Tizen.NUI.BaseComponents; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Design { diff --git a/src/Tizen.NUI.Design/Tizen.NUI/AttributeTableBuilder.cs b/src/Tizen.NUI.Design/Tizen.NUI/AttributeTableBuilder.cs index 77a8fd815..94e9a440c 100755 --- a/src/Tizen.NUI.Design/Tizen.NUI/AttributeTableBuilder.cs +++ b/src/Tizen.NUI.Design/Tizen.NUI/AttributeTableBuilder.cs @@ -3,7 +3,6 @@ using System.ComponentModel; using System.Reflection; using Tizen.NUI.BaseComponents; using Tizen.NUI.UIComponents; -using Tizen.NUI.Xaml; namespace Tizen.NUI { diff --git a/src/Tizen.NUI.Xaml/Properties/AssemblyInfo.cs b/src/Tizen.NUI.Xaml/Properties/AssemblyInfo.cs deleted file mode 100755 index 3c78009c8..000000000 --- a/src/Tizen.NUI.Xaml/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.Runtime.CompilerServices; - -using Tizen.NUI.XamlBinding; -using Tizen.NUI.Xaml; - -[assembly: XamlCompilationAttribute(XamlCompilationOptions.Compile)] - -[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI")] -[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.Xaml.Forms.BaseComponents")] -[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.UIComponents")] -[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.Xaml")] -[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.XamlBinding")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "Tizen.NUI.Xaml")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "Tizen.NUI.Xaml")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] -[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] diff --git a/src/Tizen.NUI.Xaml/Properties/GlobalAssemblyInfo.cs b/src/Tizen.NUI.Xaml/Properties/GlobalAssemblyInfo.cs deleted file mode 100755 index 10ce69d28..000000000 --- a/src/Tizen.NUI.Xaml/Properties/GlobalAssemblyInfo.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System.Reflection; - -//[assembly: AssemblyCompany("Tizen.NUI.Xaml Inc.")] -//[assembly: AssemblyProduct("Tizen.NUI.Xaml")] -[assembly: AssemblyCopyright("Copyright ?Xamarin Inc. 2013-2017")] -[assembly: AssemblyTrademark("")] diff --git a/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.csproj b/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.csproj deleted file mode 100755 index 14c6f107f..000000000 --- a/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - netstandard2.0 - - - - - - - - - - TizenSystemSettings - - - - - \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.sln b/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.sln deleted file mode 100755 index 24d4d36fe..000000000 --- a/src/Tizen.NUI.Xaml/Tizen.NUI.Xaml.sln +++ /dev/null @@ -1,55 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26430.12 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Xaml", "Tizen.NUI.Xaml.csproj", "{473C3BEC-2F67-4285-85FC-BF4E96BFFF1C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.System.SystemSettings", "..\Tizen.System.SystemSettings\Tizen.System.SystemSettings.csproj", "{8D71B1B6-9901-436F-8914-9F812E1B10A7}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen", "..\Tizen\Tizen.csproj", "{33B7EFD5-0050-416D-A2D1-8F18F26F106D}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Log", "..\Tizen.Log\Tizen.Log.csproj", "{1C550C1F-9370-42FF-86FA-EDCD6262B258}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Applications.Common", "..\Tizen.Applications.Common\Tizen.Applications.Common.csproj", "{2AEDCAA7-543F-48A1-BEA3-CF3E14F6EDC2}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI", "..\Tizen.NUI\Tizen.NUI.csproj", "{B5CEBFFC-3355-408A-8F99-3DE922271F72}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {473C3BEC-2F67-4285-85FC-BF4E96BFFF1C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {473C3BEC-2F67-4285-85FC-BF4E96BFFF1C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {473C3BEC-2F67-4285-85FC-BF4E96BFFF1C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {473C3BEC-2F67-4285-85FC-BF4E96BFFF1C}.Release|Any CPU.Build.0 = Release|Any CPU - {8D71B1B6-9901-436F-8914-9F812E1B10A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8D71B1B6-9901-436F-8914-9F812E1B10A7}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8D71B1B6-9901-436F-8914-9F812E1B10A7}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8D71B1B6-9901-436F-8914-9F812E1B10A7}.Release|Any CPU.Build.0 = Release|Any CPU - {33B7EFD5-0050-416D-A2D1-8F18F26F106D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {33B7EFD5-0050-416D-A2D1-8F18F26F106D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {33B7EFD5-0050-416D-A2D1-8F18F26F106D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {33B7EFD5-0050-416D-A2D1-8F18F26F106D}.Release|Any CPU.Build.0 = Release|Any CPU - {1C550C1F-9370-42FF-86FA-EDCD6262B258}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C550C1F-9370-42FF-86FA-EDCD6262B258}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C550C1F-9370-42FF-86FA-EDCD6262B258}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C550C1F-9370-42FF-86FA-EDCD6262B258}.Release|Any CPU.Build.0 = Release|Any CPU - {2AEDCAA7-543F-48A1-BEA3-CF3E14F6EDC2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2AEDCAA7-543F-48A1-BEA3-CF3E14F6EDC2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2AEDCAA7-543F-48A1-BEA3-CF3E14F6EDC2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2AEDCAA7-543F-48A1-BEA3-CF3E14F6EDC2}.Release|Any CPU.Build.0 = Release|Any CPU - {B5CEBFFC-3355-408A-8F99-3DE922271F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B5CEBFFC-3355-408A-8F99-3DE922271F72}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B5CEBFFC-3355-408A-8F99-3DE922271F72}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B5CEBFFC-3355-408A-8F99-3DE922271F72}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {F532FBB4-80FB-46CE-A5EC-4E1333BF2622} - EndGlobalSection -EndGlobal diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationMenuController.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationMenuController.cs deleted file mode 100755 index 87abb32d6..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationMenuController.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Tizen.NUI.XamlBinding -{ - internal interface INavigationMenuController : IViewController - { - void SendTargetSelected(Xaml.Page target); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageContainer.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageContainer.cs deleted file mode 100755 index 09009515d..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageContainer.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Tizen.NUI.XamlBinding -{ - internal interface IPageContainer where T : Xaml.Page - { - T CurrentPage { get; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewContainer.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewContainer.cs deleted file mode 100755 index e95f10402..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewContainer.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System.Collections.Generic; - -namespace Tizen.NUI.XamlBinding -{ - internal interface IViewContainer where T : Element - { - IList Children { get; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPoppedEventArgs.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPoppedEventArgs.cs deleted file mode 100755 index 952fc97d4..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPoppedEventArgs.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Tizen.NUI.XamlBinding -{ - internal class ModalPoppedEventArgs : ModalEventArgs - { - public ModalPoppedEventArgs(Xaml.Page modal) : base(modal) - { - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushedEventArgs.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushedEventArgs.cs deleted file mode 100755 index a88a21155..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushedEventArgs.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Tizen.NUI.XamlBinding -{ - internal class ModalPushedEventArgs : ModalEventArgs - { - public ModalPushedEventArgs(Xaml.Page modal) : base(modal) - { - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushingEventArgs.cs b/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushingEventArgs.cs deleted file mode 100755 index 8f6fd885c..000000000 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ModalPushingEventArgs.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace Tizen.NUI.XamlBinding -{ - internal class ModalPushingEventArgs : ModalEventArgs - { - public ModalPushingEventArgs(Xaml.Page modal) : base(modal) - { - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/CustomView.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/CustomView.cs deleted file mode 100755 index 909b5b455..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/CustomView.cs +++ /dev/null @@ -1,838 +0,0 @@ -/* - * Copyright (c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - internal class InternalCustomeView : Tizen.NUI.BaseComponents.CustomView - { - public InternalCustomeView(string typeName, CustomViewBehaviour behaviour) : base(typeName, behaviour) - { - - } - /// - /// Requests a relayout, which means performing a size negotiation on this view, its parent, and children (and potentially whole scene).
- /// This method can also be called from a derived class every time it needs a different size.
- /// At the end of event processing, the relayout process starts and all controls which requested relayout will have their sizes (re)negotiated.
- /// It can be called multiple times; the size negotiation is still only performed once, i.e., there is no need to keep track of this in the calling side.
- ///
- /// 6 - public new void RelayoutRequest() - { - base.RelayoutRequest(); - } - - /// - /// Provides the view implementation of GetHeightForWidth. - /// - /// The width to use. - /// The height based on the width. - /// 6 - public new float GetHeightForWidthBase(float width) - { - return base.GetHeightForWidthBase(width); - } - - /// - /// Provides the view implementation of GetWidthForHeight. - /// - /// The height to use. - /// The width based on the height. - /// 6 - public new float GetWidthForHeightBase(float height) - { - return base.GetWidthForHeightBase(height); - } - - /// - /// Calculates the size for a child using the base view object. - /// - /// The child view to calculate the size for. - /// The dimension to calculate the size, for example, the width or the height. - /// Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found. - /// 6 - public float CalculateChildSizeBase(View child, DimensionType dimension) - { - return base.CalculateChildSizeBase(child.ViewInstance, dimension); - } - - /// - /// Determines if this view is dependent on it's children for relayout from the base class. - /// - /// The dimension(s) to check for. - /// Return if the view is dependent on it's children. - /// 6 - public new bool RelayoutDependentOnChildrenBase(DimensionType dimension) - { - return base.RelayoutDependentOnChildrenBase(dimension); - } - - /// - /// Determines if this view is dependent on it's children for relayout from the base class. - /// - /// Return if the view is dependent on it's children. - /// 6 - public new bool RelayoutDependentOnChildrenBase() - { - return base.RelayoutDependentOnChildrenBase(); - } - - /// - /// Registers a visual by property index, linking a view to visual when required.
- /// In the case of the visual being a view or control deeming visual not required, then the visual should be an empty handle.
- /// No parenting is done during registration, this should be done by a derived class.
- ///
- /// The property index of the visual used to reference visual. - /// The visual to register. - /// 6 - public new void RegisterVisual(int index, VisualBase visual) - { - base.RegisterVisual(index, visual); - } - - /// - /// Registers a visual by the property index, linking a view to visual when required.
- /// In the case of the visual being a view or control deeming visual not required, then the visual should be an empty handle.
- /// If enabled is false, then the visual is not set on the stage until enabled by the derived class.
- ///
- /// The property index of the visual used to reference visual. - /// The visual to register. - /// False if derived class wants to control when the visual is set on the stage. - /// 6 - public new void RegisterVisual(int index, VisualBase visual, bool enabled) - { - base.RegisterVisual(index, visual, enabled); - } - - /// - /// Erases the entry matching the given index from the list of registered visuals. - /// - /// The property index of the visual used to reference visual. - /// 6 - public new void UnregisterVisual(int index) - { - base.UnregisterVisual(index); - } - - /// - /// Retrieves the visual associated with the given property index.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual used to reference visual. - /// The registered visual if exists, otherwise an empty handle. - /// 6 - public new VisualBase GetVisual(int index) - { - return base.GetVisual(index); - } - - /// - /// Sets the given visual to be displayed or not when parent staged.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual, used to reference visual. - /// Flag set to enabled or disabled. - /// 6 - public new void EnableVisual(int index, bool enable) - { - base.EnableVisual(index, enable); - } - - /// - /// Queries if the given visual is to be displayed when parent staged.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual. - /// Whether visual is enabled or not. - /// 6 - public new bool IsVisualEnabled(int index) - { - return base.IsVisualEnabled(index); - } - - /// - /// Creates a transition effect on the control. - /// - /// The transition data describing the effect to create. - /// A handle to an animation defined with the given effect, or an empty handle if no properties match. - /// 6 - public new Animation CreateTransition(TransitionData transitionData) - { - return base.CreateTransition(transitionData); - } - - /// - /// Emits the KeyInputFocusGained signal if true, else, emits the KeyInputFocusLost signal.
- /// Should be called last by the control after it acts on the input focus change.
- ///
- /// True if gained, false if lost. - /// 6 - public new void EmitFocusSignal(bool focusGained) - { - base.EmitFocusSignal(focusGained); - } - } - - /// - /// CustomView provides some common functionality required by all views. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public class CustomView : View - { - private InternalCustomeView _customView; - internal InternalCustomeView customView - { - get - { - if (null == _customView) - { - _customView = handleInstance as InternalCustomeView; - } - - return _customView; - } - } - - /// - /// Creates a new instance of a Xaml CustomView. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public CustomView(string typeName, CustomViewBehaviour behaviour) : this(new Tizen.NUI.BaseComponents.CustomView(typeName, behaviour)) - { - } - - internal CustomView(Tizen.NUI.BaseComponents.CustomView nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusNavigationSupportProperty = BindableProperty.Create("FocusNavigationSupport", typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var customView = ((CustomView)bindable).customView; - customView.FocusNavigationSupport = (bool)newValue; - }, - defaultValueCreator:(bindable) => - { - var customView = ((CustomView)bindable).customView; - return customView.FocusNavigationSupport; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusGroupProperty = BindableProperty.Create("FocusGroup", typeof(bool), typeof(CustomView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var customView = ((CustomView)bindable).customView; - customView.FocusGroup = (bool)newValue; - }, - defaultValueCreator:(bindable) => - { - var customView = ((CustomView)bindable).customView; - return customView.FocusGroup; - }); - - /// - /// Sets the background with a property map. - /// - /// The background property map. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetBackground(PropertyMap map) - { - customView.SetBackground(map); - } - - /// - /// Allows deriving classes to enable any of the gesture detectors that are available.
- /// Gesture detection can be enabled one at a time or in a bitwise format.
- ///
- /// The gesture type(s) to enable. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void EnableGestureDetection(Gesture.GestureType type) - { - customView.EnableGestureDetection(type); - } - - /// - /// Sets whether this control supports two dimensional keyboard navigation - /// (i.e., whether it knows how to handle the keyboard focus movement between its child views).
- /// The control doesn't support it by default.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool FocusNavigationSupport - { - get - { - return (bool)GetValue(FocusNavigationSupportProperty); - } - set - { - SetValue(FocusNavigationSupportProperty, value); - } - } - - /// - /// Sets or gets whether this control is a focus group for keyboard navigation. - /// - /// True if this control is set as a focus group for keyboard navigation. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool FocusGroup - { - get - { - return (bool)GetValue(FocusGroupProperty); - } - set - { - SetValue(FocusGroupProperty, value); - } - } - - /// - /// This method is called after the control has been initialized.
- /// Derived classes should do any second phase initialization by overriding this method.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnInitialize() - { - } - - /// - /// Called after the view has been connected to the stage.
- /// When a view is connected, it will be directly or indirectly parented to the root view.
- /// The root view is provided automatically by Tizen.NUI.Stage, and is always considered to be connected.
- /// When the parent of a set of views is connected to the stage, then all of the children will receive this callback.
- ///
- /// The depth in the hierarchy for the view. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnStageConnection(int depth) - { - } - - /// - /// Called after the view has been disconnected from the stage.
- /// If a view is disconnected, it either has no parent, or is parented to a disconnected view.
- /// When the parent of a set of views is disconnected to the stage, then all of the children will receive this callback, starting with the leaf views.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnStageDisconnection() - { - } - - /// - /// Called after a child has been added to the owning view. - /// - /// The child which has been added. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnChildAdd(View view) - { - } - - /// - /// Called after the owning view has attempted to remove a child( regardless of whether it succeeded or not ). - /// - /// The child being removed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnChildRemove(View view) - { - } - - /// - /// Called when the owning view property is set. - /// - /// The property index that was set. - /// The value to set. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnPropertySet(int index, PropertyValue propertyValue) - { - } - - /// - /// Called when the owning view's size is set, for example, using View.SetSize(). - /// - /// The target size. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnSizeSet(Vector3 targetSize) - { - } - - /// - /// Called when the owning view's size is animated, for example, using Animation::AnimateTo( Property ( view, View::Property::SIZE ), ... ). - /// - /// The object which is animating the owning view. - /// The target size. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnSizeAnimation(Animation animation, Vector3 targetSize) - { - } - - /// - /// Called after a touch event is received by the owning view.
- /// CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- ///
- /// The touch event. - /// True if the event should be consumed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool OnTouch(Touch touch) - { - return false; // Do not consume - } - - /// - /// Called after a hover event is received by the owning view.
- /// CustomViewBehaviour.REQUIRES_HOVER_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- ///
- /// The hover event. - /// True if the hover event should be consumed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool OnHover(Hover hover) - { - return false; // Do not consume - } - - /// - /// Called after a key event is received by the view that has had its focus set. - /// - /// The key event. - /// True if the key event should be consumed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool OnKey(Key key) - { - return false; // Do not consume - } - - /// - /// Called after a wheel event is received by the owning view.
- /// CustomViewBehaviour.REQUIRES_WHEEL_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).
- ///
- /// The wheel event. - /// True if the wheel event should be consumed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool OnWheel(Wheel wheel) - { - return false; // Do not consume - } - - /// - /// Called after the size negotiation has been finished for this control.
- /// The control is expected to assign this given size to itself or its children.
- /// Should be overridden by derived classes if they need to layout views differently after certain operations like add or remove views, resize, or after changing specific properties.
- /// As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored).
- ///
- /// The allocated size. - /// The control should add views to this container that it is not able to allocate a size for. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnRelayout(Vector2 size, RelayoutContainer container) - { - } - - /// - /// Notification for deriving classes. - /// - /// The policy being set. - /// The policy is being set for. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnSetResizePolicy(ResizePolicyType policy, DimensionType dimension) - { - } - - /// - /// Returns the natural size of the view. - /// - /// The view's natural size - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual Size2D GetNaturalSize() - { - return new Size2D(0, 0); - } - - /// - /// Calculates the size for a child. - /// - /// The child view to calculate the size for. - /// The dimension to calculate the size, for example, the width or the height. - /// Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual float CalculateChildSize(View child, DimensionType dimension) - { - return customView.CalculateChildSize(child.view, dimension); - } - - /// - /// This method is called during size negotiation when a height is required for a given width.
- /// Derived classes should override this if they wish to customize the height returned.
- ///
- /// Width to use - /// The height based on the width - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public new virtual float GetHeightForWidth(float width) - { - return customView.GetHeightForWidth(width); - } - - /// - /// This method is called during size negotiation when a width is required for a given height.
- /// Derived classes should override this if they wish to customize the width returned.
- ///
- /// Height to use - /// The width based on the width - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public new virtual float GetWidthForHeight(float height) - { - return customView.GetWidthForHeight(height); - } - - /// - /// Determines if this view is dependent on it's children for relayout. - /// - /// The dimension(s) to check for. - /// Return if the view is dependent on it's children. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool RelayoutDependentOnChildren(DimensionType dimension) - { - return customView.RelayoutDependentOnChildren(dimension); - } - - /// - /// Determines if this view is dependent on it's children for relayout from the base class. - /// - /// Return true if the view is dependent on it's children. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool RelayoutDependentOnChildren() - { - return customView.RelayoutDependentOnChildren(); - } - - /// - /// The virtual method to notify deriving classes that relayout dependencies have been - /// met and the size for this object is about to be calculated for the given dimension. - /// - /// The dimension that is about to be calculated. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnCalculateRelayoutSize(DimensionType dimension) - { - } - - /// - /// The virtual method to notify deriving classes that the size for a dimension has just been negotiated. - /// - /// The new size for the given dimension. - /// The dimension that was just negotiated. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnLayoutNegotiated(float size, DimensionType dimension) - { - } - - /// - /// This method should be overridden by deriving classes requiring notifications when the style changes. - /// - /// The StyleManager object. - /// Information denoting what has changed. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnStyleChange(StyleManager styleManager, StyleChangeType change) - { - } - - /// - /// Called when the control gain key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is gained. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnFocusGained() - { - } - - /// - /// Called when the control loses key input focus. Should be overridden by derived classes if they need to customize what happens when the focus is lost. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnFocusLost() - { - } - - /// - /// Gets the next keyboard focusable view in this control towards the given direction.
- /// A control needs to override this function in order to support two dimensional keyboard navigation.
- ///
- /// The current focused view. - /// The direction to move the focus towards. - /// Whether the focus movement should be looped within the control. - /// The next keyboard focusable view in this control or an empty handle if no view can be focused. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual View GetNextFocusableView(View currentFocusedView, Tizen.NUI.BaseComponents.View.FocusDirection direction, bool loopEnabled) - { - return new View(); - } - - /// - /// Informs this control that its chosen focusable view will be focused.
- /// This allows the application to preform any actions it wishes before the focus is actually moved to the chosen view.
- ///
- /// The commited focused view. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnFocusChangeCommitted(View commitedFocusableView) - { - } - - /// - /// This method is called when the control has enter pressed on it.
- /// Derived classes should override this to perform custom actions.
- ///
- /// True if this control supported this action. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool OnKeyboardEnter() - { - return false; - } - - /// - /// Called whenever a pan gesture is detected on this control.
- /// This should be overridden by deriving classes when pan detection is enabled.
- /// There is no default behavior with panning.
- /// Pan detection should be enabled via EnableGestureDetection().
- ///
- /// The pan gesture. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnPan(PanGesture pan) - { - } - - /// - /// Called whenever a tap gesture is detected on this control.
- /// This should be overridden by deriving classes when tap detection is enabled.
- /// There is no default behavior with a tap.
- /// Tap detection should be enabled via EnableGestureDetection().
- ///
- /// The tap gesture. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual void OnTap(TapGesture tap) - { - } - - /// - /// Requests a relayout, which means performing a size negotiation on this view, its parent, and children (and potentially whole scene).
- /// This method can also be called from a derived class every time it needs a different size.
- /// At the end of event processing, the relayout process starts and all controls which requested relayout will have their sizes (re)negotiated.
- /// It can be called multiple times; the size negotiation is still only performed once, i.e., there is no need to keep track of this in the calling side.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void RelayoutRequest() - { - customView.RelayoutRequest(); - } - - /// - /// Provides the view implementation of GetHeightForWidth. - /// - /// The width to use. - /// The height based on the width. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected float GetHeightForWidthBase(float width) - { - return customView.GetHeightForWidthBase(width); - } - - /// - /// Provides the view implementation of GetWidthForHeight. - /// - /// The height to use. - /// The width based on the height. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected float GetWidthForHeightBase(float height) - { - return customView.GetWidthForHeightBase(height); - } - - /// - /// Calculates the size for a child using the base view object. - /// - /// The child view to calculate the size for. - /// The dimension to calculate the size, for example, the width or the height. - /// Return the calculated size for the given dimension. If more than one dimension is requested, just return the first one found. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected float CalculateChildSizeBase(View child, DimensionType dimension) - { - return customView.CalculateChildSizeBase(child, dimension); - } - - /// - /// Determines if this view is dependent on it's children for relayout from the base class. - /// - /// The dimension(s) to check for. - /// Return if the view is dependent on it's children. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected bool RelayoutDependentOnChildrenBase(DimensionType dimension) - { - return customView.RelayoutDependentOnChildrenBase(dimension); - } - - /// - /// Determines if this view is dependent on it's children for relayout from the base class. - /// - /// Return if the view is dependent on it's children. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected bool RelayoutDependentOnChildrenBase() - { - return customView.RelayoutDependentOnChildrenBase(); - } - - /// - /// Registers a visual by property index, linking a view to visual when required.
- /// In the case of the visual being a view or control deeming visual not required, then the visual should be an empty handle.
- /// No parenting is done during registration, this should be done by a derived class.
- ///
- /// The property index of the visual used to reference visual. - /// The visual to register. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void RegisterVisual(int index, VisualBase visual) - { - customView.RegisterVisual(index, visual); - } - - /// - /// Registers a visual by the property index, linking a view to visual when required.
- /// In the case of the visual being a view or control deeming visual not required, then the visual should be an empty handle.
- /// If enabled is false, then the visual is not set on the stage until enabled by the derived class.
- ///
- /// The property index of the visual used to reference visual. - /// The visual to register. - /// False if derived class wants to control when the visual is set on the stage. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void RegisterVisual(int index, VisualBase visual, bool enabled) - { - customView.RegisterVisual(index, visual, enabled); - } - - /// - /// Erases the entry matching the given index from the list of registered visuals. - /// - /// The property index of the visual used to reference visual. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void UnregisterVisual(int index) - { - customView.UnregisterVisual(index); - } - - /// - /// Retrieves the visual associated with the given property index.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual used to reference visual. - /// The registered visual if exists, otherwise an empty handle. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected VisualBase GetVisual(int index) - { - return customView.GetVisual(index); - } - - /// - /// Sets the given visual to be displayed or not when parent staged.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual, used to reference visual. - /// Flag set to enabled or disabled. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void EnableVisual(int index, bool enable) - { - customView.EnableVisual(index, enable); - } - - /// - /// Queries if the given visual is to be displayed when parent staged.
- /// For managing the object lifecycle, do not store the returned visual as a member which increments its reference count.
- ///
- /// The property index of the visual. - /// Whether visual is enabled or not. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected bool IsVisualEnabled(int index) - { - return customView.IsVisualEnabled(index); - } - - /// - /// Creates a transition effect on the control. - /// - /// The transition data describing the effect to create. - /// A handle to an animation defined with the given effect, or an empty handle if no properties match. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected Animation CreateTransition(TransitionData transitionData) - { - return customView.CreateTransition(transitionData); - } - - /// - /// Emits the KeyInputFocusGained signal if true, else, emits the KeyInputFocusLost signal.
- /// Should be called last by the control after it acts on the input focus change.
- ///
- /// True if gained, false if lost. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - protected void EmitFocusSignal(bool focusGained) - { - customView.EmitFocusSignal(focusGained); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/FlexContainer.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/FlexContainer.cs deleted file mode 100755 index 58d90f503..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/FlexContainer.cs +++ /dev/null @@ -1,237 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.FlexContainer; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// FlexContainer implements a subset of the flexbox spec (defined by W3C):https://www.w3.org/TR/css3-flexbox/
- /// It aims at providing a more efficient way to layout, align, and distribute space among items in the container, even when their size is unknown or dynamic.
- /// FlexContainer has the ability to alter the width and the height of its children (i.e., flex items) to fill the available space in the best possible way on different screen sizes.
- /// FlexContainer can expand items to fill available free space, or shrink them to prevent overflow.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public class FlexContainer : View - { - private Tizen.NUI.BaseComponents.FlexContainer _flexContainer; - internal Tizen.NUI.BaseComponents.FlexContainer flexContainer - { - get - { - if (null == _flexContainer) - { - _flexContainer = handleInstance as Tizen.NUI.BaseComponents.FlexContainer; - } - - return _flexContainer; - } - } - - /// - /// Constructor. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public FlexContainer() : this(new Tizen.NUI.BaseComponents.FlexContainer()) - { - } - - internal FlexContainer(Tizen.NUI.BaseComponents.FlexContainer nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContentDirectionProperty = BindableProperty.Create("ContentDirection", typeof(ContentDirectionType), typeof(FlexContainer), ContentDirectionType.Inherit, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.ContentDirection = (ContentDirectionType)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.ContentDirection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexDirectionProperty = BindableProperty.Create("FlexDirection", typeof(FlexDirectionType), typeof(FlexContainer), FlexDirectionType.Column, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.FlexDirection = (FlexDirectionType)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.FlexDirection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexWrapProperty = BindableProperty.Create("FlexWrap", typeof(WrapType), typeof(FlexContainer), WrapType.NoWrap, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.FlexWrap = (WrapType)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.FlexWrap; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty JustifyContentProperty = BindableProperty.Create("JustifyContent", typeof(Justification), typeof(FlexContainer), Justification.JustifyFlexStart, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.JustifyContent = (Justification)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.JustifyContent; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignItemsProperty = BindableProperty.Create("AlignItems", typeof(Tizen.NUI.BaseComponents.FlexContainer.Alignment), typeof(FlexContainer), Tizen.NUI.BaseComponents.FlexContainer.Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.AlignItems = (Tizen.NUI.BaseComponents.FlexContainer.Alignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.AlignItems; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignContentProperty = BindableProperty.Create("AlignContent", typeof(Tizen.NUI.BaseComponents.FlexContainer.Alignment), typeof(FlexContainer), Tizen.NUI.BaseComponents.FlexContainer.Alignment.AlignAuto, propertyChanged: (bindable, oldValue, newValue) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - flexContainer.AlignContent = (Tizen.NUI.BaseComponents.FlexContainer.Alignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var flexContainer = ((FlexContainer)bindable).flexContainer; - return flexContainer.AlignContent; - }); - - /// - /// The primary direction in which content is ordered. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public ContentDirectionType ContentDirection - { - get - { - return (ContentDirectionType)GetValue(ContentDirectionProperty); - } - set - { - SetValue(ContentDirectionProperty, value); - } - } - - /// - /// The direction of the main axis which determines the direction that flex items are laid out. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public FlexDirectionType FlexDirection - { - get - { - return (FlexDirectionType)GetValue(FlexDirectionProperty); - } - set - { - SetValue(FlexDirectionProperty, value); - } - } - - /// - /// Whether the flex items should wrap or not if there is no enough room for them on one flex line. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public WrapType FlexWrap - { - get - { - return (WrapType)GetValue(FlexWrapProperty); - } - set - { - SetValue(FlexWrapProperty, value); - } - } - - /// - /// The alignment of flex items when the items do not use all available space on the main axis. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Justification JustifyContent - { - get - { - return (Justification)GetValue(JustifyContentProperty); - } - set - { - SetValue(JustifyContentProperty, value); - } - } - - /// - /// The alignment of flex items when the items do not use all available space on the cross axis. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.BaseComponents.FlexContainer.Alignment AlignItems - { - get - { - return (Tizen.NUI.BaseComponents.FlexContainer.Alignment)GetValue(AlignItemsProperty); - } - set - { - SetValue(AlignItemsProperty, value); - } - } - - /// - /// Similar to "alignItems", but it aligns flex lines; so only works when there are multiple lines. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.BaseComponents.FlexContainer.Alignment AlignContent - { - get - { - return (Tizen.NUI.BaseComponents.FlexContainer.Alignment)GetValue(AlignContentProperty); - } - set - { - SetValue(AlignContentProperty, value); - } - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/ImageView.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/ImageView.cs deleted file mode 100755 index 30fefd381..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/ImageView.cs +++ /dev/null @@ -1,480 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.Runtime.InteropServices; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using Tizen.NUI; -using static Tizen.NUI.BaseComponents.ImageView; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// ImageView is a class for displaying an image resource.
- /// An instance of ImageView can be created using a URL or an image instance.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ImageView : View - { - private Tizen.NUI.BaseComponents.ImageView _imageView; - private Tizen.NUI.BaseComponents.ImageView imageView - { - get - { - if (_imageView == null) - { - _imageView = handleInstance as Tizen.NUI.BaseComponents.ImageView; - } - - return _imageView; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ImageView() : this(new Tizen.NUI.BaseComponents.ImageView()) - { - } - - internal ImageView(Tizen.NUI.BaseComponents.ImageView nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(Tizen.NUI.BaseComponents.ImageView.ResourceUrl), typeof(string), typeof(ImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - - string url = (string)newValue; - if (url.Contains("*Resource*")) - { - string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource; - url = url.Replace("*Resource*", resource); - } - - imageView.imageView.ResourceUrl = url; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.ResourceUrl; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ImageProperty = BindableProperty.Create("Image", typeof(PropertyMap), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - - PropertyMap map = (PropertyMap)newValue; - string url = "", alphaMaskURL = "", auxiliaryImageURL = ""; - string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource; - PropertyValue urlValue = map.Find(ImageVisualProperty.URL); - bool ret = false; - if (urlValue != null) ret = urlValue.Get(out url); - PropertyMap mmap = new PropertyMap(); - if (ret && url.Contains("*Resource*")) - { - url = url.Replace("*Resource*", resource); - mmap.Insert(ImageVisualProperty.URL, new PropertyValue(url)); - } - - ret = false; - PropertyValue alphaMaskUrlValue = map.Find(ImageVisualProperty.AlphaMaskURL); - if (alphaMaskUrlValue != null) ret = alphaMaskUrlValue.Get(out alphaMaskURL); - if (ret && alphaMaskURL.Contains("*Resource*")) - { - alphaMaskURL = alphaMaskURL.Replace("*Resource*", resource); - mmap.Insert(ImageVisualProperty.AlphaMaskURL, new PropertyValue(alphaMaskURL)); - } - - ret = false; - PropertyValue auxiliaryImageURLValue = map.Find(ImageVisualProperty.AuxiliaryImageURL); - if (auxiliaryImageURLValue != null) ret = auxiliaryImageURLValue.Get(out auxiliaryImageURL); - if (ret && auxiliaryImageURL.Contains("*Resource*")) - { - auxiliaryImageURL = auxiliaryImageURL.Replace("*Resource*", resource); - mmap.Insert(ImageVisualProperty.AuxiliaryImageURL, new PropertyValue(auxiliaryImageURL)); - } - - map.Merge(mmap); - - imageView.imageView.Image = (PropertyMap)map; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.Image; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PreMultipliedAlphaProperty = BindableProperty.Create("PreMultipliedAlpha", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.PreMultipliedAlpha = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.PreMultipliedAlpha; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PixelAreaProperty = BindableProperty.Create("PixelArea", typeof(RelativeVector4), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.PixelArea = (RelativeVector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.PixelArea; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BorderProperty = BindableProperty.Create("Border", typeof(Rectangle), typeof(ImageView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.Border = (Rectangle)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.Border; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BorderOnlyProperty = BindableProperty.Create("BorderOnly", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.BorderOnly = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.BorderOnly; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SynchronosLoadingProperty = BindableProperty.Create("SynchronosLoading", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.SynchronosLoading = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.SynchronosLoading; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OrientationCorrectionProperty = BindableProperty.Create("OrientationCorrection", typeof(bool), typeof(ImageView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var imageView = (ImageView)bindable; - imageView.imageView.OrientationCorrection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var imageView = (ImageView)bindable; - return imageView.imageView.OrientationCorrection; - }); - - /// - /// An event for ResourceReady signal which can be used to subscribe or unsubscribe the event handler.
- /// This signal is emitted after all resources required by a control are loaded and ready.
- /// Most resources are only loaded when the control is placed on the stage.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ResourceReady - { - add - { - imageView.ResourceReady += value; - } - - remove - { - imageView.ResourceReady -= value; - } - } - - /// - /// ImageView ResourceUrl, type string. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public string ResourceUrl - { - get - { - return (string)GetValue(ResourceUrlProperty); - } - set - { - SetValue(ResourceUrlProperty, value); - } - } - - /// - /// This will be deprecated, please use Image instead.
- /// ImageView ImageMap, type PropertyMap: string if it is a URL, map otherwise. - ///
- /// 6 - [Obsolete("Please do not use! This will be deprecated! Please use Image property instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ImageMap - { - get - { - return imageView.ImageMap; - } - set - { - imageView.ImageMap = value; - } - } - - /// - /// ImageView Image, type PropertyMap - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Image - { - get - { - return (PropertyMap)GetValue(ImageProperty); - } - set - { - SetValue(ImageProperty, value); - } - } - - /// - /// ImageView PreMultipliedAlpha, type Boolean.
- /// Image must be initialized.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool PreMultipliedAlpha - { - get - { - return (bool)GetValue(PreMultipliedAlphaProperty); - } - set - { - SetValue(PreMultipliedAlphaProperty, value); - } - } - - /// - /// ImageView PixelArea, type Vector4 (Animatable property).
- /// Pixel area is a relative value with the whole image area as [0.0, 0.0, 1.0, 1.0].
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public RelativeVector4 PixelArea - { - get - { - return (RelativeVector4)GetValue(PixelAreaProperty); - } - set - { - SetValue(PixelAreaProperty, value); - } - } - - /// - /// The border of the image in the order: left, right, bottom, top.
- /// If set, ImageMap will be ignored.
- /// For N-Patch images only.
- /// Optional. - ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Rectangle Border - { - get - { - return (Rectangle)GetValue(BorderProperty); - } - set - { - SetValue(BorderProperty, value); - } - } - - /// - /// Gets or sets whether to draw the borders only (if true).
- /// If not specified, the default is false.
- /// For N-Patch images only.
- /// Optional. - ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool BorderOnly - { - get - { - return (bool)GetValue(BorderOnlyProperty); - } - set - { - SetValue(BorderOnlyProperty, value); - } - } - - /// - /// Gets or sets whether to synchronos loading the resourceurl of image.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool SynchronosLoading - { - get - { - return (bool)GetValue(SynchronosLoadingProperty); - } - set - { - SetValue(SynchronosLoadingProperty, value); - } - } - - /// - /// Gets or sets whether to automatically correct the orientation of an image.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool OrientationCorrection - { - get - { - return (bool)GetValue(OrientationCorrectionProperty); - } - set - { - SetValue(OrientationCorrectionProperty, value); - } - } - - /// - /// Gets the loading state of the visual resource. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public LoadingStatusType LoadingStatus - { - get - { - return imageView.LoadingStatus; - } - } - - /// - /// Downcasts a handle to imageView handle. - /// - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - /// 6 - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " + - "Like: " + - "BaseHandle handle = new ImageView(imagePath); " + - "ImageView image = handle as ImageView")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static ImageView DownCast(BaseHandle handle) - { - Tizen.NUI.BaseComponents.ImageView result = Tizen.NUI.BaseComponents.ImageView.DownCast(handle.handleInstance) as Tizen.NUI.BaseComponents.ImageView; - return BaseHandle.GetHandle(result) as ImageView; - } - - /// - /// Sets this ImageView from the given URL.
- /// If the URL is empty, ImageView will not display anything.
- ///
- /// The URL to the image resource to display. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetImage(string url) - { - imageView.SetImage(url); - } - - /// - /// Queries if all resources required by a control are loaded and ready.
- /// Most resources are only loaded when the control is placed on the stage.
- /// True if the resources are loaded and ready, false otherwise.
- ///
- /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public new bool IsResourceReady() - { - return imageView.IsResourceReady(); - } - - /// - /// Forcefully reloads the image. All the visuals using this image will reload to the latest image. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void Reload() - { - imageView.Reload(); - } - - /// - /// Plays the animated GIF. This is also the default playback mode. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void Play() - { - imageView.Play(); - } - - /// - /// Pauses the animated GIF. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void Pause() - { - imageView.Pause(); - } - - /// - /// Stops the animated GIF. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public void Stop() - { - imageView.Stop(); - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/Scrollable.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/Scrollable.cs deleted file mode 100755 index 7c940358d..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/Scrollable.cs +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.Scrollable; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// Base class for derived Scrollables that contains actors that can be scrolled manually - /// (via touch) or automatically. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public class Scrollable : View - { - private Tizen.NUI.BaseComponents.Scrollable _scrollable; - internal Tizen.NUI.BaseComponents.Scrollable scrollable - { - get - { - if (null == _scrollable) - { - _scrollable = handleInstance as Tizen.NUI.BaseComponents.Scrollable; - } - - return _scrollable; - } - } - - /// - /// Constructor. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Scrollable() : this(new Tizen.NUI.BaseComponents.Scrollable()) - { - } - - internal Scrollable(Tizen.NUI.BaseComponents.Scrollable nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootEffectColorProperty = BindableProperty.Create("OvershootEffectColor", typeof(Vector4), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.OvershootEffectColor = (Vector4)newValue; - }, - defaultValueCreator:(bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.OvershootEffectColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootAnimationSpeedProperty = BindableProperty.Create("OvershootAnimationSpeed", typeof(float), typeof(Scrollable), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.OvershootAnimationSpeed = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.OvershootAnimationSpeed; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootEnabledProperty = BindableProperty.Create("OvershootEnabled", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.OvershootEnabled = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.OvershootEnabled; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootSizeProperty = BindableProperty.Create("OvershootSize", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.OvershootSize = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.OvershootSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollToAlphaFunctionProperty = BindableProperty.Create("ScrollToAlphaFunction", typeof(int), typeof(Scrollable), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.ScrollToAlphaFunction = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.ScrollToAlphaFunction; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollRelativePositionProperty = BindableProperty.Create("ScrollRelativePosition", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.ScrollRelativePosition = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.ScrollRelativePosition; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionMinProperty = BindableProperty.Create("ScrollPositionMin", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.ScrollPositionMin = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.ScrollPositionMin; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionMaxProperty = BindableProperty.Create("ScrollPositionMax", typeof(Vector2), typeof(Scrollable), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.ScrollPositionMax = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.ScrollPositionMax; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CanScrollVerticalProperty = BindableProperty.Create("CanScrollVertical", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.CanScrollVertical = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.CanScrollVertical; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CanScrollHorizontalProperty = BindableProperty.Create("CanScrollHorizontal", typeof(bool), typeof(Scrollable), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollable = ((Scrollable)bindable).scrollable; - scrollable.CanScrollHorizontal = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollable = ((Scrollable)bindable).scrollable; - return scrollable.CanScrollHorizontal; - }); - - /// - /// The ScrollStarted event emitted when the Scrollable has moved (whether by touch or animation). - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public event DaliEventHandler ScrollStarted - { - add - { - scrollable.ScrollStarted += value; - } - - remove - { - scrollable.ScrollStarted -= value; - } - } - - /// - /// The ScrollUpdated event emitted when the Scrollable has moved (whether by touch or animation). - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public event DaliEventHandler ScrollUpdated - { - add - { - scrollable.ScrollUpdated += value; - } - - remove - { - scrollable.ScrollUpdated -= value; - } - } - - /// - /// The ScrollCompleted event emitted when the Scrollable has completed movement - /// (whether by touch or animation). - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public event DaliEventHandler ScrollCompleted - { - add - { - scrollable.ScrollCompleted += value; - } - - remove - { - scrollable.ScrollCompleted -= value; - } - } - - /// - /// Sets and Gets the color of the overshoot effect. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 OvershootEffectColor - { - get - { - return (Vector4)GetValue(OvershootEffectColorProperty); - } - set - { - SetValue(OvershootEffectColorProperty, value); - } - } - - /// - /// Sets and Gets the speed of overshoot animation in pixels per second. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public float OvershootAnimationSpeed - { - get - { - return (float)GetValue(OvershootAnimationSpeedProperty); - } - set - { - SetValue(OvershootAnimationSpeedProperty, value); - } - } - - /// - /// Checks if scroll overshoot has been enabled or not. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool OvershootEnabled - { - get - { - return (bool)GetValue(OvershootEnabledProperty); - } - set - { - SetValue(OvershootEnabledProperty, value); - } - } - - /// - /// Gets and Sets OvershootSize property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 OvershootSize - { - get - { - return (Vector2)GetValue(OvershootSizeProperty); - } - set - { - SetValue(OvershootSizeProperty, value); - } - } - - /// - /// Gets and Sets ScrollToAlphaFunction property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public int ScrollToAlphaFunction - { - get - { - return (int)GetValue(ScrollToAlphaFunctionProperty); - } - set - { - SetValue(ScrollToAlphaFunctionProperty, value); - } - } - - /// - /// Gets and Sets ScrollRelativePosition property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollRelativePosition - { - get - { - return (Vector2)GetValue(ScrollRelativePositionProperty); - } - set - { - SetValue(ScrollRelativePositionProperty, value); - } - } - - /// - /// Gets and Sets ScrollPositionMin property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPositionMin - { - get - { - return (Vector2)GetValue(ScrollPositionMinProperty); - } - set - { - SetValue(ScrollPositionMinProperty, value); - } - } - - /// - /// Gets and Sets ScrollPositionMax property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPositionMax - { - get - { - return (Vector2)GetValue(ScrollPositionMaxProperty); - } - set - { - SetValue(ScrollPositionMaxProperty, value); - } - } - - /// - /// Gets and Sets CanScrollVertical property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool CanScrollVertical - { - get - { - return (bool)GetValue(CanScrollVerticalProperty); - } - set - { - SetValue(CanScrollVerticalProperty, value); - } - } - - /// - /// Gets and Sets CanScrollHorizontal property. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public bool CanScrollHorizontal - { - get - { - return (bool)GetValue(CanScrollHorizontalProperty); - } - set - { - SetValue(CanScrollHorizontalProperty, value); - - } - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TableView.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TableView.cs deleted file mode 100755 index f7bc9b36e..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TableView.cs +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - - /// - /// TableView is a layout container for aligning child actors in a grid like layout.
- /// TableView constraints the X and the Y position and the width and the height of the child actors.
- /// The Z position and depth are left intact so that the 3D model actors can also be laid out - /// in a grid without loosing their depth scaling.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class TableView : View - { - private Tizen.NUI.BaseComponents.TableView _tableView; - internal Tizen.NUI.BaseComponents.TableView tableView - { - get - { - if (null == _tableView) - { - _tableView = handleInstance as Tizen.NUI.BaseComponents.TableView; - } - - return _tableView; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TableView() : this(new Tizen.NUI.BaseComponents.TableView()) - { - } - - internal TableView(Tizen.NUI.BaseComponents.TableView nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty RowsProperty = BindableProperty.Create("Rows", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var tableView = ((TableView)bindable).tableView; - tableView.Rows = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var tableView = ((TableView)bindable).tableView; - return tableView.Rows; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ColumnsProperty = BindableProperty.Create("Columns", typeof(int), typeof(TableView), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var tableView = ((TableView)bindable).tableView; - tableView.Columns = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var tableView = ((TableView)bindable).tableView; - return tableView.Columns; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellPaddingProperty = BindableProperty.Create("CellPadding", typeof(Vector2), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var tableView = ((TableView)bindable).tableView; - tableView.CellPadding = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var tableView = ((TableView)bindable).tableView; - return tableView.CellPadding; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutRowsProperty = BindableProperty.Create("LayoutRows", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var tableView = ((TableView)bindable).tableView; - tableView.LayoutRows = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var tableView = ((TableView)bindable).tableView; - return tableView.LayoutRows; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutColumnsProperty = BindableProperty.Create("LayoutColumns", typeof(PropertyMap), typeof(TableView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var tableView = ((TableView)bindable).tableView; - tableView.LayoutColumns = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var tableView = ((TableView)bindable).tableView; - return tableView.LayoutColumns; - }); - - /// - /// Adds a child to the table.
- /// If the row or column index is outside the table, the table gets resized bigger.
- ///
- /// The child to add. - /// The position for the child. - /// True if the addition succeeded, and false if the cell is already occupied. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool AddChild(View child, Tizen.NUI.BaseComponents.TableView.CellPosition position) - { - return tableView.AddChild(child.view, position); - } - - /// - /// Returns a child from the given layout position. - /// - /// The position in the table. - /// Child that was in the cell or an uninitialized handle. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetChildAt(Tizen.NUI.BaseComponents.TableView.CellPosition position) - { - return BaseHandle.GetHandle(tableView.GetChildAt(position)) as View; - } - - /// - /// Removes a child from the given layout position. - /// - /// The position for the child to remove. - /// Child that was removed or an uninitialized handle. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View RemoveChildAt(Tizen.NUI.BaseComponents.TableView.CellPosition position) - { - return BaseHandle.GetHandle(tableView.RemoveChildAt(position)) as View; - } - - /// - /// Finds the child's layout position. - /// - /// The child to search for. - /// The position for the child. - /// True if the child was included in this TableView. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool FindChildPosition(View child, Tizen.NUI.BaseComponents.TableView.CellPosition position) - { - return tableView.FindChildPosition(child.view, position); - } - - /// - /// Inserts a new row to the given index. - /// - /// The rowIndex of the new row. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void InsertRow(uint rowIndex) - { - tableView.InsertRow(rowIndex); - } - - /// - /// Deletes a row from the given index.
- /// Removed elements are deleted.
- ///
- /// The rowIndex of the row to delete. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void DeleteRow(uint rowIndex) - { - tableView.DeleteRow(rowIndex); - } - - /// - /// Inserts a new column to the given index. - /// - /// The columnIndex of the new column. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void InsertColumn(uint columnIndex) - { - tableView.InsertColumn(columnIndex); - } - - /// - /// Deletes a column from the given index.
- /// Removed elements are deleted.
- ///
- /// The columnIndex of the column to delete. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void DeleteColumn(uint columnIndex) - { - tableView.DeleteColumn(columnIndex); - } - - /// - /// Resizes the TableView. - /// - /// The rows for the table. - /// The columns for the table. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Resize(uint rows, uint columns) - { - tableView.Resize(rows, columns); - } - - /// - /// Sets the horizontal and the vertical padding between cells. - /// - /// Width and height. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetCellPadding(Size2D padding) - { - tableView.SetCellPadding(padding); - } - - /// - /// Gets the current padding as width and height. - /// - /// The current padding as width and height. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetCellPadding() - { - return tableView.GetCellPadding(); - } - - /// - /// Specifies this row as fitting its height to its children. - /// - /// The row to set. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFitHeight(uint rowIndex) - { - tableView.SetFitHeight(rowIndex); - } - - /// - /// Checks if the row is a fit row. - /// - /// The row to check. - /// True if the row is fit. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsFitHeight(uint rowIndex) - { - return tableView.IsFitHeight(rowIndex); - } - - /// - /// Specifies this column as fitting its width to its children. - /// - /// The column to set. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFitWidth(uint columnIndex) - { - tableView.SetFitWidth(columnIndex); - } - - /// - /// Checks if the column is a fit column. - /// - /// The column to check. - /// True if the column is fit. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsFitWidth(uint columnIndex) - { - return tableView.IsFitWidth(columnIndex); - } - - /// - /// Sets a row to have a fixed height.
- /// Setting a fixed height of 0 has no effect.
- ///
- /// The rowIndex for row with a fixed height. - /// The height in world coordinate units. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFixedHeight(uint rowIndex, float height) - { - tableView.SetFixedHeight(rowIndex, height); - } - - /// - /// Gets a row's fixed height. - /// - /// The row index with a fixed height. - /// height The height in world coordinate units. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFixedHeight(uint rowIndex) - { - return tableView.GetFixedHeight(rowIndex); - } - - /// - /// Sets a row to have a relative height. Relative height means percentage of - /// the remainder of the table height after subtracting padding and fixed height rows.
- /// Setting a relative height of 0 has no effect.
- ///
- /// The rowIndex for row with a relative height. - /// The height percentage between 0.0f and 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetRelativeHeight(uint rowIndex, float heightPercentage) - { - tableView.SetRelativeHeight(rowIndex, heightPercentage); - } - - /// - /// Gets a row's relative height. - /// - /// The row index with a relative height. - /// Height in percentage units, between 0.0f and 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetRelativeHeight(uint rowIndex) - { - return tableView.GetRelativeHeight(rowIndex); - } - - /// - /// Sets a column to have a fixed width.
- /// Setting a fixed width of 0 has no effect.
- ///
- /// The columnIndex for column with a fixed width. - /// The width in world coordinate units. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFixedWidth(uint columnIndex, float width) - { - tableView.SetFixedWidth(columnIndex, width); - } - - /// - /// Gets a column's fixed width. - /// - /// The column index with a fixed width. - /// Width in world coordinate units. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFixedWidth(uint columnIndex) - { - return tableView.GetFixedWidth(columnIndex); - } - - /// - /// Sets a column to have a relative width. Relative width means percentage of - /// the remainder of the table width after subtracting padding and fixed width columns.
- /// Setting a relative width of 0 has no effect.
- ///
- /// The columnIndex for column with a fixed width. - /// The widthPercentage between 0.0f and 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetRelativeWidth(uint columnIndex, float widthPercentage) - { - tableView.SetRelativeWidth(columnIndex, widthPercentage); - } - - /// - /// Gets a column's relative width. - /// - /// The column index with a relative width. - /// Width in percentage units, between 0.0f and 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetRelativeWidth(uint columnIndex) - { - return tableView.GetRelativeWidth(columnIndex); - } - - /// - /// Sets the alignment on a cell.
- /// Cells without calling this function have the default values of left and top respectively.
- ///
- /// The cell to set alignment on. - /// The horizontal alignment. - /// The vertical alignment. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetCellAlignment(Tizen.NUI.BaseComponents.TableView.CellPosition position, HorizontalAlignmentType horizontal, VerticalAlignmentType vertical) - { - tableView.SetCellAlignment(position, horizontal, vertical); - } - - /// - /// The amount of rows in the table. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int Rows - { - get - { - return (int)GetValue(RowsProperty); - } - set - { - SetValue(RowsProperty, value); - } - } - /// - /// The amount of columns in the table. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int Columns - { - get - { - return (int)GetValue(ColumnsProperty); - } - set - { - SetValue(ColumnsProperty, value); - } - } - /// - /// Padding between cells. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 CellPadding - { - get - { - return (Vector2)GetValue(CellPaddingProperty); - } - set - { - SetValue(CellPaddingProperty, value); - } - } - - /// - /// The number of layout rows. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap LayoutRows - { - get - { - return (PropertyMap)GetValue(LayoutRowsProperty); - } - set - { - SetValue(LayoutRowsProperty, value); - } - } - - /// - /// The number of layout columns. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap LayoutColumns - { - get - { - return (PropertyMap)GetValue(LayoutColumnsProperty); - } - set - { - SetValue(LayoutColumnsProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextEditor.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextEditor.cs deleted file mode 100755 index f0fba07ca..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextEditor.cs +++ /dev/null @@ -1,1759 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - */ - -extern alias TizenSystemSettings; -using TizenSystemSettings.Tizen.System; - -using System; -using System.Runtime.InteropServices; -using System.Globalization; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.TextEditor; -using Tizen.NUI; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// A control which provides a multi-line editable text editor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class TextEditor : View - { - private Tizen.NUI.BaseComponents.TextEditor _textEditor; - internal Tizen.NUI.BaseComponents.TextEditor textEditor - { - get - { - if (null == _textEditor) - { - _textEditor = handleInstance as Tizen.NUI.BaseComponents.TextEditor; - } - - return _textEditor; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TextEditor() : this(new Tizen.NUI.BaseComponents.TextEditor()) - { - } - - internal TextEditor(Tizen.NUI.BaseComponents.TextEditor nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Text = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Text; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.TextColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.TextColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.FontFamily = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.FontFamily; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.FontStyle = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.FontStyle; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.PointSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.PointSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextEditor), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.HorizontalAlignment = (HorizontalAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.HorizontalAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.ScrollThreshold = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.ScrollThreshold; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.ScrollSpeed = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.ScrollSpeed; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create(nameof(PrimaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.PrimaryCursorColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.PrimaryCursorColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(SecondaryCursorColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SecondaryCursorColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SecondaryCursorColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(EnableCursorBlink), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.EnableCursorBlink = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.EnableCursorBlink; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(CursorBlinkInterval), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.CursorBlinkInterval = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.CursorBlinkInterval; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(CursorBlinkDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.CursorBlinkDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.CursorBlinkDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(CursorWidth), typeof(int), typeof(TextEditor), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.CursorWidth = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.CursorWidth; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.GrabHandleImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.GrabHandleImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.GrabHandlePressedImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.GrabHandlePressedImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandleImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandleImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandleImageRight = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandleImageRight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandlePressedImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandlePressedImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create(nameof(SelectionHandlePressedImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandlePressedImageRight = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandlePressedImageRight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageLeft), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandleMarkerImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandleMarkerImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create(nameof(SelectionHandleMarkerImageRight), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHandleMarkerImageRight = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHandleMarkerImageRight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(SelectionHighlightColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SelectionHighlightColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SelectionHighlightColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(DecorationBoundingBox), typeof(Rectangle), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.DecorationBoundingBox = (Rectangle)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.DecorationBoundingBox; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.EnableMarkup = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.EnableMarkup; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(InputColor), typeof(Vector4), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(InputFontFamily), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputFontFamily = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputFontFamily; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create(nameof(InputFontStyle), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputFontStyle = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputFontStyle; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(InputPointSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputPointSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputPointSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create(nameof(LineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.LineSpacing = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.LineSpacing; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputLineSpacingProperty = BindableProperty.Create(nameof(InputLineSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputLineSpacing = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputLineSpacing; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnderlineProperty = BindableProperty.Create(nameof(Underline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Underline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Underline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create(nameof(InputUnderline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputUnderline = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputUnderline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShadowProperty = BindableProperty.Create(nameof(Shadow), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Shadow = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Shadow; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputShadowProperty = BindableProperty.Create(nameof(InputShadow), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputShadow = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputShadow; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(Emboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Emboss = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Emboss; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create(nameof(InputEmboss), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputEmboss = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputEmboss; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OutlineProperty = BindableProperty.Create(nameof(Outline), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Outline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Outline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create(nameof(InputOutline), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.InputOutline = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.InputOutline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SmoothScrollProperty = BindableProperty.Create(nameof(SmoothScroll), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SmoothScroll = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SmoothScroll; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SmoothScrollDurationProperty = BindableProperty.Create(nameof(SmoothScrollDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.SmoothScrollDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.SmoothScrollDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableScrollBarProperty = BindableProperty.Create(nameof(EnableScrollBar), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.EnableScrollBar = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.EnableScrollBar; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollBarShowDurationProperty = BindableProperty.Create(nameof(ScrollBarShowDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.ScrollBarShowDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.ScrollBarShowDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollBarFadeDurationProperty = BindableProperty.Create(nameof(ScrollBarFadeDuration), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.ScrollBarFadeDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.ScrollBarFadeDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(PixelSize), typeof(float), typeof(TextEditor), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.PixelSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.PixelSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create(nameof(PlaceholderText), typeof(string), typeof(TextEditor), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.PlaceholderText = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.PlaceholderText; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create(nameof(PlaceholderTextColor), typeof(Color), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.PlaceholderTextColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.PlaceholderTextColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(EnableSelection), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.EnableSelection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.EnableSelection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create(nameof(Placeholder), typeof(PropertyMap), typeof(TextEditor), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.Placeholder = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.Placeholder; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LineWrapModeProperty = BindableProperty.Create(nameof(LineWrapMode), typeof(LineWrapMode), typeof(TextEditor), LineWrapMode.Word, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.LineWrapMode = (LineWrapMode)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.LineWrapMode; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create(nameof(TextEditor.EnableShiftSelection), typeof(bool), typeof(TextEditor), true, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.EnableShiftSelection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.EnableShiftSelection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(TextEditor.MatchSystemLanguageDirection), typeof(bool), typeof(TextEditor), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textEditor = ((TextEditor)bindable).textEditor; - textEditor.MatchSystemLanguageDirection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textEditor = ((TextEditor)bindable).textEditor; - return textEditor.MatchSystemLanguageDirection; - }); - - /// - /// An event for the TextChanged signal which can be used to subscribe or unsubscribe the event handler - /// provided by the user. The TextChanged signal is emitted when the text changes.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler TextChanged - { - add - { - textEditor.TextChanged += value; - } - remove - { - textEditor.TextChanged -= value; - } - } - - /// - /// Event for the ScrollStateChanged signal which can be used to subscribe or unsubscribe the event handler - /// provided by the user. The ScrollStateChanged signal is emitted when the scroll state changes.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ScrollStateChanged - { - add - { - textEditor.ScrollStateChanged += value; - } - remove - { - textEditor.ScrollStateChanged -= value; - } - } - - /// - /// Get the InputMethodContext instance. - /// - /// The InputMethodContext instance. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public InputMethodContext GetInputMethodContext() - { - return textEditor.GetInputMethodContext(); - } - - /// - /// The TranslatableText property.
- /// The text can set the SID value.
- ///
- /// - /// ResourceManager about multilingual is null. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TranslatableText - { - get - { - return textEditor.TranslatableText; - } - set - { - textEditor.TranslatableText = value; - } - } - - /// - /// The TranslatablePlaceholderText property.
- /// The text can set the SID value.
- ///
- /// - /// ResourceManager about multilingual is null. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TranslatablePlaceholderText - { - get - { - return textEditor.TranslatablePlaceholderText; - } - set - { - textEditor.TranslatablePlaceholderText = value; - } - } - - /// - /// The Text property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Text - { - get - { - return (string)GetValue(TextProperty); - } - set - { - SetValue(TextProperty, value); - } - } - - /// - /// The TextColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 TextColor - { - get - { - return (Vector4)GetValue(TextColorProperty); - } - set - { - SetValue(TextColorProperty, value); - } - } - - /// - /// The FontFamily property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string FontFamily - { - get - { - return (string)GetValue(FontFamilyProperty); - } - set - { - SetValue(FontFamilyProperty, value); - } - } - - /// - /// The FontStyle property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap FontStyle - { - get - { - return (PropertyMap)GetValue(FontStyleProperty); - } - set - { - SetValue(FontStyleProperty, value); - } - } - - /// - /// The PointSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PointSize - { - get - { - return (float)GetValue(PointSizeProperty); - } - set - { - SetValue(PointSizeProperty, value); - } - } - - /// - /// The HorizontalAlignment property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public HorizontalAlignment HorizontalAlignment - { - get - { - return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty); - } - set - { - SetValue(HorizontalAlignmentProperty, value); - } - } - - /// - /// The ScrollThreshold property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollThreshold - { - get - { - return (float)GetValue(ScrollThresholdProperty); - } - set - { - SetValue(ScrollThresholdProperty, value); - } - } - - /// - /// The ScrollSpeed property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollSpeed - { - get - { - return (float)GetValue(ScrollSpeedProperty); - } - set - { - SetValue(ScrollSpeedProperty, value); - } - } - - /// - /// The PrimaryCursorColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 PrimaryCursorColor - { - get - { - return (Vector4)GetValue(PrimaryCursorColorProperty); - } - set - { - SetValue(PrimaryCursorColorProperty, value); - } - } - - /// - /// The SecondaryCursorColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 SecondaryCursorColor - { - get - { - return (Vector4)GetValue(SecondaryCursorColorProperty); - } - set - { - SetValue(SecondaryCursorColorProperty, value); - } - } - - /// - /// The EnableCursorBlink property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableCursorBlink - { - get - { - return (bool)GetValue(EnableCursorBlinkProperty); - } - set - { - SetValue(EnableCursorBlinkProperty, value); - } - } - - /// - /// The CursorBlinkInterval property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float CursorBlinkInterval - { - get - { - return (float)GetValue(CursorBlinkIntervalProperty); - } - set - { - SetValue(CursorBlinkIntervalProperty, value); - } - } - - /// - /// The CursorBlinkDuration property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float CursorBlinkDuration - { - get - { - return (float)GetValue(CursorBlinkDurationProperty); - } - set - { - SetValue(CursorBlinkDurationProperty, value); - } - } - - /// - /// The CursorWidth property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int CursorWidth - { - get - { - return (int)GetValue(CursorWidthProperty); - } - set - { - SetValue(CursorWidthProperty, value); - } - } - - /// - /// The GrabHandleImage property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GrabHandleImage - { - get - { - return (string)GetValue(GrabHandleImageProperty); - } - set - { - SetValue(GrabHandleImageProperty, value); - } - } - - /// - /// The GrabHandlePressedImage property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GrabHandlePressedImage - { - get - { - return (string)GetValue(GrabHandlePressedImageProperty); - } - set - { - SetValue(GrabHandlePressedImageProperty, value); - } - } - - /// - /// The SelectionHandleImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandleImageLeftProperty); - } - set - { - SetValue(SelectionHandleImageLeftProperty, value); - } - } - - /// - /// The SelectionHandleImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandleImageRightProperty); - } - set - { - SetValue(SelectionHandleImageRightProperty, value); - } - } - - /// - /// The SelectionHandlePressedImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandlePressedImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty); - } - set - { - SetValue(SelectionHandlePressedImageLeftProperty, value); - } - } - - /// - /// The SelectionHandlePressedImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandlePressedImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty); - } - set - { - SetValue(SelectionHandlePressedImageRightProperty, value); - } - } - - /// - /// The SelectionHandleMarkerImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleMarkerImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty); - } - set - { - SetValue(SelectionHandleMarkerImageLeftProperty, value); - } - } - - /// - /// The SelectionHandleMarkerImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleMarkerImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty); - } - set - { - SetValue(SelectionHandleMarkerImageRightProperty, value); - } - } - - /// - /// The SelectionHighlightColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 SelectionHighlightColor - { - get - { - return (Vector4)GetValue(SelectionHighlightColorProperty); - } - set - { - SetValue(SelectionHighlightColorProperty, value); - } - } - - /// - /// The DecorationBoundingBox property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rectangle DecorationBoundingBox - { - get - { - return (Rectangle)GetValue(DecorationBoundingBoxProperty); - } - set - { - SetValue(DecorationBoundingBoxProperty, value); - } - } - - /// - /// The EnableMarkup property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableMarkup - { - get - { - return (bool)GetValue(EnableMarkupProperty); - } - set - { - SetValue(EnableMarkupProperty, value); - } - } - - /// - /// The InputColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 InputColor - { - get - { - return (Vector4)GetValue(InputColorProperty); - } - set - { - SetValue(InputColorProperty, value); - } - } - - /// - /// The InputFontFamily property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputFontFamily - { - get - { - return (string)GetValue(InputFontFamilyProperty); - } - set - { - SetValue(InputFontFamilyProperty, value); - } - } - - /// - /// The InputFontStyle property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap InputFontStyle - { - get - { - return (PropertyMap)GetValue(InputFontStyleProperty); - } - set - { - SetValue(InputFontStyleProperty, value); - } - } - - /// - /// The InputPointSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float InputPointSize - { - get - { - return (float)GetValue(InputPointSizeProperty); - } - set - { - SetValue(InputPointSizeProperty, value); - } - } - - /// - /// The LineSpacing property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float LineSpacing - { - get - { - return (float)GetValue(LineSpacingProperty); - } - set - { - SetValue(LineSpacingProperty, value); - } - } - - /// - /// The InputLineSpacing property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float InputLineSpacing - { - get - { - return (float)GetValue(InputLineSpacingProperty); - } - set - { - SetValue(InputLineSpacingProperty, value); - } - } - - /// - /// The Underline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Underline - { - get - { - return (PropertyMap)GetValue(UnderlineProperty); - } - set - { - SetValue(UnderlineProperty, value); - } - } - - /// - /// The InputUnderline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputUnderline - { - get - { - return (string)GetValue(InputUnderlineProperty); - } - set - { - SetValue(InputUnderlineProperty, value); - } - } - - /// - /// The Shadow property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Shadow - { - get - { - return (PropertyMap)GetValue(ShadowProperty); - } - set - { - SetValue(ShadowProperty, value); - } - } - - /// - /// The InputShadow property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputShadow - { - get - { - return (string)GetValue(InputShadowProperty); - } - set - { - SetValue(InputShadowProperty, value); - } - } - - /// - /// The Emboss property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Emboss - { - get - { - return (string)GetValue(EmbossProperty); - } - set - { - SetValue(EmbossProperty, value); - } - } - - /// - /// The InputEmboss property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputEmboss - { - get - { - return (string)GetValue(InputEmbossProperty); - } - set - { - SetValue(InputEmbossProperty, value); - } - } - - /// - /// The Outline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Outline - { - get - { - return (PropertyMap)GetValue(OutlineProperty); - } - set - { - SetValue(OutlineProperty, value); - } - } - - /// - /// The InputOutline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputOutline - { - get - { - return (string)GetValue(InputOutlineProperty); - } - set - { - SetValue(InputOutlineProperty, value); - } - } - - /// - /// The SmoothScroll property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool SmoothScroll - { - get - { - return (bool)GetValue(SmoothScrollProperty); - } - set - { - SetValue(SmoothScrollProperty, value); - } - } - - /// - /// The SmoothScrollDuration property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float SmoothScrollDuration - { - get - { - return (float)GetValue(SmoothScrollDurationProperty); - } - set - { - SetValue(SmoothScrollDurationProperty, value); - } - } - - /// - /// The EnableScrollBar property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableScrollBar - { - get - { - return (bool)GetValue(EnableScrollBarProperty); - } - set - { - SetValue(EnableScrollBarProperty, value); - } - } - - /// - /// The ScrollBarShowDuration property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollBarShowDuration - { - get - { - return (float)GetValue(ScrollBarShowDurationProperty); - } - set - { - SetValue(ScrollBarShowDurationProperty, value); - } - } - - /// - /// The ScrollBarFadeDuration property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollBarFadeDuration - { - get - { - return (float)GetValue(ScrollBarFadeDurationProperty); - } - set - { - SetValue(ScrollBarFadeDurationProperty, value); - } - } - - /// - /// The PixelSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PixelSize - { - get - { - return (float)GetValue(PixelSizeProperty); - } - set - { - SetValue(PixelSizeProperty, value); - } - } - - /// - /// The line count of the text. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LineCount - { - get - { - return textEditor.LineCount; - } - } - - /// - /// The text to display when the TextEditor is empty and inactive. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string PlaceholderText - { - get - { - return (string)GetValue(PlaceholderTextProperty); - } - set - { - SetValue(PlaceholderTextProperty, value); - } - } - - /// - /// The Placeholder text color. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color PlaceholderTextColor - { - get - { - return (Color)GetValue(PlaceholderTextColorProperty); - } - set - { - SetValue(PlaceholderTextColorProperty, value); - } - } - - /// - /// The EnableSelection property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableSelection - { - get - { - return (bool)GetValue(EnableSelectionProperty); - } - set - { - SetValue(EnableSelectionProperty, value); - } - } - - /// - /// The Placeholder property. - /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size. - /// - /// - /// The following example demonstrates how to set the placeholder property. - /// - /// PropertyMap propertyMap = new PropertyMap(); - /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text")); - /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused")); - /// propertyMap.Add("color", new PropertyValue(Color.Red)); - /// propertyMap.Add("fontFamily", new PropertyValue("Arial")); - /// propertyMap.Add("pointSize", new PropertyValue(12.0f)); - /// - /// PropertyMap fontStyleMap = new PropertyMap(); - /// fontStyleMap.Add("weight", new PropertyValue("bold")); - /// fontStyleMap.Add("width", new PropertyValue("condensed")); - /// fontStyleMap.Add("slant", new PropertyValue("italic")); - /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap)); - /// - /// TextEditor editor = new TextEditor(); - /// editor.Placeholder = propertyMap; - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Placeholder - { - get - { - return (PropertyMap)GetValue(PlaceholderProperty); - } - set - { - SetValue(PlaceholderProperty, value); - } - } - - /// - /// The LineWrapMode property.
- /// The line wrap mode when the text lines over the layout width.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public LineWrapMode LineWrapMode - { - get - { - return (LineWrapMode)GetValue(LineWrapModeProperty); - } - set - { - SetValue(LineWrapModeProperty, value); - } - } - - /// - /// Enables Text selection using Shift key. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableShiftSelection - { - get - { - return (bool)GetValue(EnableShiftSelectionProperty); - } - set - { - SetValue(EnableShiftSelectionProperty, value); - } - } - - /// - /// The text alignment to match the direction of the system language. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MatchSystemLanguageDirection - { - get - { - return (bool)GetValue(MatchSystemLanguageDirectionProperty); - } - set - { - SetValue(MatchSystemLanguageDirectionProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextField.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextField.cs deleted file mode 100755 index 7b026054b..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextField.cs +++ /dev/null @@ -1,1712 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - */ -extern alias TizenSystemSettings; -using TizenSystemSettings.Tizen.System; - -using System; -using System.Runtime.InteropServices; -using System.Globalization; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.TextField; -using Tizen.NUI; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// A control which provides a single line editable text field. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class TextField : View - { - private Tizen.NUI.BaseComponents.TextField _textField; - internal Tizen.NUI.BaseComponents.TextField textField - { - get - { - if (null == _textField) - { - _textField = handleInstance as Tizen.NUI.BaseComponents.TextField; - } - - return _textField; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TextField() : this(new Tizen.NUI.BaseComponents.TextField()) - { - } - - internal TextField(Tizen.NUI.BaseComponents.TextField nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Text = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Text; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create(nameof(PlaceholderText), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PlaceholderText = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PlaceholderText; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderTextFocusedProperty = BindableProperty.Create(nameof(PlaceholderTextFocused), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PlaceholderTextFocused = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PlaceholderTextFocused; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.FontFamily = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.FontFamily; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.FontStyle = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.FontStyle; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PointSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PointSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create(nameof(MaxLength), typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.MaxLength = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.MaxLength; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ExceedPolicyProperty = BindableProperty.Create(nameof(ExceedPolicy), typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.ExceedPolicy = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.ExceedPolicy; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextField), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.HorizontalAlignment = (HorizontalAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.HorizontalAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create(nameof(TextField.VerticalAlignment), typeof(VerticalAlignment), typeof(TextField), VerticalAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.VerticalAlignment = (VerticalAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.VerticalAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextField.TextColor), typeof(Color), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.TextColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.TextColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create(nameof(TextField.PlaceholderTextColor), typeof(Vector4), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PlaceholderTextColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PlaceholderTextColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create("PrimaryCursorColor", typeof(Vector4), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PrimaryCursorColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PrimaryCursorColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(TextField.SecondaryCursorColor), typeof(Vector4), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SecondaryCursorColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SecondaryCursorColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(TextField.EnableCursorBlink), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.EnableCursorBlink = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.EnableCursorBlink; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(TextField.CursorBlinkInterval), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.CursorBlinkInterval = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.CursorBlinkInterval; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(TextField.CursorBlinkDuration), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.CursorBlinkDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.CursorBlinkDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(TextField.CursorWidth), typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.CursorWidth = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.CursorWidth; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(TextField.GrabHandleImage), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.GrabHandleImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.GrabHandleImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(TextField.GrabHandlePressedImage), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.GrabHandlePressedImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.GrabHandlePressedImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(TextField.ScrollThreshold), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.ScrollThreshold = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.ScrollThreshold; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(TextField.ScrollSpeed), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.ScrollSpeed = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.ScrollSpeed; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(TextField.SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandleImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandleImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(TextField.SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandleImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandleImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create(nameof(TextField.SelectionHandlePressedImageLeft), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandlePressedImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandlePressedImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create(nameof(TextField.SelectionHandlePressedImageRight), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandlePressedImageRight = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandlePressedImageRight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create(nameof(TextField.SelectionHandleMarkerImageLeft), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandleMarkerImageLeft = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandleMarkerImageLeft; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create(nameof(TextField.SelectionHandleMarkerImageRight), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHandleMarkerImageRight = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHandleMarkerImageRight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(TextField.SelectionHighlightColor), typeof(Vector4), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.SelectionHighlightColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.SelectionHighlightColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(TextField.DecorationBoundingBox), typeof(Rectangle), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.DecorationBoundingBox = (Rectangle)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.DecorationBoundingBox; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create(nameof(TextField.InputMethodSettings), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputMethodSettings = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputMethodSettings; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(TextField.InputColor), typeof(Vector4), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(TextField.EnableMarkup), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.EnableMarkup = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.EnableMarkup; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(TextField.InputFontFamily), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputFontFamily = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputFontFamily; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create(nameof(TextField.InputFontStyle), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputFontStyle = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputFontStyle; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(TextField.InputPointSize), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputPointSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputPointSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnderlineProperty = BindableProperty.Create(nameof(TextField.Underline), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Underline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Underline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create(nameof(TextField.InputUnderline), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputUnderline = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputUnderline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShadowProperty = BindableProperty.Create(nameof(TextField.Shadow), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Shadow = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Shadow; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputShadowProperty = BindableProperty.Create(nameof(TextField.InputShadow), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputShadow = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputShadow; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(TextField.Emboss), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Emboss = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Emboss; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create(nameof(TextField.InputEmboss), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputEmboss = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputEmboss; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OutlineProperty = BindableProperty.Create(nameof(TextField.Outline), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Outline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Outline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create(nameof(TextField.InputOutline), typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.InputOutline = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.InputOutline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HiddenInputSettingsProperty = BindableProperty.Create(nameof(TextField.HiddenInputSettings), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.HiddenInputSettings = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.HiddenInputSettings; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(TextField.PixelSize), typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.PixelSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.PixelSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(TextField.EnableSelection), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.EnableSelection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.EnableSelection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create(nameof(TextField.Placeholder), typeof(PropertyMap), typeof(TextField), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Placeholder = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Placeholder; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EllipsisProperty = BindableProperty.Create(nameof(TextField.Ellipsis), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.Ellipsis = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.Ellipsis; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create(nameof(TextField.EnableShiftSelection), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.EnableShiftSelection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.EnableShiftSelection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(TextField.MatchSystemLanguageDirection), typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textField = ((TextField)bindable).textField; - textField.MatchSystemLanguageDirection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textField = ((TextField)bindable).textField; - return textField.MatchSystemLanguageDirection; - }); - - /// - /// The TextChanged event. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler TextChanged - { - add - { - textField.TextChanged += value; - } - remove - { - textField.TextChanged -= value; - } - } - - /// - /// The MaxLengthReached event. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler MaxLengthReached - { - add - { - textField.MaxLengthReached += value; - } - remove - { - textField.MaxLengthReached -= value; - } - } - - /// - /// Get the InputMethodContext instance. - /// - /// The InputMethodContext instance. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public InputMethodContext GetInputMethodContext() - { - return textField.GetInputMethodContext(); - } - - /// - /// The TranslatableText property.
- /// The text can set the SID value.
- ///
- /// - /// ResourceManager about multilingual is null. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TranslatableText - { - get - { - return textField.TranslatableText; - } - set - { - textField.TranslatableText = value; - } - } - /// - /// The TranslatablePlaceholderText property.
- /// The text can set the SID value.
- ///
- /// - /// ResourceManager about multilingual is null. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TranslatablePlaceholderText - { - get - { - return textField.TranslatablePlaceholderText; - } - set - { - textField.TranslatablePlaceholderText = value; - } - } - - /// - /// The Text property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Text - { - get - { - return (string)GetValue(TextProperty); - } - set - { - SetValue(TextProperty, value); - } - } - - /// - /// The PlaceholderText property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string PlaceholderText - { - get - { - return (string)GetValue(PlaceholderTextProperty); - } - set - { - SetValue(PlaceholderTextProperty, value); - } - } - - /// - /// The PlaceholderTextFocused property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string PlaceholderTextFocused - { - get - { - return (string)GetValue(PlaceholderTextFocusedProperty); - } - set - { - SetValue(PlaceholderTextFocusedProperty, value); - } - } - - /// - /// The FontFamily property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string FontFamily - { - get - { - return (string)GetValue(FontFamilyProperty); - } - set - { - SetValue(FontFamilyProperty, value); - } - } - - /// - /// The FontStyle property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap FontStyle - { - get - { - return (PropertyMap)GetValue(FontStyleProperty); - } - set - { - SetValue(FontStyleProperty, value); - } - } - - /// - /// The PointSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PointSize - { - get - { - return (float)GetValue(PointSizeProperty); - } - set - { - SetValue(PointSizeProperty, value); - } - } - - /// - /// The MaxLength property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int MaxLength - { - get - { - return (int)GetValue(MaxLengthProperty); - } - set - { - SetValue(MaxLengthProperty, value); - } - } - - /// - /// The ExceedPolicy property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int ExceedPolicy - { - get - { - return (int)GetValue(ExceedPolicyProperty); - } - set - { - SetValue(ExceedPolicyProperty, value); - } - } - - /// - /// The HorizontalAlignment property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public HorizontalAlignment HorizontalAlignment - { - get - { - return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty); - } - set - { - SetValue(HorizontalAlignmentProperty, value); - } - } - - /// - /// The VerticalAlignment property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public VerticalAlignment VerticalAlignment - { - get - { - return (VerticalAlignment)GetValue(VerticalAlignmentProperty); - } - set - { - SetValue(VerticalAlignmentProperty, value); - } - } - - /// - /// The TextColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color TextColor - { - get - { - return (Color)GetValue(TextColorProperty); - } - set - { - SetValue(TextColorProperty, value); - } - } - - /// - /// The PlaceholderTextColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 PlaceholderTextColor - { - get - { - return (Vector4)GetValue(PlaceholderTextColorProperty); - } - set - { - SetValue(PlaceholderTextColorProperty, value); - } - } - - /// - /// The PrimaryCursorColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 PrimaryCursorColor - { - get - { - return (Vector4)GetValue(PrimaryCursorColorProperty); - } - set - { - SetValue(PrimaryCursorColorProperty, value); - } - } - - /// - /// The SecondaryCursorColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 SecondaryCursorColor - { - get - { - return (Vector4)GetValue(SecondaryCursorColorProperty); - } - set - { - SetValue(SecondaryCursorColorProperty, value); - } - } - - /// - /// The EnableCursorBlink property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableCursorBlink - { - get - { - return (bool)GetValue(EnableCursorBlinkProperty); - } - set - { - SetValue(EnableCursorBlinkProperty, value); - } - } - - /// - /// The CursorBlinkInterval property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float CursorBlinkInterval - { - get - { - return (float)GetValue(CursorBlinkIntervalProperty); - } - set - { - SetValue(CursorBlinkIntervalProperty, value); - } - } - - /// - /// The CursorBlinkDuration property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float CursorBlinkDuration - { - get - { - return (float)GetValue(CursorBlinkDurationProperty); - } - set - { - SetValue(CursorBlinkDurationProperty, value); - } - } - - /// - /// The CursorWidth property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int CursorWidth - { - get - { - return (int)GetValue(CursorWidthProperty); - } - set - { - SetValue(CursorWidthProperty, value); - } - } - - /// - /// The GrabHandleImage property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GrabHandleImage - { - get - { - return (string)GetValue(GrabHandleImageProperty); - } - set - { - SetValue(GrabHandleImageProperty, value); - } - } - - /// - /// The GrabHandlePressedImage property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GrabHandlePressedImage - { - get - { - return (string)GetValue(GrabHandlePressedImageProperty); - } - set - { - SetValue(GrabHandlePressedImageProperty, value); - } - } - - /// - /// The ScrollThreshold property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollThreshold - { - get - { - return (float)GetValue(ScrollThresholdProperty); - } - set - { - SetValue(ScrollThresholdProperty, value); - } - } - - /// - /// The ScrollSpeed property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScrollSpeed - { - get - { - return (float)GetValue(ScrollSpeedProperty); - } - set - { - SetValue(ScrollSpeedProperty, value); - } - } - - /// - /// The SelectionHandleImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandleImageLeftProperty); - } - set - { - SetValue(SelectionHandleImageLeftProperty, value); - } - } - - /// - /// The SelectionHandleImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandleImageRightProperty); - } - set - { - SetValue(SelectionHandleImageRightProperty, value); - } - } - - /// - /// The SelectionHandlePressedImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandlePressedImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty); - } - set - { - SetValue(SelectionHandlePressedImageLeftProperty, value); - } - } - - /// - /// The SelectionHandlePressedImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandlePressedImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty); - } - set - { - SetValue(SelectionHandlePressedImageRightProperty, value); - } - } - - /// - /// The SelectionHandleMarkerImageLeft property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleMarkerImageLeft - { - get - { - return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty); - } - set - { - SetValue(SelectionHandleMarkerImageLeftProperty, value); - } - } - - /// - /// The SelectionHandleMarkerImageRight property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectionHandleMarkerImageRight - { - get - { - return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty); - } - set - { - SetValue(SelectionHandleMarkerImageRightProperty, value); - } - } - - /// - /// The SelectionHighlightColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 SelectionHighlightColor - { - get - { - return (Vector4)GetValue(SelectionHighlightColorProperty); - } - set - { - SetValue(SelectionHighlightColorProperty, value); - } - } - - /// - /// The DecorationBoundingBox property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rectangle DecorationBoundingBox - { - get - { - return (Rectangle)GetValue(DecorationBoundingBoxProperty); - } - set - { - SetValue(DecorationBoundingBoxProperty, value); - } - } - - /// - /// The InputMethodSettings property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap InputMethodSettings - { - get - { - return (PropertyMap)GetValue(InputMethodSettingsProperty); - } - set - { - SetValue(InputMethodSettingsProperty, value); - } - } - - /// - /// The InputColor property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 InputColor - { - get - { - return (Vector4)GetValue(InputColorProperty); - } - set - { - SetValue(InputColorProperty, value); - } - } - - /// - /// The EnableMarkup property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableMarkup - { - get - { - return (bool)GetValue(EnableMarkupProperty); - } - set - { - SetValue(EnableMarkupProperty, value); - } - } - - /// - /// The InputFontFamily property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputFontFamily - { - get - { - return (string)GetValue(InputFontFamilyProperty); - } - set - { - SetValue(InputFontFamilyProperty, value); - } - } - - /// - /// The InputFontStyle property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap InputFontStyle - { - get - { - return (PropertyMap)GetValue(InputFontStyleProperty); - } - set - { - SetValue(InputFontStyleProperty, value); - } - } - - /// - /// The InputPointSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float InputPointSize - { - get - { - return (float)GetValue(InputPointSizeProperty); - } - set - { - SetValue(InputPointSizeProperty, value); - } - } - - /// - /// The Underline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Underline - { - get - { - return (PropertyMap)GetValue(UnderlineProperty); - } - set - { - SetValue(UnderlineProperty, value); - } - } - - /// - /// The InputUnderline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputUnderline - { - get - { - return (string)GetValue(InputUnderlineProperty); - } - set - { - SetValue(InputUnderlineProperty, value); - } - } - - /// - /// The Shadow property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Shadow - { - get - { - return (PropertyMap)GetValue(ShadowProperty); - } - set - { - SetValue(ShadowProperty, value); - } - } - - /// - /// The InputShadow property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputShadow - { - get - { - return (string)GetValue(InputShadowProperty); - } - set - { - SetValue(InputShadowProperty, value); - } - } - - /// - /// The Emboss property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Emboss - { - get - { - return (string)GetValue(EmbossProperty); - } - set - { - SetValue(EmbossProperty, value); - } - } - - /// - /// The InputEmboss property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputEmboss - { - get - { - return (string)GetValue(InputEmbossProperty); - } - set - { - SetValue(InputEmbossProperty, value); - } - } - - /// - /// The Outline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Outline - { - get - { - return (PropertyMap)GetValue(OutlineProperty); - } - set - { - SetValue(OutlineProperty, value); - } - } - - /// - /// The InputOutline property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string InputOutline - { - get - { - return (string)GetValue(InputOutlineProperty); - } - set - { - SetValue(InputOutlineProperty, value); - } - } - - /// - /// The HiddenInputSettings property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap HiddenInputSettings - { - get - { - return (PropertyMap)GetValue(HiddenInputSettingsProperty); - } - set - { - SetValue(HiddenInputSettingsProperty, value); - } - } - - /// - /// The PixelSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PixelSize - { - get - { - return (float)GetValue(PixelSizeProperty); - } - set - { - SetValue(PixelSizeProperty, value); - } - } - - /// - /// The Enable selection property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableSelection - { - get - { - return (bool)GetValue(EnableSelectionProperty); - } - set - { - SetValue(EnableSelectionProperty, value); - } - } - - /// - /// The Placeholder property. - /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size. - /// - /// - /// The following example demonstrates how to set the Placeholder property. - /// - /// PropertyMap propertyMap = new PropertyMap(); - /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text")); - /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused")); - /// propertyMap.Add("color", new PropertyValue(Color.Red)); - /// propertyMap.Add("fontFamily", new PropertyValue("Arial")); - /// propertyMap.Add("pointSize", new PropertyValue(12.0f)); - /// - /// PropertyMap fontStyleMap = new PropertyMap(); - /// fontStyleMap.Add("weight", new PropertyValue("bold")); - /// fontStyleMap.Add("width", new PropertyValue("condensed")); - /// fontStyleMap.Add("slant", new PropertyValue("italic")); - /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap)); - /// - /// TextField field = new TextField(); - /// field.Placeholder = propertyMap; - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Placeholder - { - get - { - return (PropertyMap)GetValue(PlaceholderProperty); - } - set - { - SetValue(PlaceholderProperty, value); - } - } - - /// - /// The Ellipsis property.
- /// Enable or disable the ellipsis.
- /// Placeholder PropertyMap is used to add ellipsis to placeholder text. - ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Ellipsis - { - get - { - return (bool)GetValue(EllipsisProperty); - } - set - { - SetValue(EllipsisProperty, value); - } - } - - /// - /// Enables selection of the text using the Shift key. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableShiftSelection - { - get - { - return (bool)GetValue(EnableShiftSelectionProperty); - } - set - { - SetValue(EnableShiftSelectionProperty, value); - } - } - - /// - /// The text alignment to match the direction of the system language. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MatchSystemLanguageDirection - { - get - { - return (bool)GetValue(MatchSystemLanguageDirectionProperty); - } - set - { - SetValue(MatchSystemLanguageDirectionProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextLabel.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextLabel.cs deleted file mode 100755 index 70d6bf448..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/TextLabel.cs +++ /dev/null @@ -1,918 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - */ - -extern alias TizenSystemSettings; -using System; -using System.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - - /// - /// A control which renders a short text string.
- /// Text labels are lightweight, non-editable, and do not respond to the user input.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class TextLabel : View - { - private Tizen.NUI.BaseComponents.TextLabel _textLabel; - internal Tizen.NUI.BaseComponents.TextLabel textLabel - { - get - { - if (null == _textLabel) - { - _textLabel = handleInstance as Tizen.NUI.BaseComponents.TextLabel; - } - - return _textLabel; - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(TextLabel), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Text = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Text; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create(nameof(FontFamily), typeof(string), typeof(TextLabel), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.FontFamily = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.FontFamily; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextLabel), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.FontStyle = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.FontStyle; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PointSizeProperty = BindableProperty.Create(nameof(PointSize), typeof(float), typeof(TextLabel), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.PointSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.PointSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MultiLineProperty = BindableProperty.Create(nameof(MultiLine), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.MultiLine = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.MultiLine; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment), typeof(TextLabel), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.HorizontalAlignment = (HorizontalAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.HorizontalAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create(nameof(VerticalAlignment), typeof(VerticalAlignment), typeof(TextLabel), VerticalAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.VerticalAlignment = (VerticalAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.VerticalAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TextColorProperty = BindableProperty.Create(nameof(TextColor), typeof(Color), typeof(TextLabel), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.TextColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.TextColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.EnableMarkup = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.EnableMarkup; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EnableAutoScrollProperty = BindableProperty.Create(nameof(EnableAutoScroll), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.EnableAutoScroll = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.EnableAutoScroll; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoScrollSpeedProperty = BindableProperty.Create(nameof(AutoScrollSpeed), typeof(int), typeof(TextLabel), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.AutoScrollSpeed = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.AutoScrollSpeed; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoScrollLoopCountProperty = BindableProperty.Create(nameof(AutoScrollLoopCount), typeof(int), typeof(TextLabel), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.AutoScrollLoopCount = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.AutoScrollLoopCount; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoScrollGapProperty = BindableProperty.Create(nameof(AutoScrollGap), typeof(float), typeof(TextLabel), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.AutoScrollGap = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.AutoScrollGap; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LineSpacingProperty = BindableProperty.Create(nameof(LineSpacing), typeof(float), typeof(TextLabel), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.LineSpacing = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.LineSpacing; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnderlineProperty = BindableProperty.Create(nameof(Underline), typeof(PropertyMap), typeof(TextLabel), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Underline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Underline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShadowProperty = BindableProperty.Create(nameof(Shadow), typeof(PropertyMap), typeof(TextLabel), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Shadow = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Shadow; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(Emboss), typeof(string), typeof(TextLabel), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Emboss = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Emboss; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OutlineProperty = BindableProperty.Create(nameof(Outline), typeof(PropertyMap), typeof(TextLabel), null, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Outline = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Outline; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(PixelSize), typeof(float), typeof(TextLabel), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.PixelSize = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.PixelSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EllipsisProperty = BindableProperty.Create(nameof(Ellipsis), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.Ellipsis = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.Ellipsis; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoScrollLoopDelayProperty = BindableProperty.Create(nameof(AutoScrollLoopDelay), typeof(float), typeof(TextLabel), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.AutoScrollLoopDelay = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.AutoScrollLoopDelay; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoScrollStopModeProperty = BindableProperty.Create(nameof(AutoScrollStopMode), typeof(AutoScrollStopMode), typeof(TextLabel), AutoScrollStopMode.FinishLoop, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.AutoScrollStopMode = (AutoScrollStopMode)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.AutoScrollStopMode; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LineWrapModeProperty = BindableProperty.Create(nameof(LineWrapMode), typeof(LineWrapMode), typeof(TextLabel), LineWrapMode.Word, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.LineWrapMode = (LineWrapMode)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.LineWrapMode; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VerticalLineAlignmentProperty = BindableProperty.Create(nameof(VerticalLineAlignment), typeof(VerticalLineAlignment), typeof(TextLabel), VerticalLineAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.VerticalLineAlignment = (VerticalLineAlignment)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.VerticalLineAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(MatchSystemLanguageDirection), typeof(bool), typeof(TextLabel), false, propertyChanged: (bindable, oldValue, newValue) => - { - var textLabel = ((TextLabel)bindable).textLabel; - textLabel.MatchSystemLanguageDirection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var textLabel = ((TextLabel)bindable).textLabel; - return textLabel.MatchSystemLanguageDirection; - }); - - /// - /// Creates a new instance of a Xaml TextLabel. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TextLabel() : this(new Tizen.NUI.BaseComponents.TextLabel()) - { - } - - /// - /// Creates a new instance of a Xaml TextLabel. - /// - /// 6 - public TextLabel(string text) : this(new Tizen.NUI.BaseComponents.TextLabel(text)) - { - } - - internal TextLabel(Tizen.NUI.BaseComponents.TextLabel nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// - /// Downcasts a handle to textLabel handle - /// - /// - /// - /// 6 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead! " + - "Like: " + - "BaseHandle handle = new TextLabel(\"Hello World!\"); " + - "TextLabel label = handle as TextLabel")] - public static TextLabel DownCast(BaseHandle handle) - { - return BaseHandle.GetHandle(handle.handleInstance) as TextLabel; - } - - /// - /// The TranslatableText property.
- /// The text can set the SID value.
- ///
- /// - /// ResourceManager about multilingual is null. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TranslatableText - { - get - { - return textLabel.TranslatableText; - } - set - { - textLabel.TranslatableText = value; - } - } - - /// - /// The Text property.
- /// The text to display in the UTF-8 format.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Text - { - get - { - return (string)GetValue(TextProperty); - } - set - { - SetValue(TextProperty, value); - } - } - - /// - /// The FontFamily property.
- /// The requested font family to use.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string FontFamily - { - get - { - return (string)GetValue(FontFamilyProperty); - } - set - { - SetValue(FontFamilyProperty, value); - } - } - - /// - /// The FontStyle property.
- /// The requested font style to use.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap FontStyle - { - get - { - return (PropertyMap)GetValue(FontStyleProperty); - } - set - { - SetValue(FontStyleProperty, value); - } - } - - /// - /// The PointSize property.
- /// The size of font in points.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PointSize - { - get - { - return (float)GetValue(PointSizeProperty); - } - set - { - SetValue(PointSizeProperty, value); - } - } - - /// - /// The MultiLine property.
- /// The single-line or multi-line layout option.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MultiLine - { - get - { - return (bool)GetValue(MultiLineProperty); - } - set - { - SetValue(MultiLineProperty, value); - } - } - - /// - /// The HorizontalAlignment property.
- /// The line horizontal alignment.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public HorizontalAlignment HorizontalAlignment - { - get - { - return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty); - } - set - { - SetValue(HorizontalAlignmentProperty, value); - } - } - - /// - /// The VerticalAlignment property.
- /// The line vertical alignment.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public VerticalAlignment VerticalAlignment - { - get - { - return (VerticalAlignment)GetValue(VerticalAlignmentProperty); - } - set - { - SetValue(VerticalAlignmentProperty, value); - } - } - - /// - /// The TextColor property.
- /// The color of the text.
- /// Animation framework can be used to change the color of the text when not using mark up.
- /// Cannot animate the color when text is auto scrolling.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color TextColor - { - get - { - return (Color)GetValue(TextColorProperty); - } - set - { - SetValue(TextColorProperty, value); - } - } - - /// - /// The EnableMarkup property.
- /// Whether the mark-up processing is enabled.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableMarkup - { - get - { - return (bool)GetValue(EnableMarkupProperty); - } - set - { - SetValue(EnableMarkupProperty, value); - } - } - - /// - /// The EnableAutoScroll property.
- /// Starts or stops auto scrolling.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EnableAutoScroll - { - get - { - return (bool)GetValue(EnableAutoScrollProperty); - } - set - { - SetValue(EnableAutoScrollProperty, value); - } - } - - /// - /// The AutoScrollSpeed property.
- /// Sets the speed of scrolling in pixels per second.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int AutoScrollSpeed - { - get - { - return (int)GetValue(AutoScrollSpeedProperty); - } - set - { - SetValue(AutoScrollSpeedProperty, value); - } - } - - /// - /// The AutoScrollLoopCount property.
- /// Number of complete loops when scrolling enabled.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int AutoScrollLoopCount - { - get - { - return (int)GetValue(AutoScrollLoopCountProperty); - } - set - { - SetValue(AutoScrollLoopCountProperty, value); - } - } - - /// - /// The AutoScrollGap property.
- /// Gap before scrolling wraps.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float AutoScrollGap - { - get - { - return (float)GetValue(AutoScrollGapProperty); - } - set - { - SetValue(AutoScrollGapProperty, value); - } - } - - /// - /// The LineSpacing property.
- /// The default extra space between lines in points.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float LineSpacing - { - get - { - return (float)GetValue(LineSpacingProperty); - } - set - { - SetValue(LineSpacingProperty, value); - } - } - - /// - /// The Underline property.
- /// The default underline parameters.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Underline - { - get - { - return (PropertyMap)GetValue(UnderlineProperty); - } - set - { - SetValue(UnderlineProperty, value); - } - } - - /// - /// The Shadow property.
- /// The default shadow parameters.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Shadow - { - get - { - return (PropertyMap)GetValue(ShadowProperty); - } - set - { - SetValue(ShadowProperty, value); - } - } - - /// - /// The Emboss property.
- /// The default emboss parameters.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Emboss - { - get - { - return (string)GetValue(EmbossProperty); - } - set - { - SetValue(EmbossProperty, value); - } - } - - /// - /// The Outline property.
- /// The default outline parameters.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Outline - { - get - { - return (PropertyMap)GetValue(OutlineProperty); - } - set - { - SetValue(OutlineProperty, value); - } - } - - /// - /// The PixelSize property.
- /// The size of font in pixels.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PixelSize - { - get - { - return (float)GetValue(PixelSizeProperty); - } - set - { - SetValue(PixelSizeProperty, value); - } - } - - /// - /// The Ellipsis property.
- /// Enable or disable the ellipsis.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Ellipsis - { - get - { - return (bool)GetValue(EllipsisProperty); - } - set - { - SetValue(EllipsisProperty, value); - } - } - - /// - /// The AutoScrollLoopDelay property.
- /// Do something.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float AutoScrollLoopDelay - { - get - { - return (float)GetValue(AutoScrollLoopDelayProperty); - } - set - { - SetValue(AutoScrollLoopDelayProperty, value); - } - } - - /// - /// The AutoScrollStopMode property.
- /// Do something.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AutoScrollStopMode AutoScrollStopMode - { - get - { - return (AutoScrollStopMode)GetValue(AutoScrollStopModeProperty); - } - set - { - SetValue(AutoScrollStopModeProperty, value); - } - } - - /// - /// The line count of the text. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LineCount - { - get - { - return textLabel.LineCount; - } - } - - /// - /// The LineWrapMode property.
- /// line wrap mode when the text lines over layout width.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public LineWrapMode LineWrapMode - { - get - { - return (LineWrapMode)GetValue(LineWrapModeProperty); - } - set - { - SetValue(LineWrapModeProperty, value); - } - } - - /// - /// The direction of the text such as left to right or right to left. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TextDirection TextDirection - { - get - { - return textLabel.TextDirection; - } - } - - /// - /// The vertical line alignment of the text. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public VerticalLineAlignment VerticalLineAlignment - { - get - { - return (VerticalLineAlignment)GetValue(VerticalLineAlignmentProperty); - } - set - { - SetValue(VerticalLineAlignmentProperty, value); - } - } - - /// - /// The text alignment to match the direction of the system language. - /// - /// 6 - /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MatchSystemLanguageDirection - { - get - { - return (bool)GetValue(MatchSystemLanguageDirectionProperty); - } - set - { - SetValue(MatchSystemLanguageDirectionProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VideoView.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VideoView.cs deleted file mode 100755 index ed66ecee3..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VideoView.cs +++ /dev/null @@ -1,320 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.VideoView; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// VideoView is a control for video playback and display. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class VideoView : View - { - private Tizen.NUI.BaseComponents.VideoView _videoView; - internal Tizen.NUI.BaseComponents.VideoView videoView - { - get - { - if (null == _videoView) - { - _videoView = handleInstance as Tizen.NUI.BaseComponents.VideoView; - } - - return _videoView; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public VideoView() : this(new Tizen.NUI.BaseComponents.VideoView()) - { - } - - internal VideoView(Tizen.NUI.BaseComponents.VideoView nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VideoProperty = BindableProperty.Create("Video", typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.Video = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.Video; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LoopingProperty = BindableProperty.Create("Looping", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.Looping = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.Looping; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MutedProperty = BindableProperty.Create("Muted", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.Muted = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.Muted; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty VolumeProperty = BindableProperty.Create("Volume", typeof(PropertyMap), typeof(VideoView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.Volume = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.Volume; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnderlayProperty = BindableProperty.Create("Underlay", typeof(bool), typeof(VideoView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.Underlay = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.Underlay; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ResourceUrlProperty = BindableProperty.Create("ResourceUrl", typeof(string), typeof(VideoView), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var videoView = ((VideoView)bindable).videoView; - videoView.ResourceUrl = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var videoView = ((VideoView)bindable).videoView; - return videoView.ResourceUrl; - }); - - /// - /// Event for the finished signal which can be used to subscribe or unsubscribe the event handler - /// The finished signal is emitted when a video playback has finished.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Finished - { - add - { - videoView.Finished += value; - } - remove - { - videoView.Finished -= value; - } - } - - /// - /// Starts the video playback. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Play() - { - videoView.Play(); - } - - /// - /// Pauses the video playback. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Pause() - { - videoView.Pause(); - } - - /// - /// Stops the video playback. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Stop() - { - videoView.Stop(); - } - - /// - /// Seeks forward by the specified number of milliseconds. - /// - /// The position for forward playback. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Forward(int millisecond) - { - videoView.Forward(millisecond); - } - - /// - /// Seeks backward by the specified number of milliseconds. - /// - /// The position for backward playback. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Backward(int millisecond) - { - videoView.Backward(millisecond); - } - - /// - /// Video file setting type of PropertyMap. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Video - { - get - { - return (PropertyMap)GetValue(VideoProperty); - } - set - { - SetValue(VideoProperty, value); - } - } - - /// - /// The looping status, true or false. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Looping - { - get - { - return (bool)GetValue(LoopingProperty); - } - set - { - SetValue(LoopingProperty, value); - } - } - - /// - /// The mute status, true or false. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Muted - { - get - { - return (bool)GetValue(MutedProperty); - } - set - { - SetValue(MutedProperty, value); - } - } - - /// - /// The left and the right volume scalar as float type, PropertyMap with two values ( "left" and "right" ). - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Volume - { - get - { - return (PropertyMap)GetValue(VolumeProperty); - } - set - { - SetValue(VolumeProperty, value); - } - } - - /// - /// Video rendering by underlay, true or false.
- /// This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view. - ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Underlay - { - get - { - return (bool)GetValue(UnderlayProperty); - } - set - { - SetValue(UnderlayProperty, value); - } - } - - /// - /// Video file URL as string type. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string ResourceUrl - { - get - { - return (string)GetValue(ResourceUrlProperty); - } - set - { - SetValue(ResourceUrlProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/View.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/View.cs deleted file mode 100755 index 8fd63ab06..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/View.cs +++ /dev/null @@ -1,3174 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.BaseComponents.View; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// View is the base class for all views. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ContentProperty("Content")] - public class View : Tizen.NUI.Xaml.Forms.Container, Tizen.NUI.Binding.IResourcesProvider - { - private Tizen.NUI.BaseComponents.View _view; - internal Tizen.NUI.BaseComponents.View view - { - get - { - if (null == _view) - { - _view = handleInstance as Tizen.NUI.BaseComponents.View; - } - - return _view; - } - } - - /// - /// Creates a new instance of a Xaml View. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View() : this(new Tizen.NUI.BaseComponents.View()) - { - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.BaseComponents.View ViewInstance - { - get - { - return _view; - } - } - - internal View(Tizen.NUI.BaseComponents.View nuiInstance) : base(nuiInstance) - { - _view = nuiInstance; - SetNUIInstance(nuiInstance); - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - bool Tizen.NUI.Binding.IResourcesProvider.IsResourcesCreated => _resources != null; - - ResourceDictionary _resources; - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ResourceDictionary Resources - { - get - { - if (_resources != null) - return _resources; - _resources = new ResourceDictionary(); - ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; - return _resources; - } - set - { - if (_resources == value) - return; - OnPropertyChanging(); - if (_resources != null) - ((IResourceDictionary)_resources).ValuesChanged -= OnResourcesChanged; - _resources = value; - OnResourcesChanged(value); - if (_resources != null) - ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; - OnPropertyChanged(); - } - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ResourceDictionary XamlResources - { - get - { - if (_resources != null) - return _resources; - - _resources = new ResourceDictionary(); - ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; - return _resources; - } - set - { - if (_resources == value) - return; - OnPropertyChanging(); - if (_resources != null) - ((IResourceDictionary)_resources).ValuesChanged -= OnResourcesChanged; - _resources = value; - OnResourcesChanged(value); - if (_resources != null) - ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; - OnPropertyChanged(); - } - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContentProperty = BindableProperty.Create("Content", typeof(View), typeof(ContentPage), null, propertyChanged: (bindable, oldValue, newValue) => - { - var self = (View)bindable; - if (newValue != null) - { - self.Add((View)newValue); - } - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.StyleName = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.StyleName; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.BackgroundColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.BackgroundColor; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.BackgroundImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.BackgroundImage; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Background = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Background; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.State = (States)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.State; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SubState = (States)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.SubState; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Tooltip = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Tooltip; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Flex = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Flex; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.AlignSelf = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.AlignSelf; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.FlexMargin = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.FlexMargin; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.CellIndex = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.CellIndex; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.RowSpan = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.RowSpan; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ColumnSpan = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ColumnSpan; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.CellHorizontalAlignment = (HorizontalAlignmentType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.CellHorizontalAlignment; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.CellVerticalAlignment = (VerticalAlignmentType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.CellVerticalAlignment; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(Tizen.NUI.BaseComponents.View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.LeftFocusableView = (Tizen.NUI.BaseComponents.View)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.LeftFocusableView; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(Tizen.NUI.BaseComponents.View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.RightFocusableView = (Tizen.NUI.BaseComponents.View)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.RightFocusableView; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(Tizen.NUI.BaseComponents.View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.UpFocusableView = (Tizen.NUI.BaseComponents.View)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.UpFocusableView; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(Tizen.NUI.BaseComponents.View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.DownFocusableView = (Tizen.NUI.BaseComponents.View)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.DownFocusableView; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Focusable = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Focusable; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Size2D = (Size2D)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Size2D; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Opacity = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Opacity; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Position2D = (Position2D)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Position2D; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.PositionUsesPivotPoint = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.PositionUsesPivotPoint; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SiblingOrder = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - var parentChildren = view.GetParent()?.Children; - int currentOrder = 0; - if (parentChildren != null) - { - currentOrder = parentChildren.IndexOf(view); - - if (currentOrder < 0) { return 0; } - else if (currentOrder < parentChildren.Count) { return currentOrder; } - } - - return 0; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ParentOrigin = (Position)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ParentOrigin; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.PivotPoint = (Position)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.PivotPoint; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SizeWidth = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.SizeWidth; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SizeHeight = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.SizeHeight; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Position = (Position)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Position; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.PositionX = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.PositionX; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.PositionY = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.PositionY; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.PositionZ = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.PositionZ; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Orientation = (Rotation)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Orientation; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Scale = (Vector3)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Scale; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ScaleX = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ScaleX; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ScaleY = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ScaleY; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ScaleZ = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ScaleZ; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Name = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Name; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Sensitive = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Sensitive; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.LeaveRequired = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.LeaveRequired; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.InheritOrientation = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.InheritOrientation; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.InheritScale = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.InheritScale; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.DrawMode = (DrawModeType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.DrawMode; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SizeModeFactor = (Vector3)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.SizeModeFactor; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.WidthResizePolicy = (ResizePolicyType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.WidthResizePolicy; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.HeightResizePolicy = (ResizePolicyType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.HeightResizePolicy; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.SizeScalePolicy = (SizeScalePolicyType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.SizeScalePolicy; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.WidthForHeight = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.WidthForHeight; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.HeightForWidth = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.HeightForWidth; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Padding = (Extents)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Padding; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Size = (Size)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Size; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.MinimumSize = (Size2D)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.MinimumSize; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.MaximumSize = (Size2D)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.MaximumSize; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.InheritPosition = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.InheritPosition; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.ClippingMode = (ClippingModeType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.ClippingMode; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.InheritLayoutDirection = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.InheritLayoutDirection; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.LayoutDirection = (ViewLayoutDirectionType)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.LayoutDirection; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) => - { - var view = ((View)bindable).view; - view.Margin = (Extents)newValue; - }, - defaultValueCreator: (bindable) => - { - var view = ((View)bindable).view; - return view.Margin; - }); - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StyleProperty = BindableProperty.Create("Style", typeof(Style), typeof(View), default(Style), - propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable).mergedStyle.Style = (Style)newvalue); - - /// - /// Event argument passed through the ChildAdded event. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ChildAddedEventArgs : EventArgs - { - /// - /// Added child view at moment. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View Added { get; set; } - } - - /// - /// Event when a child is added. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new event EventHandler ChildAdded; - - // From Container Base class - /// - /// Adds a child view to this view. - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override void Add(View child) - { - (child as IElement).Parent = this; - view.Add(child.view); - - if (ChildAdded != null) - { - ChildAddedEventArgs e = new ChildAddedEventArgs - { - Added = child - }; - ChildAdded(this, e); - } - BindableObject.SetInheritedBindingContext(child, this?.BindingContext); - } - - /// - /// Event argument passed through the ChildRemoved event. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ChildRemovedEventArgs : EventArgs - { - /// - /// Removed child view at moment. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View Removed { get; set; } - } - - /// - /// Event when a child is removed. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new event EventHandler ChildRemoved; - - - /// - /// Removes a child view from this View. If the view was not a child of this view, this is a no-op. - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override void Remove(View child) - { - (child as IElement).Parent = null; - view.Remove(child.view); - - if (ChildRemoved != null) - { - ChildRemovedEventArgs e = new ChildRemovedEventArgs - { - Removed = child - }; - ChildRemoved(this, e); - } - } - - /// - /// Retrieves a child view by index. - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override View GetChildAt(uint index) - { - if (index < view.Children.Count) - { - return BaseHandle.GetHandle(view.Children[Convert.ToInt32(index)]) as View; - } - else - { - return null; - } - } - - /// - /// Retrieves the number of children held by the view. - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override uint GetChildCount() - { - return Convert.ToUInt32(view.Children.Count); - } - - /// - /// Gets the views parent. - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override Container GetParent() - { - return BaseHandle.GetHandle(view.GetParent()) as Container; - } - - /// - /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler FocusGained - { - add - { - view.FocusGained += value; - } - - remove - { - view.FocusGained -= value; - } - } - - /// - /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler FocusLost - { - add - { - view.FocusLost += value; - } - - remove - { - view.FocusLost -= value; - } - } - - /// - /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The KeyPressed signal is emitted when the key event is received.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType KeyEvent - { - add - { - view.KeyEvent += value; - } - - remove - { - view.KeyEvent -= value; - } - } - - /// - /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.
- /// The OnRelayout signal is emitted after the size has been set on the view during relayout.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Relayout - { - add - { - view.Relayout += value; - } - - remove - { - view.Relayout -= value; - } - } - - /// - /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The touched signal is emitted when the touch input is received.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType TouchEvent - { - add - { - view.TouchEvent += value; - } - - remove - { - view.TouchEvent -= value; - } - } - - /// - /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The hovered signal is emitted when the hover input is received.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType HoverEvent - { - add - { - view.HoverEvent += value; - } - - remove - { - view.HoverEvent -= value; - } - } - - /// - /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// The WheelMoved signal is emitted when the wheel event is received.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType WheelEvent - { - add - { - view.WheelEvent += value; - } - - remove - { - view.WheelEvent -= value; - } - } - - /// - /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.
- /// The OnWindow signal is emitted after the view has been connected to the window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler AddedToWindow - { - add - { - view.AddedToWindow += value; - } - - remove - { - view.AddedToWindow -= value; - } - } - - /// - /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.
- /// OffWindow signal is emitted after the view has been disconnected from the window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler RemovedFromWindow - { - add - { - view.RemovedFromWindow += value; - } - - remove - { - view.RemovedFromWindow -= value; - } - } - - /// - /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.
- /// This signal is emitted when the visible property of this or a parent view is changed.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler VisibilityChanged - { - add - { - view.VisibilityChanged += value; - } - - remove - { - view.VisibilityChanged -= value; - } - } - - /// - /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.
- /// This signal is emitted when the layout direction property of this or a parent view is changed.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler LayoutDirectionChanged - { - add - { - view.LayoutDirectionChanged += value; - } - - remove - { - view.LayoutDirectionChanged -= value; - } - } - - /// - /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.
- /// This signal is emitted after all resources required by a view are loaded and ready.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ResourcesLoaded - { - add - { - view.ResourcesLoaded += value; - } - - remove - { - view.ResourcesLoaded -= value; - } - } - - /// - /// Queries whether the view has a focus. - /// - /// True if this view has a focus. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool HasFocus() - { - return view.HasFocus(); - } - - /// - /// Sets the name of the style to be applied to the view. - /// - /// A string matching a style described in a stylesheet. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetStyleName(string styleName) - { - view.SetStyleName(styleName); - } - - /// - /// Retrieves the name of the style to be applied to the view (if any). - /// - /// A string matching a style, or an empty string. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GetStyleName() - { - return view.GetStyleName(); - } - - /// - /// Clears the background. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ClearBackground() - { - view.ClearBackground(); - } - - /// - /// The contents of ContentPage can be added into it. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View Content - { - get { return (View)GetValue(ContentProperty); } - set { SetValue(ContentProperty, value); } - } - - /// - /// The StyleName, type string. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string StyleName - { - get - { - return (string)GetValue(StyleNameProperty); - } - set - { - SetValue(StyleNameProperty, value); - } - } - - /// - /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color BackgroundColor - { - get - { - return (Color)GetValue(BackgroundColorProperty); - } - set - { - SetValue(BackgroundColorProperty, value); - } - } - - /// - /// Creates an animation to animate the background color visual. If there is no - /// background visual, creates one with transparent black as it's mixColor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Animation AnimateBackgroundColor(object destinationValue, - int startTime, - int endTime, - AlphaFunction.BuiltinFunctions? alphaFunction = null, - object initialValue = null) - { - return view.AnimateBackgroundColor(destinationValue, startTime, endTime, alphaFunction, initialValue); - } - - /// - /// Creates an animation to animate the mixColor of the named visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null) - { - return view.AnimateColor(targetVisual, destinationColor, startTime, endTime, alphaFunction, initialColor); - } - - /// - /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string BackgroundImage - { - get - { - return (string)GetValue(BackgroundImageProperty); - } - set - { - SetValue(BackgroundImageProperty, value); - } - } - - /// - /// The background of view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.PropertyMap Background - { - get - { - return (PropertyMap)GetValue(BackgroundProperty); - } - set - { - SetValue(BackgroundProperty, value); - } - } - - /// - /// The current state of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public States State - { - get - { - return (States)GetValue(StateProperty); - } - set - { - SetValue(StateProperty, value); - } - } - - /// - /// The current sub state of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public States SubState - { - get - { - return (States)GetValue(SubStateProperty); - } - set - { - SetValue(SubStateProperty, value); - } - } - - /// - /// Displays a tooltip - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.PropertyMap Tooltip - { - get - { - return (PropertyMap)GetValue(TooltipProperty); - } - set - { - SetValue(TooltipProperty, value); - } - } - - /// - /// Displays a tooltip as a text. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TooltipText - { - set - { - view.TooltipText = value; - } - } - - /// - /// The Child property of FlexContainer.
- /// The proportion of the free space in the container, the flex item will receive.
- /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float Flex - { - get - { - return (float)GetValue(FlexProperty); - } - set - { - SetValue(FlexProperty, value); - } - } - - /// - /// The Child property of FlexContainer.
- /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int AlignSelf - { - get - { - return (int)GetValue(AlignSelfProperty); - } - set - { - SetValue(AlignSelfProperty, value); - } - } - - /// - /// The Child property of FlexContainer.
- /// The space around the flex item.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 FlexMargin - { - get - { - return (Vector4)GetValue(FlexMarginProperty); - } - set - { - SetValue(FlexMarginProperty, value); - } - } - - /// - /// The top-left cell this child occupies, if not set, the first available cell is used. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 CellIndex - { - get - { - return (Vector2)GetValue(CellIndexProperty); - } - set - { - SetValue(CellIndexProperty, value); - } - } - - /// - /// The number of rows this child occupies, if not set, the default value is 1. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float RowSpan - { - get - { - return (float)GetValue(RowSpanProperty); - } - set - { - SetValue(RowSpanProperty, value); - } - } - - /// - /// The number of columns this child occupies, if not set, the default value is 1. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ColumnSpan - { - get - { - return (float)GetValue(ColumnSpanProperty); - } - set - { - SetValue(ColumnSpanProperty, value); - } - } - - /// - /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment - { - get - { - return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty); - } - set - { - SetValue(CellHorizontalAlignmentProperty, value); - } - } - - /// - /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment - { - get - { - return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty); - } - set - { - SetValue(CellVerticalAlignmentProperty, value); - } - } - - /// - /// The left focusable view.
- /// This will return null if not set.
- /// This will also return null if the specified left focusable view is not on a window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View LeftFocusableView - { - // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa. - get - { - return (View)GetValue(LeftFocusableViewProperty); - } - set - { - SetValue(LeftFocusableViewProperty, value); - } - } - - /// - /// The right focusable view.
- /// This will return null if not set.
- /// This will also return null if the specified right focusable view is not on a window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View RightFocusableView - { - // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa. - get - { - return (View)GetValue(RightFocusableViewProperty); - } - set - { - SetValue(RightFocusableViewProperty, value); - } - } - - /// - /// The up focusable view.
- /// This will return null if not set.
- /// This will also return null if the specified up focusable view is not on a window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View UpFocusableView - { - // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa. - get - { - return (View)GetValue(UpFocusableViewProperty); - } - set - { - SetValue(UpFocusableViewProperty, value); - } - } - - /// - /// The down focusable view.
- /// This will return null if not set.
- /// This will also return null if the specified down focusable view is not on a window.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View DownFocusableView - { - // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa. - get - { - return (View)GetValue(DownFocusableViewProperty); - } - set - { - SetValue(DownFocusableViewProperty, value); - } - } - - /// - /// Whether the view should be focusable by keyboard navigation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Focusable - { - set - { - SetValue(FocusableProperty, value); - } - get - { - return (bool)GetValue(FocusableProperty); - } - } - - /// - /// Retrieves the position of the view.
- /// The coordinates are relative to the view's parent.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Position CurrentPosition - { - get - { - return view.CurrentPosition; - } - } - - /// - /// Sets the size of a view for the width and the height.
- /// Geometry can be scaled to fit within this area.
- /// This does not interfere with the view's scale factor.
- /// The views default depth is the minimum of width and height.
- ///
- /// - /// This NUI object (Size2D) typed property can be configured by multiple cascade setting.
- /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ).
- /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D).
- /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters.
- /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f);
- /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f;
- /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size2D Size2D - { - get - { - return (Size2D)GetValue(Size2DProperty); - } - set - { - SetValue(Size2DProperty, value); - } - } - - private void OnSize2DChanged(int width, int height) - { - Size2D = new Size2D(width, height); - } - - /// - /// Retrieves the size of the view.
- /// The coordinates are relative to the view's parent.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size2D CurrentSize - { - get - { - return view.CurrentSize; - } - } - - /// - /// Retrieves and sets the view's opacity.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float Opacity - { - get - { - return (float)GetValue(OpacityProperty); - } - set - { - SetValue(OpacityProperty, value); - } - } - - /// - /// Sets the position of the view for X and Y.
- /// By default, sets the position vector between the parent origin and the pivot point (default).
- /// If the position inheritance is disabled, sets the world position.
- ///
- /// - /// This NUI object (Position2D) typed property can be configured by multiple cascade setting.
- /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ).
- /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D).
- /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters.
- /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f);
- /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f;
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Position2D Position2D - { - get - { - return (Position2D)GetValue(Position2DProperty); - } - set - { - SetValue(Position2DProperty, value); - } - } - - private void OnPosition2DChanged(int x, int y) - { - Position2D = new Position2D(x, y); - } - - /// - /// Retrieves the screen postion of the view.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScreenPosition - { - get - { - return view.ScreenPosition; - } - } - - /// - /// Determines whether the pivot point should be used to determine the position of the view. - /// This is true by default. - /// - /// If false, then the top-left of the view is used for the position. - /// Setting this to false will allow scaling or rotation around the anchor-point without affecting the view's position. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool PositionUsesPivotPoint - { - get - { - return (bool)GetValue(PositionUsesPivotPointProperty); - } - set - { - SetValue(PositionUsesPivotPointProperty, value); - } - } - - /// - /// Please do not use! this will be deprecated. - /// - /// Please do not use! this will be deprecated! - /// Instead please use PositionUsesPivotPoint. - /// 6 - [Obsolete("Please do not use! This will be deprecated! Please use PositionUsesPivotPoint instead! " + - "Like: " + - "View view = new View(); " + - "view.PivotPoint = PivotPoint.Center; " + - "view.PositionUsesPivotPoint = true;")] - [EditorBrowsable(EditorBrowsableState.Never)] - public bool PositionUsesAnchorPoint - { - get - { - return view.PositionUsesPivotPoint; - } - set - { - view.PositionUsesPivotPoint = value; - } - } - - /// - /// Queries whether the view is connected to the stage.
- /// When a view is connected, it will be directly or indirectly parented to the root view.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsOnWindow - { - get - { - return view.IsOnWindow; - } - } - - /// - /// Gets the depth in the hierarchy for the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int HierarchyDepth - { - get - { - return view.HierarchyDepth; - } - } - - /// - /// Sets the sibling order of the view so the depth position can be defined within the same parent. - /// - /// - /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0. - /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order. - /// The values set by this property will likely change. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int SiblingOrder - { - get - { - return (int)GetValue(SiblingOrderProperty); - } - set - { - SetValue(SiblingOrderProperty, value); - } - } - - /// - /// Returns the natural size of the view. - /// - /// - /// Deriving classes stipulate the natural size and by default a view has a zero natural size. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 NaturalSize - { - get - { - return view.NaturalSize; - } - } - - /// - /// Returns the natural size (Size2D) of the view. - /// - /// - /// Deriving classes stipulate the natural size and by default a view has a zero natural size. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size2D NaturalSize2D - { - get - { - return view.NaturalSize2D; - } - } - - /// - /// Shows the view. - /// - /// - /// This is an asynchronous method. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Show() - { - view.Show(); - } - - /// - /// Hides the view. - /// - /// - /// This is an asynchronous method. - /// If the view is hidden, then the view and its children will not be rendered. - /// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Hide() - { - view.Hide(); - } - - /// - /// Raises the view above all other views. - /// - /// - /// Sibling order of views within the parent will be updated automatically. - /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RaiseToTop() - { - view.RaiseToTop(); - } - - /// - /// Lowers the view to the bottom of all views. - /// - /// - /// The sibling order of views within the parent will be updated automatically. - /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void LowerToBottom() - { - view.LowerToBottom(); - } - - /// - /// Queries if all resources required by a view are loaded and ready. - /// - /// Most resources are only loaded when the control is placed on the stage. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsResourceReady() - { - return view.IsResourceReady(); - } - - /// - /// Gets the parent layer of this view.If a view has no parent, this method does not do anything. - /// - ///
The view has been initialized. 
- /// The parent layer of view - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Layer GetLayer() - { - return BaseHandle.GetHandle(view.GetLayer()) as Layer; - } - - /// - /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing. - /// - ///
The (child) view has been initialized. 
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Unparent() - { - view.GetParent()?.Remove(view); - } - - /// - /// Search through this view's hierarchy for a view with the given name. - /// The view itself is also considered in the search. - /// - ///
The view has been initialized.
- /// The name of the view to find. - /// A handle to the view if found, or an empty handle if not. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View FindChildByName(string viewName) - { - return BaseHandle.GetHandle(view.FindChildByName(viewName)) as View; - } - - /// - /// Converts screen coordinates into the view's coordinate system using the default camera. - /// - ///
The view has been initialized.
- /// The view coordinates are relative to the top-left(0.0, 0.0, 0.5). - /// On return, the X-coordinate relative to the view. - /// On return, the Y-coordinate relative to the view. - /// The screen X-coordinate. - /// The screen Y-coordinate. - /// True if the conversion succeeded. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY) - { - return view.ScreenToLocal(out localX, out localY, screenX, screenY); - } - - /// - /// Sets the relative to parent size factor of the view.
- /// This factor is only used when ResizePolicy is set to either: - /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.
- /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.
- ///
- ///
The view has been initialized.
- /// A Vector3 representing the relative factor to be applied to each axis. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetSizeModeFactor(Vector3 factor) - { - view.SetSizeModeFactor(factor); - } - - /// - /// Calculates the height of the view given a width.
- /// The natural size is used for default calculation.
- /// Size 0 is treated as aspect ratio 1:1.
- ///
- /// The width to use. - /// The height based on the width. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetHeightForWidth(float width) - { - return view.GetHeightForWidth(width); - } - - /// - /// Calculates the width of the view given a height.
- /// The natural size is used for default calculation.
- /// Size 0 is treated as aspect ratio 1:1.
- ///
- /// The height to use. - /// The width based on the height. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetWidthForHeight(float height) - { - return view.GetWidthForHeight(height); - } - - /// - /// Return the amount of size allocated for relayout. - /// - /// The dimension to retrieve. - /// Return the size. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetRelayoutSize(DimensionType dimension) - { - return view.GetRelayoutSize(dimension); - } - - /// - /// Set the padding for the view. - /// - /// Padding for the view. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetPadding(PaddingType padding) - { - view.SetPadding(padding); - } - - /// - /// Return the value of padding for the view. - /// - /// the value of padding for the view - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void GetPadding(PaddingType paddingOut) - { - view.GetPadding(paddingOut); - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint AddRenderer(Renderer renderer) - { - return view.AddRenderer(renderer); - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Renderer GetRendererAt(uint index) - { - return view.GetRendererAt(index); - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveRenderer(Renderer renderer) - { - view.RemoveRenderer(renderer); - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveRenderer(uint index) - { - view.RemoveRenderer(index); - } - - /// - /// Gets or sets the origin of a view within its parent's area.
- /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.
- /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).
- /// A view's position is the distance between this origin and the view's anchor-point.
- ///
- ///
The view has been initialized.
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Position ParentOrigin - { - get - { - return (Position)GetValue(ParentOriginProperty); - } - set - { - SetValue(ParentOriginProperty, value); - } - } - - /// - /// Gets or sets the anchor-point of a view.
- /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.
- /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).
- /// A view position is the distance between its parent-origin and this anchor-point.
- /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.
- ///
The view has been initialized.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Position PivotPoint - { - get - { - return (Position)GetValue(PivotPointProperty); - } - set - { - SetValue(PivotPointProperty, value); - } - } - - /// - /// Gets or sets the size width of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float SizeWidth - { - get - { - return (float)GetValue(SizeWidthProperty); - } - set - { - SetValue(SizeWidthProperty, value); - } - } - - /// - /// Gets or sets the size height of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float SizeHeight - { - get - { - return (float)GetValue(SizeHeightProperty); - } - set - { - SetValue(SizeHeightProperty, value); - } - } - - /// - /// Gets or sets the position of the view.
- /// By default, sets the position vector between the parent origin and pivot point (default).
- /// If the position inheritance is disabled, sets the world position.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Position Position - { - get - { - return (Position)GetValue(PositionProperty); - } - set - { - SetValue(PositionProperty, value); - } - } - - /// - /// Gets or sets the position X of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PositionX - { - get - { - return (float)GetValue(PositionXProperty); - } - set - { - SetValue(PositionXProperty, value); - } - } - - /// - /// Gets or sets the position Y of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PositionY - { - get - { - return (float)GetValue(PositionYProperty); - } - set - { - SetValue(PositionYProperty, value); - } - } - - /// - /// Gets or sets the position Z of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float PositionZ - { - get - { - return (float)GetValue(PositionZProperty); - } - set - { - SetValue(PositionZProperty, value); - } - } - - /// - /// Gets or sets the world position of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 WorldPosition - { - get - { - return view.WorldPosition; - } - } - - /// - /// Gets or sets the orientation of the view.
- /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.
- ///
- /// This is an asynchronous method. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rotation Orientation - { - get - { - return (Rotation)GetValue(OrientationProperty); - } - set - { - SetValue(OrientationProperty, value); - } - } - - /// - /// Gets or sets the world orientation of the view.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rotation WorldOrientation - { - get - { - return view.WorldOrientation; - } - } - - /// - /// Gets or sets the scale factor applied to the view.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 Scale - { - get - { - return (Vector3)GetValue(ScaleProperty); - } - set - { - SetValue(ScaleProperty, value); - } - } - - /// - /// Gets or sets the scale X factor applied to the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScaleX - { - get - { - return (float)GetValue(ScaleXProperty); - } - set - { - SetValue(ScaleXProperty, value); - } - } - - /// - /// Gets or sets the scale Y factor applied to the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScaleY - { - get - { - return (float)GetValue(ScaleYProperty); - } - set - { - SetValue(ScaleYProperty, value); - } - } - - /// - /// Gets or sets the scale Z factor applied to the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ScaleZ - { - get - { - return (float)GetValue(ScaleZProperty); - } - set - { - SetValue(ScaleZProperty, value); - } - } - - /// - /// Gets the world scale of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 WorldScale - { - get - { - return view.WorldScale; - } - } - - /// - /// Retrieves the visibility flag of the view. - /// - /// - /// If the view is not visible, then the view and its children will not be rendered. - /// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Visibility - { - get - { - return view.Visibility; - } - } - - /// - /// Gets the view's world color. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 WorldColor - { - get - { - return view.WorldColor; - } - } - - /// - /// Gets or sets the view's name. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Name - { - get - { - return (string)GetValue(NameProperty); - } - set - { - SetValue(NameProperty, value); - } - } - - /// - /// Get the number of children held by the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new uint ChildCount - { - get - { - return GetChildCount(); - } - } - - /// - /// Gets the view's ID. - /// Readonly - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint ID - { - get - { - return view.ID; - } - } - - /// - /// Gets or sets the status of whether the view should emit touch or hover signals. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Sensitive - { - get - { - return (bool)GetValue(SensitiveProperty); - } - set - { - SetValue(SensitiveProperty, value); - } - } - - /// - /// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool LeaveRequired - { - get - { - return (bool)GetValue(LeaveRequiredProperty); - } - set - { - SetValue(LeaveRequiredProperty, value); - } - } - - /// - /// Gets or sets the status of whether a child view inherits it's parent's orientation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool InheritOrientation - { - get - { - return (bool)GetValue(InheritOrientationProperty); - } - set - { - SetValue(InheritOrientationProperty, value); - } - } - - /// - /// Gets or sets the status of whether a child view inherits it's parent's scale. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool InheritScale - { - get - { - return (bool)GetValue(InheritScaleProperty); - } - set - { - SetValue(InheritScaleProperty, value); - } - } - - /// - /// Gets or sets the status of how the view and its children should be drawn.
- /// Not all views are renderable, but DrawMode can be inherited from any view.
- /// If an object is in a 3D layer, it will be depth-tested against other objects in the world, i.e., it may be obscured if other objects are in front.
- /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.
- /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.
- /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public DrawModeType DrawMode - { - get - { - return (DrawModeType)GetValue(DrawModeProperty); - } - set - { - SetValue(DrawModeProperty, value); - } - } - - /// - /// Gets or sets the relative to parent size factor of the view.
- /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.
- /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 SizeModeFactor - { - get - { - return (Vector3)GetValue(SizeModeFactorProperty); - } - set - { - SetValue(SizeModeFactorProperty, value); - } - } - - /// - /// Gets or sets the width resize policy to be used. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ResizePolicyType WidthResizePolicy - { - get - { - return (ResizePolicyType)GetValue(WidthResizePolicyProperty); - } - set - { - SetValue(WidthResizePolicyProperty, value); - } - } - - /// - /// Gets or sets the height resize policy to be used. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ResizePolicyType HeightResizePolicy - { - get - { - return (ResizePolicyType)GetValue(HeightResizePolicyProperty); - } - set - { - SetValue(HeightResizePolicyProperty, value); - } - } - - /// - /// Gets or sets the policy to use when setting size with size negotiation.
- /// Defaults to SizeScalePolicyType.UseSizeSet.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public SizeScalePolicyType SizeScalePolicy - { - get - { - return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty); - } - set - { - SetValue(SizeScalePolicyProperty, value); - } - } - - /// - /// Gets or sets the status of whether the width size is dependent on the height size. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool WidthForHeight - { - get - { - return (bool)GetValue(WidthForHeightProperty); - } - set - { - SetValue(WidthForHeightProperty, value); - } - } - - /// - /// Gets or sets the status of whether the height size is dependent on the width size. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool HeightForWidth - { - get - { - return (bool)GetValue(HeightForWidthProperty); - } - set - { - SetValue(HeightForWidthProperty, value); - } - } - - /// - /// Gets or sets the padding for use in layout. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Extents Padding - { - get - { - return (Extents)GetValue(PaddingProperty); - } - set - { - SetValue(PaddingProperty, value); - } - } - - /// - /// Gets or sets the minimum size the view can be assigned in size negotiation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size2D MinimumSize - { - get - { - return (Size2D)GetValue(MinimumSizeProperty); - } - set - { - SetValue(MinimumSizeProperty, value); - } - } - - /// - /// Gets or sets the maximum size the view can be assigned in size negotiation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size2D MaximumSize - { - get - { - return (Size2D)GetValue(MaximumSizeProperty); - } - set - { - // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout. - // MATCH_PARENT spec + parent container size can be used to limit - SetValue(MaximumSizeProperty, value); - } - } - - /// - /// Gets or sets whether a child view inherits it's parent's position.
- /// Default is to inherit.
- /// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool InheritPosition - { - get - { - return (bool)GetValue(InheritPositionProperty); - } - set - { - SetValue(InheritPositionProperty, value); - } - } - - /// - /// Gets or sets the clipping behavior (mode) of it's children. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ClippingModeType ClippingMode - { - get - { - return (ClippingModeType)GetValue(ClippingModeProperty); - } - set - { - SetValue(ClippingModeProperty, value); - } - } - - /// - /// Gets the number of renderers held by the view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint RendererCount - { - get - { - return view.RendererCount; - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// 6 - /// Please do not use! this will be deprecated! - /// Instead please use PivotPoint. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [Obsolete("Please do not use! This will be deprecated! Please use PivotPoint instead! " + - "Like: " + - "View view = new View(); " + - "view.PivotPoint = PivotPoint.Center; " + - "view.PositionUsesPivotPoint = true;")] - [EditorBrowsable(EditorBrowsableState.Never)] - public Position AnchorPoint - { - get - { - return view.AnchorPoint; - } - set - { - view.AnchorPoint = value; - } - } - - /// - /// Sets the size of a view for the width, the height and the depth.
- /// Geometry can be scaled to fit within this area.
- /// This does not interfere with the view's scale factor.
- /// The views default depth is the minimum of width and height.
- ///
- /// - /// Please note that multi-cascade setting is not possible for this NUI object.
- /// It is recommended that NUI object typed properties are configured by their constructor with parameters.
- /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f);
- /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f;
- /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Size Size - { - get - { - return (Size)GetValue(SizeProperty); - } - set - { - SetValue(SizeProperty, value); - } - } - - /// - /// "Please DO NOT use! This will be deprecated! Please use 'Container GetParent() for derived class' instead!" - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [Obsolete("Please do not use! This will be deprecated! Please use 'Container GetParent() for derived class' instead! " + - "Like: " + - "Container parent = view.GetParent(); " + - "View view = parent as View;")] - [EditorBrowsable(EditorBrowsableState.Never)] - public new View Parent - { - get - { - return BaseHandle.GetHandle(view.Parent) as View; - } - } - - /// - /// Gets/Sets whether inherit parent's the layout Direction. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool InheritLayoutDirection - { - get - { - return (bool)GetValue(InheritLayoutDirectionProperty); - } - set - { - SetValue(InheritLayoutDirectionProperty, value); - } - } - - /// - /// Gets/Sets the layout Direction. - /// - /// 6 - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.BaseComponents.ViewLayoutDirectionType LayoutDirection - { - get - { - return (Tizen.NUI.BaseComponents.ViewLayoutDirectionType)GetValue(LayoutDirectionProperty); - } - set - { - SetValue(LayoutDirectionProperty, value); - } - } - - /// - /// Gets or sets the Margin for use in layout. - /// - /// - /// Margin property is supported by Layout algorithms and containers. - /// Please Set Layout if you want to use Margin property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Extents Margin - { - get - { - return (Extents)GetValue(MarginProperty); - } - set - { - SetValue(MarginProperty, value); - } - } - - private MergedStyle _mergedStyle = null; - internal MergedStyle mergedStyle - { - get - { - if (_mergedStyle == null) - { - _mergedStyle = new MergedStyle(GetType(), this); - } - - return _mergedStyle; - } - } - - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Style Style - { - get - { - return (Style)GetValue(StyleProperty); - } - set - { - SetValue(StyleProperty, value); - } - } - - /// - /// [Obsolete("Please do not use! this will be deprecated")] - /// - /// Please do not use! this will be deprecated! - /// Instead please use Padding. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [Obsolete("Please do not use! this will be deprecated, instead please use Padding.")] - [EditorBrowsable(EditorBrowsableState.Never)] - public Extents PaddingEX - { - get - { - return view.PaddingEX; - } - set - { - view.PaddingEX = value; - } - } - - /// - /// Perform an action on a visual registered to this view.
- /// Visuals will have actions. This API is used to perform one of these actions with the given attributes. - ///
- /// The Property index of the visual. - /// The action to perform. See Visual to find the supported actions. - /// Optional attributes for the action. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes) - { - view.DoAction(propertyIndexOfVisual, propertyIndexOfActionId, attributes); - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VisualView.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VisualView.cs deleted file mode 100755 index a54c6f1be..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseComponents/VisualView.cs +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) 2017 Samsung Electronics Co., Ltd. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// 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; -using System.Text; -using System.Runtime.InteropServices; -using System.Collections.Generic; -using System.Linq; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml.Forms.BaseComponents -{ - /// - /// A visual view control if a user adds any visual to it. - /// - /// - /// Example: - /// - /// VisualView _visualView = new VisualView(); - /// ImageVisualMap imageVisualMap1 = new ImageVisualMap(); - /// imageVisualMap1.URL = "./NUISample/res/images/image-1.jpg"; - /// imageVisualMap1.VisualSize = new Vector2( 300.0f, 300.0f ); - /// imageVisualMap1.Offset = new Vector2( 50.0f, 50.0f ); - /// imageVisualMap1.OffsetSizeMode = new Vector4( 1.0f, 1.0f, 1.0f, 1.0f ); - /// imageVisualMap1.Origin = AlignType.TOP_BEGIN; - /// imageVisualMap1.AnchorPoint = AlignType.TOP_BEGIN; - /// _visualView.AddVisual("imageVisual1", imageVisualMap1); - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class VisualView : CustomView - { - private Tizen.NUI.BaseComponents.VisualView _visualView; - internal Tizen.NUI.BaseComponents.VisualView visualView - { - get - { - if (null == _visualView) - { - _visualView = handleInstance as Tizen.NUI.BaseComponents.VisualView; - } - - return _visualView; - } - } - - /// - /// Constructor. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public VisualView() : base(typeof(VisualView).FullName, CustomViewBehaviour.ViewBehaviourDefault | CustomViewBehaviour.RequiresTouchEventsSupport) - { - } - - /// - /// Gets the total number of visuals which are added by users. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int NumberOfVisuals - { - get - { - return visualView.NumberOfVisuals; - } - } - - /// - /// Adds or updates a visual to visual view. - /// - /// The name of a visual to add. If a name is added to an existing visual name, the visual will be replaced. - /// The property map of a visual to create. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void AddVisual(string visualName, VisualMap visualMap) - { - visualView.AddVisual(visualName, visualMap); - } - - /// - /// Removes a visual by name. - /// - /// The name of a visual to remove. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveVisual(string visualName) - { - visualView.RemoveVisual(visualName); - } - - /// - /// Removes all visuals of the visual view. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveAll() - { - visualView.RemoveAll(); - } - - /// - /// Overrides the method of OnRelayout() for CustomView class.
- /// Called after the size negotiation has been finished for this control.
- /// The control is expected to assign this given size to itself or its children.
- /// Should be overridden by derived classes if they need to layout actors differently after certain operations like add or remove actors, resize, or after changing specific properties.
- ///
- /// As this function is called from inside the size negotiation algorithm, you cannot call RequestRelayout (the call would just be ignored). - /// The allocated size. - /// The control should add actors to this container that it is not able to allocate a size for. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override void OnRelayout(Vector2 size, RelayoutContainer container) - { - visualView.OnRelayout(size, container); - } - - /// - /// Creates a visual animation (transition) with the input parameters. - /// - /// The visual map to animation. - /// The property of visual to animation. - /// The destination value of property after animation. - /// The start time of visual animation. - /// The end time of visual animation. - /// The alpha function of visual animation. - /// The initial property value of visual animation. - /// Animation instance - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Animation AnimateVisual(VisualMap target, string property, object destinationValue, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialValue = null) - { - return visualView.AnimateVisual(target, property, destinationValue, startTime, endTime, alphaFunction, initialValue); - } - - /// - /// Adds a group visual animation (transition) map with the input parameters. - /// - /// The visual map to animation. - /// The property of visual to animation. - /// The destination value of property after animation. - /// The start time of visual animation. - /// The end time of visual animation. - /// The alpha function of visual animation. - /// The initial property value of visual animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void AnimateVisualAdd(VisualMap target, string property, object destinationValue, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialValue = null) - { - visualView.AnimateVisualAdd(target, property, destinationValue, startTime, endTime, alphaFunction, initialValue); - } - - /// - /// Finishes to add a visual animation (transition) map and creates a transition animation. - /// - /// Animation instance. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Animation AnimateVisualAddFinish() - { - return visualView.AnimateVisualAddFinish(); - } - - /// - /// temporary fix to pass TCT. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Animation VisualAnimate(Tizen.NUI.VisualAnimator visualMap) - { - return visualView.VisualAnimate(visualMap); - } - //temporary fix to pass TCT - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/BaseHandle.cs b/src/Tizen.NUI.Xaml/src/public/Forms/BaseHandle.cs deleted file mode 100755 index a51d68640..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/BaseHandle.cs +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.Collections.Generic; -using System.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.Forms -{ - /// - /// BaseHandle is a handle to an internal Dali resource. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class BaseHandle : Element, global::System.IDisposable - { - static private Dictionary nuiInstanceToInstanceDict = new Dictionary(); - - /// - /// Get Xaml handle by nui handle. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - static public BaseHandle GetHandle(Tizen.NUI.BaseHandle nuiInstance) - { - BaseHandle ret; - nuiInstanceToInstanceDict.TryGetValue(nuiInstance, out ret); - - return ret; - } - - static private void RemoveHandle(Tizen.NUI.BaseHandle nuiInstance) - { - nuiInstanceToInstanceDict.Remove(nuiInstance); - } - - private Tizen.NUI.BaseHandle handle; - - /// - /// Get nui handle. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.BaseHandle handleInstance - { - get - { - return handle; - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - protected void SetNUIInstance(Tizen.NUI.BaseHandle _handle) - { - if (handle != _handle) - { - handle = _handle; - - if (null != handle) - { - nuiInstanceToInstanceDict.Add(handle, this); - } - } - } - - internal BaseHandle(Tizen.NUI.BaseHandle nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// - /// Event when a property is set. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event PropertyChangedEventHandler PropertySet - { - add - { - handle.PropertySet += value; - } - remove - { - handle.PropertySet -= value; - } - } - - /// - /// Returns the bool value true to indicate that an operand is true and returns false otherwise. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator true(BaseHandle handle) - { - if (BaseHandle.ReferenceEquals(handle, null)) - { - return false; - } - else - { - return handle.handle.HasBody(); - } - } - - /// - /// Returns the bool false to indicate that an operand is false and returns true otherwise. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator false(BaseHandle handle) - { - if (BaseHandle.ReferenceEquals(handle, null)) - { - return true; - } - else - { - return !handle.handle.HasBody(); - } - } - - /// - /// Explicit conversion from Handle to bool. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static explicit operator bool(BaseHandle handle) - { - if (BaseHandle.ReferenceEquals(handle, null)) - { - return false; - } - else - { - return handle.handle.HasBody(); - } - } - - /// - /// Equality operator - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator ==(BaseHandle x, BaseHandle y) - { - if (BaseHandle.ReferenceEquals(x, null) && BaseHandle.ReferenceEquals(y, null)) - { - return true; - } - else if (BaseHandle.ReferenceEquals(x, null) || BaseHandle.ReferenceEquals(y, null)) - { - return false; - } - else - { - return x.handle == y.handle; - } - } - - /// - /// Inequality operator. Returns Null if either operand is Null - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !=(BaseHandle x, BaseHandle y) - { - return !(x == y); - } - - /// - /// Logical AND operator.
- /// It's possible when doing a operator this function (opBitwiseAnd) is never called due to short circuiting.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static BaseHandle operator &(BaseHandle x, BaseHandle y) - { - if (x == y) - { - return x; - } - return null; - } - - /// - /// Logical OR operator for ||.
- /// It's possible when doing a || this function (opBitwiseOr) is never called due to short circuiting.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static BaseHandle operator |(BaseHandle x, BaseHandle y) - { - if (!BaseHandle.ReferenceEquals(x, null) || !BaseHandle.ReferenceEquals(y, null)) - { - if (x.HasBody()) - { - return x; - } - if (y.HasBody()) - { - return y; - } - return null; - } - return null; - } - - /// - /// Logical ! operator - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static bool operator !(BaseHandle x) - { - // if the C# object is null, return true - if (BaseHandle.ReferenceEquals(x, null)) - { - return true; - } - if (x.HasBody()) - { - return false; - } - return true; - } - - /// - /// Equals - /// - /// The object should be compared. - /// True if equal. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object o) - { - return base.Equals(o); - } - - /// - /// Gets the the hash code of this baseHandle. - /// - /// The hash code. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() - { - return base.GetHashCode(); - } - - /// - /// Dispose. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Dispose() - { - BaseHandle.RemoveHandle(handle); - handle.Dispose(); - } - - /// - /// Performs an action on this object with the given action name and attributes. - /// - /// The command for the action. - /// The list of attributes for the action. - /// The action is performed by the object or not. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool DoAction(string actionName, PropertyMap attributes) - { - return handle.DoAction(actionName, attributes); - } - - /// - /// Returns the type name for the Handle.
- /// Will return an empty string if the typename does not exist. This will happen for types that - /// have not registered with type-registry. - ///
- /// The type name. Empty string if the typename does not exist. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GetTypeName() - { - return handle.GetTypeName(); - } - - /// - /// Returns the type info for the Handle.
- ///
- /// The type information. - /// True If get the type info. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetTypeInfo(TypeInfo info) - { - return handle.GetTypeInfo(info); - } - - /// - /// Resets the handle. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Reset() - { - handle.Reset(); - } - - /// - /// To check the BaseHandle instance is equal or not. - /// - /// The baseHandle instance. - /// True If equal. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool EqualTo(BaseHandle rhs) - { - return handle.EqualTo(rhs.handle); - } - - /// - /// To check the BaseHandle instance is equal or not. - /// - /// The baseHandle instance. - /// True If not equal. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool NotEqualTo(BaseHandle rhs) - { - return handle.NotEqualTo(rhs.handle); - } - - /// - /// To check the BaseHandle instance has body or not. - /// - /// True If the baseHandle instance has body. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool HasBody() - { - if (BaseHandle.ReferenceEquals(handle, null)) - { - return false; - } - else - { - return handle.HasBody(); - } - } - - /// - /// To check the BaseHandle instance is equal or not. - /// - /// The baseHandle instance. - /// True If equal. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsEqual(BaseHandle rhs) - { - return handle.IsEqual(rhs.handle); - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/Container.cs b/src/Tizen.NUI.Xaml/src/public/Forms/Container.cs deleted file mode 100755 index ee1b209d9..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/Container.cs +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.Collections.Generic; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using Tizen.NUI.XamlBinding; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml.Forms -{ - /// - /// The Container is an abstract class to be inherited from by classes that desire to have views - /// added to them. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ContentProperty("Children")] - public abstract class Container : BaseHandle - { - private Tizen.NUI.Container instance; - - internal Container(Tizen.NUI.Container nuiInstance) : base(nuiInstance) - { - instance = nuiInstance; - SetNUIInstance(nuiInstance); - } - - /// - /// Gets the parent container. - /// Read only - /// - ///
The child container has been initialized.
- /// The parent container. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new Container Parent - { - get - { - return GetParent(); - } - } - - /// - /// Gets the number of children for this container. - /// Read only - /// - ///
The container has been initialized.
- /// The number of children. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint ChildCount - { - get - { - return GetChildCount(); - } - } - - /// - /// Adds a child view to this Container. - /// - ///
This Container (the parent) has been initialized. The child view has been initialized. The child view is not the same as the parent view.
- /// The child will be referenced by its parent. This means that the child will be kept alive, even if the handle passed into this method is reset or destroyed. - /// If the child already has a parent, it will be removed from the old parent and reparented to this view. This may change child's position, color, scale, etc. as it now inherits them from this view. - /// The child view to add. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract void Add(View view); - - /// - /// Removes a child view from this view. If the view was not a child of this view, this is a no-op. - /// - ///
This View(the parent) has been initialized. The child view is not the same as the parent view.
- /// The view to remove - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract void Remove(View view); - - /// - /// Retrieves the child view by the index. - /// - ///
The view has been initialized.
- /// The index of the child to retrieve. - /// The view for the given index or empty handle if children are not initialized. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract View GetChildAt(uint index); - - /// - /// Gets the parent of this container. - /// - ///
The child container has been initialized.
- /// The parent container. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract Container GetParent(); - - /// - /// Gets the number of children for this container. - /// - ///
The container has been initialized.
- /// The number of children. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract UInt32 GetChildCount(); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public List Children - { - get - { - List children = new List(); - - foreach (Tizen.NUI.BaseComponents.View view in instance.Children) - { - View realView = BaseHandle.GetHandle(view) as View; - children.Add(realView); - } - - return children; - } - } - } -} // namespace Tizen.NUI diff --git a/src/Tizen.NUI.Xaml/src/public/Forms/Layer.cs b/src/Tizen.NUI.Xaml/src/public/Forms/Layer.cs deleted file mode 100755 index 301f75164..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Forms/Layer.cs +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using System.ComponentModel; -using Tizen.NUI; - -namespace Tizen.NUI.Xaml.Forms -{ - /// - /// Layers provide a mechanism for overlaying groups of actors on top of each other. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Layer : Container - { - private Tizen.NUI.Layer _layer; - private Tizen.NUI.Layer layer - { - get - { - if (null == _layer) - { - _layer = handleInstance as Tizen.NUI.Layer; - } - - return _layer; - } - } - - /// - /// Creates a Xaml Layer object. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Layer() : this(new Tizen.NUI.Layer()) - { - } - - internal Layer(Tizen.NUI.Layer nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// - /// Layer behavior, type String (Layer.LayerBehavior). - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.Layer.LayerBehavior Behavior - { - get - { - return layer.Behavior; - } - set - { - layer.Behavior = value; - } - } - - /// - /// Sets the viewport (in window coordinates), type rectangle. - /// The contents of the layer will not be visible outside this box, when ViewportEnabled is true. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rectangle Viewport - { - get - { - return layer.Viewport; - } - set - { - layer.Viewport = value; - } - } - - /// - /// Retrieves and sets the layer's opacity.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float Opacity - { - get - { - return layer.Opacity; - } - set - { - layer.Opacity = value; - } - } - - /// - /// Retrieves and sets the layer's visibility. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Visibility - { - get - { - return layer.Visibility; - } - set - { - layer.Visibility = value; - } - } - - /// - /// Get the number of children held by the layer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new uint ChildCount - { - get - { - return Convert.ToUInt32(layer.Children.Count); - } - } - - /// - /// Gets or sets the layer's name. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Name - { - get - { - return layer.Name; - } - set - { - layer.Name = value; - } - } - - /// - /// Queries the depth of the layer.
- /// 0 is the bottommost layer, higher number is on the top.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint Depth - { - get - { - return layer.Depth; - } - } - - /// From the Container base class. - - /// - /// Adds a child view to this layer. - /// - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override void Add(View child) - { - layer.Add(child.view); - } - - /// - /// Removes a child view from this layer. If the view was not a child of this layer, this is a no-op. - /// - /// - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override void Remove(View child) - { - layer.Remove(child.view); - } - - /// - /// Retrieves a child view by the index. - /// - ///
The view has been initialized.
- /// The index of the child to retrieve. - /// The view for the given index or empty handle if children not initialized. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override View GetChildAt(uint index) - { - Tizen.NUI.BaseComponents.View ret = layer.GetChildAt(index); - return BaseHandle.GetHandle(ret) as View; - } - - /// - /// Get parent of the layer. - /// - /// The view's container - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override Container GetParent() - { - return null; - } - - /// - /// Get the child count of the layer. - /// - /// The child count of the layer. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override uint GetChildCount() - { - return Convert.ToUInt32(layer.Children.Count); - } - - /// - /// Downcasts a handle to layer handle. - /// - /// 6 - /// Please do not use! this will be deprecated! - /// Instead please use as keyword. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")] - [EditorBrowsable(EditorBrowsableState.Never)] - public static Layer DownCast(BaseHandle handle) - { - Tizen.NUI.Layer ret = Tizen.NUI.Layer.DownCast(handle.handleInstance); - return BaseHandle.GetHandle(ret) as Layer; - } - - /// - /// Search through this layer's hierarchy for a view with the given unique ID. - /// - ///
This layer (the parent) has been initialized.
- /// The actor itself is also considered in the search. - /// The id of the child to find - /// A handle to the view if found, or an empty handle if not. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View FindChildById(uint id) - { - Tizen.NUI.BaseComponents.View ret = layer.FindChildById(id); - return BaseHandle.GetHandle(ret) as View; - } - - /// - /// Increments the depth of the layer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Raise() - { - layer.Raise(); - } - - /// - /// Decrements the depth of the layer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Lower() - { - layer.Lower(); - } - - /// - /// Raises the layer to the top. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RaiseToTop() - { - layer.RaiseToTop(); - } - - /// - /// Lowers the layer to the bottom. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void LowerToBottom() - { - layer.LowerToBottom(); - } - - /// - /// Moves the layer directly above the given layer.
- /// After the call, this layer's depth will be immediately above target.
- ///
- /// The layer to get on top of. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void MoveAbove(Layer target) - { - layer.MoveAbove(target.layer); - } - - /// - /// Moves the layer directly below the given layer.
- /// After the call, this layer's depth will be immediately below target.
- ///
- /// The layer to get below of. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void MoveBelow(Layer target) - { - layer.MoveBelow(target.layer); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/Button.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/Button.cs deleted file mode 100755 index 9c5234ee2..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/Button.cs +++ /dev/null @@ -1,750 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Runtime.InteropServices; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.UIComponents.Button; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The Button class is a base class for different kinds of buttons.
- /// This class provides the disabled property and the clicked signal.
- /// The clicked event handler is emitted when the button is touched, and the touch point doesn't leave the boundary of the button.
- /// When the disabled property is set to true, no signal is emitted.
- /// The 'Visual' describes not just traditional images like PNG and BMP, but also refers to whatever is used to show the button. It could be a color, gradient, or some other kind of renderer.
- /// The button's appearance can be modified by setting properties for the various visuals or images.
- /// It is not mandatory to set all the visuals. A button could be defined only by setting its background visual, or by setting its background and selected visuals.
- /// The button visual is shown over the background visual.
- /// When pressed, the unselected visuals are replaced by the selected visuals.
- /// The text label is always placed on the top of all images.
- /// When the button is disabled, the background button and the selected visuals are replaced by their disabled visuals.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Button : Tizen.NUI.Xaml.Forms.BaseComponents.View - { - private Tizen.NUI.UIComponents.Button _button; - internal Tizen.NUI.UIComponents.Button button - { - get - { - if (null == _button) - { - _button = handleInstance as Tizen.NUI.UIComponents.Button; - } - - return _button; - } - } - - /// - /// Creates an uninitialized button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Button() : this(new Tizen.NUI.UIComponents.Button()) - { - } - - internal Button(Tizen.NUI.UIComponents.Button nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedVisualProperty = BindableProperty.Create("UnselectedVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.UnselectedVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.UnselectedVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedVisualProperty = BindableProperty.Create("SelectedVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.SelectedVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.SelectedVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledSelectedVisualProperty = BindableProperty.Create("DisabledSelectedVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.DisabledSelectedVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.DisabledSelectedVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledUnselectedVisualProperty = BindableProperty.Create("DisabledUnselectedVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.DisabledUnselectedVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.DisabledUnselectedVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedBackgroundVisualProperty = BindableProperty.Create("UnselectedBackgroundVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.UnselectedBackgroundVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.UnselectedBackgroundVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedBackgroundVisualProperty = BindableProperty.Create("SelectedBackgroundVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.SelectedBackgroundVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.SelectedBackgroundVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledUnselectedBackgroundVisualProperty = BindableProperty.Create("DisabledUnselectedBackgroundVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.DisabledUnselectedBackgroundVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.DisabledUnselectedBackgroundVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledSelectedBackgroundVisualProperty = BindableProperty.Create("DisabledSelectedBackgroundVisual", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.DisabledSelectedBackgroundVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.DisabledSelectedBackgroundVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelRelativeAlignmentProperty = BindableProperty.Create("LabelRelativeAlignment", typeof(Align), typeof(Button), Align.End, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.LabelRelativeAlignment = (Align)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.LabelRelativeAlignment; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelPaddingProperty = BindableProperty.Create("LabelPadding", typeof(Vector4), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.LabelPadding = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.LabelPadding; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ForegroundVisualPaddingProperty = BindableProperty.Create("ForegroundVisualPadding", typeof(Vector4), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.ForegroundVisualPadding = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.ForegroundVisualPadding; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoRepeatingProperty = BindableProperty.Create("AutoRepeating", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.AutoRepeating = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.AutoRepeating; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty InitialAutoRepeatingDelayProperty = BindableProperty.Create("InitialAutoRepeatingDelay", typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.InitialAutoRepeatingDelay = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.InitialAutoRepeatingDelay; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty NextAutoRepeatingDelayProperty = BindableProperty.Create("NextAutoRepeatingDelay", typeof(float), typeof(Button), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.NextAutoRepeatingDelay = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.NextAutoRepeatingDelay; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TogglableProperty = BindableProperty.Create("Togglable", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.Togglable = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.Togglable; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedProperty = BindableProperty.Create("Selected", typeof(bool), typeof(Button), false, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.Selected = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.Selected; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UnselectedColorProperty = BindableProperty.Create("UnselectedColor", typeof(Color), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.UnselectedColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.UnselectedColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SelectedColorProperty = BindableProperty.Create("SelectedColor", typeof(Color), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.SelectedColor = (Color)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.SelectedColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelProperty = BindableProperty.Create("Label", typeof(PropertyMap), typeof(Button), null, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.Label = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.Label; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelTextProperty = BindableProperty.Create("LabelText", typeof(string), typeof(Button), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var button = ((Button)bindable).button; - button.LabelText = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var button = ((Button)bindable).button; - return button.LabelText; - }); - - /// - /// The Clicked event will be triggered when the button is touched and the touch point doesn't leave the boundary of the button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType Clicked - { - add - { - button.Clicked += value; - } - - remove - { - button.Clicked -= value; - } - } - - /// - /// The Pressed event will be triggered when the button is touched. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType Pressed - { - add - { - button.Pressed += value; - } - - remove - { - button.Pressed -= value; - } - } - - /// - /// The Released event will be triggered when the button is touched and the touch point leaves the boundary of the button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType Released - { - add - { - button.Released += value; - } - - remove - { - button.Released -= value; - } - } - - /// - /// The StateChanged event will be triggered when the button's state is changed. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType StateChanged - { - add - { - button.StateChanged += value; - } - - remove - { - button.StateChanged -= value; - } - } - - /// - /// Gets or sets the unselected button foreground or icon visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap UnselectedVisual - { - get - { - return (PropertyMap)GetValue(UnselectedVisualProperty); - } - set - { - SetValue(UnselectedVisualProperty, value); - } - } - - /// - /// Gets or sets the selected button foreground or icon visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectedVisual - { - get - { - return (PropertyMap)GetValue(SelectedVisualProperty); - } - set - { - SetValue(SelectedVisualProperty, value); - } - } - - /// - /// Gets or sets the disabled selected state foreground or icon button visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap DisabledSelectedVisual - { - get - { - return (PropertyMap)GetValue(DisabledSelectedVisualProperty); - } - set - { - SetValue(DisabledSelectedVisualProperty, value); - } - } - - /// - /// Gets or sets the disabled unselected state foreground or icon visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap DisabledUnselectedVisual - { - get - { - return (PropertyMap)GetValue(DisabledUnselectedVisualProperty); - } - set - { - SetValue(DisabledUnselectedVisualProperty, value); - } - } - - /// - /// Gets or sets the disabled unselected state background button visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap UnselectedBackgroundVisual - { - get - { - return (PropertyMap)GetValue(UnselectedBackgroundVisualProperty); - } - set - { - SetValue(UnselectedBackgroundVisualProperty, value); - } - } - - /// - /// Gets or sets the selected background button visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SelectedBackgroundVisual - { - get - { - return (PropertyMap)GetValue(SelectedBackgroundVisualProperty); - } - set - { - SetValue(SelectedBackgroundVisualProperty, value); - } - } - - /// - /// Gets or sets the disabled while unselected background button visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap DisabledUnselectedBackgroundVisual - { - get - { - return (PropertyMap)GetValue(DisabledUnselectedBackgroundVisualProperty); - } - set - { - SetValue(DisabledUnselectedBackgroundVisualProperty, value); - } - } - - /// - /// Gets or sets the disabled while selected background button visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap DisabledSelectedBackgroundVisual - { - get - { - return (PropertyMap)GetValue(DisabledSelectedBackgroundVisualProperty); - } - set - { - SetValue(DisabledSelectedBackgroundVisualProperty, value); - } - } - - /// - /// Gets or sets the position of the the label in relation to the foreground or icon, if both present. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Align LabelRelativeAlignment - { - get - { - return (Align)GetValue(LabelRelativeAlignmentProperty); - } - set - { - SetValue(LabelRelativeAlignmentProperty, value); - } - } - - /// - /// Gets or sets the padding around the text. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 LabelPadding - { - get - { - return (Vector4)GetValue(LabelPaddingProperty); - } - set - { - SetValue(LabelPaddingProperty, value); - } - } - - /// - /// Gets or sets the padding around the foreground visual. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 ForegroundVisualPadding - { - get - { - return (Vector4)GetValue(ForegroundVisualPaddingProperty); - } - set - { - SetValue(ForegroundVisualPaddingProperty, value); - } - } - - /// - /// If the autorepeating property is set to true, then the togglable property is set to false. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool AutoRepeating - { - get - { - return (bool)GetValue(AutoRepeatingProperty); - } - set - { - SetValue(AutoRepeatingProperty, value); - } - } - - /// - /// By default, this value is set to 0.15 seconds. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float InitialAutoRepeatingDelay - { - get - { - return (float)GetValue(InitialAutoRepeatingDelayProperty); - } - set - { - SetValue(InitialAutoRepeatingDelayProperty, value); - } - } - - /// - /// By default, this value is set to 0.05 seconds. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float NextAutoRepeatingDelay - { - get - { - return (float)GetValue(NextAutoRepeatingDelayProperty); - } - set - { - SetValue(NextAutoRepeatingDelayProperty, value); - } - } - - /// - /// If the togglable property is set to true, then the autorepeating property is set to false. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Togglable - { - get - { - return (bool)GetValue(TogglableProperty); - } - set - { - SetValue(TogglableProperty, value); - } - } - - /// - /// Gets or sets the togglable button as either selected or unselected, togglable property must be set to true. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Selected - { - get - { - return (bool)GetValue(SelectedProperty); - } - set - { - SetValue(SelectedProperty, value); - } - } - - /// - /// Gets or sets the unselected color. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color UnselectedColor - { - get - { - return (Color)GetValue(UnselectedColorProperty); - } - set - { - SetValue(UnselectedColorProperty, value); - } - } - - /// - /// Gets or sets the selected color. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Color SelectedColor - { - get - { - return (Color)GetValue(SelectedColorProperty); - } - set - { - SetValue(SelectedColorProperty, value); - } - } - - /// - /// Gets or sets the label. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Label - { - get - { - return (PropertyMap)GetValue(LabelProperty); - } - set - { - SetValue(LabelProperty, value); - } - } - - /// - /// Gets or sets the text of the label. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string LabelText - { - get - { - return (string)GetValue(LabelTextProperty); - } - set - { - SetValue(LabelTextProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/CheckBoxButton.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/CheckBoxButton.cs deleted file mode 100755 index b95120c7b..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/CheckBoxButton.cs +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; - -namespace Tizen.NUI.Xaml.UIComponents -{ - - /// - /// The CheckBoxButton provides a checkbox button which the user can check or uncheck.
- /// By default, the CheckBoxButton emits a Button.Clicked event when the button changes its state to selected or unselected.
- /// The button's appearance could be modified by Button.UnselectedImage, Button.BackgroundImage, Button.SelectedImage, Button.SelectedBackgroundImage, Button.DisabledBackgroundImage, Button.DisabledImage, and Button.DisabledSelectedImage.
- /// When the button is not disabled, if it's not selected, it only shows the background image.
- /// The selected image is shown over the background image when the box is selected (background image is not replaced by \e selected image).
- /// When the button is disabled, the background image and the selected image are replaced by disabled images.
- /// ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class CheckBoxButton : Button - { - private Tizen.NUI.UIComponents.CheckBoxButton _checkBoxButton; - internal Tizen.NUI.UIComponents.CheckBoxButton checkBoxButton - { - get - { - if (null == _checkBoxButton) - { - _checkBoxButton = handleInstance as Tizen.NUI.UIComponents.CheckBoxButton; - } - - return _checkBoxButton; - } - } - - /// - /// Creates an initialized CheckBoxButton. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public CheckBoxButton() : this(new Tizen.NUI.UIComponents.CheckBoxButton()) - { - } - - internal CheckBoxButton(Tizen.NUI.UIComponents.CheckBoxButton nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/Popup.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/Popup.cs deleted file mode 100755 index 704ac1448..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/Popup.cs +++ /dev/null @@ -1,828 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Runtime.InteropServices; -using Tizen.NUI; -using Tizen.NUI.BaseComponents; -using Tizen.NUI.XamlBinding; -using static Tizen.NUI.UIComponents.Popup; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Popup : Tizen.NUI.Xaml.Forms.BaseComponents.View - { - private Tizen.NUI.UIComponents.Popup _popup; - internal Tizen.NUI.UIComponents.Popup popup - { - get - { - if (null == _popup) - { - _popup = handleInstance as Tizen.NUI.UIComponents.Popup; - } - - return _popup; - } - } - - /// - /// Creates the popup. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Popup() : this(new Tizen.NUI.UIComponents.Popup()) - { - } - - internal Popup(Tizen.NUI.UIComponents.Popup nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(PropertyMap), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.Title = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.Title; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty FooterProperty = BindableProperty.Create("Footer", typeof(PropertyMap), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.Footer = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.Footer; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create("DisplayState", typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.DisplayState = (DisplayStateType)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.DisplayState; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create("TouchTransparent", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TouchTransparent = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TouchTransparent; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create("TailVisibility", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailVisibility = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailVisibility; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailPositionProperty = BindableProperty.Create("TailPosition", typeof(Vector3), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailPosition = (Vector3)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailPosition; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create("ContextualMode", typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.ContextualMode = (ContextualModeType)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.ContextualMode; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create("AnimationDuration", typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.AnimationDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.AnimationDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create("AnimationMode", typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.AnimationMode = (AnimationModeType)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.AnimationMode; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create("EntryAnimation", typeof(PropertyMap), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.EntryAnimation = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.EntryAnimation; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create("ExitAnimation", typeof(PropertyMap), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.ExitAnimation = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.ExitAnimation; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create("AutoHideDelay", typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.AutoHideDelay = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.AutoHideDelay; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create("BackingEnabled", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.BackingEnabled = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.BackingEnabled; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty BackingColorProperty = BindableProperty.Create("BackingColor", typeof(Vector4), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.BackingColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.BackingColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create("PopupBackgroundImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.PopupBackgroundImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.PopupBackgroundImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create("PopupBackgroundBorder", typeof(Rectangle), typeof(Popup), null, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.PopupBackgroundBorder = (Rectangle)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.PopupBackgroundBorder; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create("TailUpImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailUpImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailUpImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create("TailDownImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailDownImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailDownImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create("TailLeftImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailLeftImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailLeftImage; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create("TailRightImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => - { - var popup = ((Popup)bindable).popup; - popup.TailRightImage = (string)newValue; - }, - defaultValueCreator: (bindable) => - { - var popup = ((Popup)bindable).popup; - return popup.TailRightImage; - }); - - /// - /// An event is sent when the user has touched outside the dialog. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler TouchedOutside - { - add - { - popup.TouchedOutside += value; - } - remove - { - popup.TouchedOutside -= value; - } - } - - /// - /// An event is sent when the popup starts showing. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Showing - { - add - { - popup.Showing += value; - } - remove - { - popup.Showing -= value; - } - } - - /// - /// An event is sent when the popup has been fully displayed. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Shown - { - add - { - popup.Shown += value; - } - remove - { - popup.Shown -= value; - } - } - - /// - /// An event is sent when the popup starts to hide. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Hiding - { - add - { - popup.Hiding += value; - } - remove - { - popup.Hiding -= value; - } - } - - /// - /// An event is sent when the popup has been completely hidden. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Hidden - { - add - { - popup.Hidden += value; - } - remove - { - popup.Hidden -= value; - } - } - - /// - /// Sets the content actor. - /// - /// The actor to use. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetContent(Tizen.NUI.Xaml.Forms.BaseComponents.View content) - { - popup.SetContent(content.handleInstance as View); - } - - /// - /// Sets the content actor. - /// - /// The actor to use. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetContent(View content) - { - popup.SetContent(content); - } - - /// - /// Sets the actor to use for the footer in this popup. - /// - /// The footer actor to be added to this popup. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFooter(Tizen.NUI.Xaml.Forms.BaseComponents.View footer) - { - popup.SetFooter(footer.handleInstance as View); - } - - /// - /// Sets the actor to use for the footer in this popup. - /// - /// The footer actor to be added to this popup. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFooter(View footer) - { - popup.SetFooter(footer); - } - - /// - /// Sets the display state of popup.
- /// There are 4 total display states.
- /// Only 2 can be set, but all four can be read for better inspection of the current popup state.
- ///
- /// The other two states are getable, but not setable, and are there for consistency.
- ///
- /// | Value | Setting the state | Getting the state |
- /// |----------|--------------------------------|--------------------------------|
- /// | SHOWN | Show the popup | The popup is fully shown |
- /// | HIDDEN | Hide the popup | The popup is fully hidden |
- /// | SHOWING | | The popup is transitioning in |
- /// | HIDING | | The popup is transitioning out |
- ///
- /// All 4 states changes cause notifications via 4 respective signals that can be connected to.
- ///
- /// The desired display state to change to. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetDisplayState(DisplayStateType displayState) - { - popup.SetDisplayState(displayState); - } - - /// - /// The popup title. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Title - { - get - { - return (PropertyMap)GetValue(TitleProperty); - } - set - { - SetValue(TitleProperty, value); - } - } - - /// - /// The popup footer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap Footer - { - get - { - return (PropertyMap)GetValue(FooterProperty); - } - set - { - SetValue(FooterProperty, value); - } - } - - /// - /// The popup display state. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public DisplayStateType DisplayState - { - get - { - return (DisplayStateType)GetValue(DisplayStateProperty); - } - set - { - SetValue(DisplayStateProperty, value); - } - } - - /// - /// The touch transparent. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool TouchTransparent - { - get - { - return (bool)GetValue(TouchTransparentProperty); - } - set - { - SetValue(TouchTransparentProperty, value); - } - } - - /// - /// The popup tail visibility. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool TailVisibility - { - get - { - return (bool)GetValue(TailVisibilityProperty); - } - set - { - SetValue(TailVisibilityProperty, value); - } - } - - /// - /// The popup tail position. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 TailPosition - { - get - { - return (Vector3)GetValue(TailPositionProperty); - } - set - { - SetValue(TailPositionProperty, value); - } - } - - /// - /// The contextual mode. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ContextualModeType ContextualMode - { - get - { - return (ContextualModeType)GetValue(ContextualModeProperty); - } - set - { - SetValue(ContextualModeProperty, value); - } - } - - /// - /// The animation duration. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float AnimationDuration - { - get - { - return (float)GetValue(AnimationDurationProperty); - } - set - { - SetValue(AnimationDurationProperty, value); - } - } - - /// - /// The animation mode. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AnimationModeType AnimationMode - { - get - { - return (AnimationModeType)GetValue(AnimationModeProperty); - } - set - { - SetValue(AnimationModeProperty, value); - } - } - - /// - /// The entry animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap EntryAnimation - { - get - { - return (PropertyMap)GetValue(EntryAnimationProperty); - } - set - { - SetValue(EntryAnimationProperty, value); - } - } - - /// - /// The exit animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ExitAnimation - { - get - { - return (PropertyMap)GetValue(ExitAnimationProperty); - } - set - { - SetValue(ExitAnimationProperty, value); - } - } - - /// - /// The auto hide delay. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int AutoHideDelay - { - get - { - return (int)GetValue(AutoHideDelayProperty); - } - set - { - SetValue(AutoHideDelayProperty, value); - } - } - - /// - /// The backing enabled. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool BackingEnabled - { - get - { - return (bool)GetValue(BackingEnabledProperty); - } - set - { - SetValue(BackingEnabledProperty, value); - } - } - - /// - /// The backing color. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 BackingColor - { - get - { - return (Vector4)GetValue(BackingColorProperty); - } - set - { - SetValue(BackingColorProperty, value); - } - } - - /// - /// The background image. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string PopupBackgroundImage - { - get - { - return (string)GetValue(PopupBackgroundImageProperty); - } - set - { - SetValue(PopupBackgroundImageProperty, value); - } - } - - /// - /// The background border. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Rectangle PopupBackgroundBorder - { - get - { - return (Rectangle)GetValue(PopupBackgroundBorderProperty); - } - set - { - SetValue(PopupBackgroundBorderProperty, value); - } - } - - /// - /// The tail up image. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TailUpImage - { - get - { - return (string)GetValue(TailUpImageProperty); - } - set - { - SetValue(TailUpImageProperty, value); - } - } - - /// - /// The tail down image. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TailDownImage - { - get - { - return (string)GetValue(TailDownImageProperty); - } - set - { - SetValue(TailDownImageProperty, value); - } - } - - /// - /// The tail left image. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TailLeftImage - { - get - { - return (string)GetValue(TailLeftImageProperty); - } - set - { - SetValue(TailLeftImageProperty, value); - } - } - - /// - /// The tail right image. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string TailRightImage - { - get - { - return (string)GetValue(TailRightImageProperty); - } - set - { - SetValue(TailRightImageProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/ProgressBar.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/ProgressBar.cs deleted file mode 100755 index 145b3efd8..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/ProgressBar.cs +++ /dev/null @@ -1,365 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Runtime.InteropServices; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using static Tizen.NUI.UIComponents.ProgressBar; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The ProgressBar is a control to give the user an indication of the progress of an operation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ProgressBar : View - { - private Tizen.NUI.UIComponents.ProgressBar _progressBar; - internal Tizen.NUI.UIComponents.ProgressBar progressBar - { - get - { - if (null == _progressBar) - { - _progressBar = handleInstance as Tizen.NUI.UIComponents.ProgressBar; - } - - return _progressBar; - } - } - - /// - /// Creates the ProgressBar. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ProgressBar() : this(new Tizen.NUI.UIComponents.ProgressBar()) - { - } - - internal ProgressBar(Tizen.NUI.UIComponents.ProgressBar nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressValueProperty = BindableProperty.Create("ProgressValue", typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.ProgressValue = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.ProgressValue; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryProgressValueProperty = BindableProperty.Create("SecondaryProgressValue", typeof(float), typeof(ProgressBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.SecondaryProgressValue = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.SecondaryProgressValue; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateProperty = BindableProperty.Create("Indeterminate", typeof(bool), typeof(ProgressBar), false, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.Indeterminate = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.Indeterminate; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create("TrackVisual", typeof(PropertyMap), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.TrackVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.TrackVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create("ProgressVisual", typeof(PropertyMap), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.ProgressVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.ProgressVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SecondaryProgressVisualProperty = BindableProperty.Create("SecondaryProgressVisual", typeof(PropertyMap), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.SecondaryProgressVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.SecondaryProgressVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateVisualProperty = BindableProperty.Create("IndeterminateVisual", typeof(PropertyMap), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.IndeterminateVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.IndeterminateVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndeterminateVisualAnimationProperty = BindableProperty.Create("IndeterminateVisualAnimation", typeof(PropertyArray), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.IndeterminateVisualAnimation = (PropertyArray)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.IndeterminateVisualAnimation; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LabelVisualProperty = BindableProperty.Create("LabelVisual", typeof(PropertyMap), typeof(ProgressBar), null, propertyChanged: (bindable, oldValue, newValue) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - progressBar.LabelVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var progressBar = ((ProgressBar)bindable).progressBar; - return progressBar.LabelVisual; - }); - - /// - /// The event is sent when the ProgressBar value changes. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ValueChanged - { - add - { - progressBar.ValueChanged += value; - } - remove - { - progressBar.ValueChanged -= value; - } - } - - /// - /// The progress value of the progress bar, the progress runs from 0 to 1.
- /// If the value is set to 0, then the progress bar will be set to beginning.
- /// If the value is set to 1, then the progress bar will be set to end.
- /// Any value outside the range is ignored.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ProgressValue - { - get - { - return (float)GetValue(ProgressValueProperty); - } - set - { - SetValue(ProgressValueProperty, value); - } - } - - /// - /// The secondary progress value of the progress bar, the secondary progress runs from 0 to 1.
- /// Optional. If not supplied, the default is 0.
- /// If the value is set to 0, then the progress bar will be set secondary progress to beginning.
- /// If the value is set to 1, then the progress bar will be set secondary progress to end.
- /// Any value outside of the range is ignored.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float SecondaryProgressValue - { - get - { - return (float)GetValue(SecondaryProgressValueProperty); - } - set - { - SetValue(SecondaryProgressValueProperty, value); - } - } - - /// - /// Sets the progress bar as \e indeterminate state. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Indeterminate - { - get - { - return (bool)GetValue(IndeterminateProperty); - } - set - { - SetValue(IndeterminateProperty, value); - } - } - - /// - /// The track visual value of progress bar, it's full progress area, and it's shown behind the PROGRESS_VISUAL.
- /// Optional. If not supplied, the default track visual will be shown.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap TrackVisual - { - get - { - return (PropertyMap)GetValue(TrackVisualProperty); - } - set - { - SetValue(TrackVisualProperty, value); - } - } - - /// - /// The progress visual value of the progress bar, the size of the progress visual is changed based on the PROGRESS_VALUE.
- /// Optional. If not supplied, then the default progress visual will be shown.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ProgressVisual - { - get - { - return (PropertyMap)GetValue(ProgressVisualProperty); - } - set - { - SetValue(ProgressVisualProperty, value); - } - } - - /// - /// The secondary progress visual of the progress bar, the size of the secondary progress visual is changed based on the SECONDARY_PROGRESS_VALUE.
- /// Optional. If not supplied, then the secondary progress visual will not be shown.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap SecondaryProgressVisual - { - get - { - return (PropertyMap)GetValue(SecondaryProgressVisualProperty); - } - set - { - SetValue(SecondaryProgressVisualProperty, value); - } - } - - /// - /// The indeterminate visual of the progress bar.
- /// Optional. If not supplied, then the default indeterminate visual will be shown.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap IndeterminateVisual - { - get - { - return (PropertyMap)GetValue(IndeterminateVisualProperty); - } - set - { - SetValue(IndeterminateVisualProperty, value); - } - } - - /// - /// The transition data for the indeterminate visual animation.
- /// Optional. If not supplied, then the default animation will be played.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyArray IndeterminateVisualAnimation - { - get - { - return (PropertyArray)GetValue(IndeterminateVisualAnimationProperty); - } - set - { - SetValue(IndeterminateVisualAnimationProperty, value); - } - } - - /// - /// The label visual of the progress bar. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap LabelVisual - { - get - { - return (PropertyMap)GetValue(LabelVisualProperty); - } - set - { - SetValue(LabelVisualProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/PushButton.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/PushButton.cs deleted file mode 100755 index 31ffaa9cd..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/PushButton.cs +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Windows.Input; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The PushButton changes its appearance when it is pressed, and returns to its original when it is released. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class PushButton : Button - { - private Tizen.NUI.UIComponents.PushButton _pushButton; - internal Tizen.NUI.UIComponents.PushButton pushButton - { - get - { - if (null == _pushButton) - { - _pushButton = handleInstance as Tizen.NUI.UIComponents.PushButton; - } - - return _pushButton; - } - } - - /// - /// Creates the PushButton. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PushButton() : this(new Tizen.NUI.UIComponents.PushButton()) - { - } - - internal PushButton(Tizen.NUI.UIComponents.PushButton nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CommandProperty = BindableProperty.Create("Command", typeof(ICommand), typeof(PushButton), null, - BindingMode.OneWay, null, null, null, null, null as BindableProperty.CreateDefaultValueDelegate); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CommandParameterProperty = BindableProperty.Create("CommandParameter", typeof(object), typeof(PushButton), null, - BindingMode.OneWay, null, null, null, null, null as BindableProperty.CreateDefaultValueDelegate); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ICommand Command - { - get - { - return (ICommand)base.GetValue(PushButton.CommandProperty); - } - set - { - base.SetValue(PushButton.CommandProperty, value); - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object CommandParameter - { - get - { - return base.GetValue(PushButton.CommandParameterProperty); - } - set - { - base.SetValue(PushButton.CommandParameterProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/RadioButton.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/RadioButton.cs deleted file mode 100755 index 711ae82db..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/RadioButton.cs +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright(c) 2017 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; - -namespace Tizen.NUI.Xaml.UIComponents -{ - - /// - /// A RadioButton provides a radio button with two states, \e selected or \e unselected.
- /// Radio buttons are designed to select one of the many options at the same time.
- /// A RadioButton can change its current state using the selected.
- ///
- /// RadioButtons can be grouped.
- /// Two or more RadioButtons are in one group when they have this same parent.
- /// In each groups only one RadioButton can be \e selected at a given time.
- /// So when a RadioButton is set to \e selected, other RadioButtons in its group are set to \e unselected.
- /// When \e selected RadioButton is set to \e unselected, no other RadioButtons in this group are set to \e selected.
- ///
- /// The StateChanged event is emitted when the RadioButton change its state to \e selected or \e unselected.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class RadioButton : Button - { - private Tizen.NUI.UIComponents.RadioButton _radioButton; - internal Tizen.NUI.UIComponents.RadioButton radioButton - { - get - { - if (null == _radioButton) - { - _radioButton = handleInstance as Tizen.NUI.UIComponents.RadioButton; - } - - return _radioButton; - } - } - - /// - /// Creates an uninitialized RadioButton. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public RadioButton() : this(new Tizen.NUI.UIComponents.RadioButton()) - { - } - - internal RadioButton(Tizen.NUI.UIComponents.RadioButton nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollBar.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollBar.cs deleted file mode 100755 index fe567fc55..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollBar.cs +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Runtime.InteropServices; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using static Tizen.NUI.UIComponents.ScrollBar; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The ScrollBar is a UI component that can be linked to the scrollable objects - /// indicating the current scroll position of the scrollable object.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ScrollBar : View - { - private Tizen.NUI.UIComponents.ScrollBar _scrollBar; - internal Tizen.NUI.UIComponents.ScrollBar scrollBar - { - get - { - if (null == _scrollBar) - { - _scrollBar = handleInstance as Tizen.NUI.UIComponents.ScrollBar; - } - - return _scrollBar; - } - } - - /// - /// Creates an uninitialized scrollbar. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ScrollBar() : this(new Tizen.NUI.UIComponents.ScrollBar()) - { - } - - internal ScrollBar(Tizen.NUI.UIComponents.ScrollBar nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDirectionProperty = BindableProperty.Create("ScrollDirection", typeof(Direction), typeof(ScrollBar), Direction.Vertical, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.ScrollDirection = (Direction)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.ScrollDirection; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorHeightPolicyProperty = BindableProperty.Create("IndicatorHeightPolicy", typeof(IndicatorHeightPolicyType), typeof(ScrollBar), IndicatorHeightPolicyType.Variable, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorHeightPolicy = (IndicatorHeightPolicyType)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorHeightPolicy; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorFixedHeightProperty = BindableProperty.Create("IndicatorFixedHeight", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorFixedHeight = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorFixedHeight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorShowDurationProperty = BindableProperty.Create("IndicatorShowDuration", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorShowDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorShowDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorHideDurationProperty = BindableProperty.Create("IndicatorHideDuration", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorHideDuration = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorHideDuration; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionIntervalsProperty = BindableProperty.Create("ScrollPositionIntervals", typeof(PropertyArray), typeof(ScrollBar), new PropertyArray(), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.ScrollPositionIntervals = (PropertyArray)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.ScrollPositionIntervals; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorMinimumHeightProperty = BindableProperty.Create("IndicatorMinimumHeight", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorMinimumHeight = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorMinimumHeight; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorStartPaddingProperty = BindableProperty.Create("IndicatorStartPadding", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorStartPadding = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorStartPadding; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty IndicatorEndPaddingProperty = BindableProperty.Create("IndicatorEndPadding", typeof(float), typeof(ScrollBar), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - scrollBar.IndicatorEndPadding = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollBar = ((ScrollBar)bindable).scrollBar; - return scrollBar.IndicatorEndPadding; - }); - - /// - /// The event emitted when panning is finished on the scroll indicator. - /// - /// Event only emitted when the source of the scroll position properties are set. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler PanFinished - { - add - { - scrollBar.PanFinished += value; - } - remove - { - scrollBar.PanFinished -= value; - } - } - - /// - /// This is the event emitted when the current scroll position of the scrollable content goes above or below the values specified by ScrollPositionIntervals property. - /// - /// Event only emitted when the source of the scroll position properties are set. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ScrollInterval - { - add - { - scrollBar.ScrollInterval += value; - } - remove - { - scrollBar.ScrollInterval -= value; - } - } - - /// - /// Sets the source of the scroll position properties. - /// - /// The handle of the object owing the scroll properties. - /// The index of the scroll position property(The scroll position, type float). - /// The index of the minimum scroll position property(The minimum scroll position, type float). - /// The index of the maximum scroll position property(The maximum scroll position, type float). - /// The index of the scroll content size property(The size of the scrollable content in actor coordinates, type float). - /// The handle to the object owing the scroll properties has been initialised and the property index must be valid. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollPropertySource(Animatable handle, int propertyScrollPosition, int propertyMinScrollPosition, int propertyMaxScrollPosition, int propertyScrollContentSize) - { - scrollBar.SetScrollPropertySource(handle, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); - } - - /// - /// The direction of the scrollbar. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Direction ScrollDirection - { - get - { - - return (Direction)GetValue(ScrollDirectionProperty); - } - set - { - SetValue(ScrollDirectionProperty, value); - } - } - - /// - /// The indicator height policy. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public IndicatorHeightPolicyType IndicatorHeightPolicy - { - get - { - return (IndicatorHeightPolicyType)GetValue(IndicatorHeightPolicyProperty); - } - set - { - SetValue(IndicatorHeightPolicyProperty, value); - } - } - - /// - /// The fixed height of the scroll indicator. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorFixedHeight - { - get - { - return (float)GetValue(IndicatorFixedHeightProperty); - } - set - { - SetValue(IndicatorFixedHeightProperty, value); - } - } - - /// - /// The duration in seconds for the scroll indicator to become fully visible. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorShowDuration - { - get - { - return (float)GetValue(IndicatorShowDurationProperty); - } - set - { - SetValue(IndicatorShowDurationProperty, value); - } - } - - /// - /// The duration in seconds for the scroll indicator to become fully invisible. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorHideDuration - { - get - { - return (float)GetValue(IndicatorHideDurationProperty); - } - set - { - SetValue(IndicatorHideDurationProperty, value); - } - } - - /// - /// The list of values to get the notification when the current scroll position of the scrollable object goes above or below any of these values. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyArray ScrollPositionIntervals - { - get - { - return (PropertyArray)GetValue(ScrollPositionIntervalsProperty); - } - set - { - SetValue(ScrollPositionIntervalsProperty, value); - } - } - - /// - /// The minimum height for a variable size indicator. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorMinimumHeight - { - get - { - return (float)GetValue(IndicatorMinimumHeightProperty); - } - set - { - SetValue(IndicatorMinimumHeightProperty, value); - } - } - - /// - /// The padding at the start of the indicator. For example, the top if the scrollDirection is vertical. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorStartPadding - { - get - { - return (float)GetValue(IndicatorStartPaddingProperty); - } - set - { - SetValue(IndicatorStartPaddingProperty, value); - } - } - - /// - /// The padding at the end of the indicator. For example, the bottom if the scrollDirection is vertical. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float IndicatorEndPadding - { - get - { - return (float)GetValue(IndicatorEndPaddingProperty); - } - set - { - SetValue(IndicatorEndPaddingProperty, value); - } - } - - } - -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollView.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollView.cs deleted file mode 100755 index 286ca46d6..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/ScrollView.cs +++ /dev/null @@ -1,1301 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.ComponentModel; -using System.Runtime.InteropServices; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using static Tizen.NUI.ScrollView; -using Tizen.NUI.UIComponents; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// ScrollView contains views that can be scrolled manually (via touch). - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ScrollView : Scrollable - { - private Tizen.NUI.ScrollView _scrollView; - internal Tizen.NUI.ScrollView scrollView - { - get - { - if (null == _scrollView) - { - _scrollView = handleInstance as Tizen.NUI.ScrollView; - } - - return _scrollView; - } - } - - /// - /// Create an instance of ScrollView. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ScrollView() : this(new Tizen.NUI.ScrollView()) - { - } - - internal ScrollView(Tizen.NUI.ScrollView nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapEnabledProperty = BindableProperty.Create("WrapEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.WrapEnabled = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.WrapEnabled; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningEnabledProperty = BindableProperty.Create("PanningEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.PanningEnabled = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.PanningEnabled; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty AxisAutoLockEnabledProperty = BindableProperty.Create("AxisAutoLockEnabled", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.AxisAutoLockEnabled = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.AxisAutoLockEnabled; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WheelScrollDistanceStepProperty = BindableProperty.Create("WheelScrollDistanceStep", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.WheelScrollDistanceStep = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.WheelScrollDistanceStep; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionProperty = BindableProperty.Create("ScrollPosition", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollPosition = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollPosition; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionProperty = BindableProperty.Create("ScrollPrePosition", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollPrePosition = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollPrePosition; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPrePositionMaxProperty = BindableProperty.Create("ScrollPrePositionMax", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollPrePositionMax = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollPrePositionMax; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootXProperty = BindableProperty.Create("OvershootX", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.OvershootX = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.OvershootX; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty OvershootYProperty = BindableProperty.Create("OvershootY", typeof(float), typeof(ScrollView), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.OvershootY = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.OvershootY; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollFinalProperty = BindableProperty.Create("ScrollFinal", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollFinal = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollFinal; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty WrapProperty = BindableProperty.Create("Wrap", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.Wrap = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.Wrap; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PanningProperty = BindableProperty.Create("Panning", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.Panning = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.Panning; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollingProperty = BindableProperty.Create("Scrolling", typeof(bool), typeof(ScrollView), false, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.Scrolling = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.Scrolling; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainSizeProperty = BindableProperty.Create("ScrollDomainSize", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollDomainSize = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollDomainSize; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollDomainOffsetProperty = BindableProperty.Create("ScrollDomainOffset", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollDomainOffset = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollDomainOffset; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollPositionDeltaProperty = BindableProperty.Create("ScrollPositionDelta", typeof(Vector2), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollPositionDelta = (Vector2)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollPositionDelta; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StartPagePositionProperty = BindableProperty.Create("StartPagePosition", typeof(Vector3), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.StartPagePosition = (Vector3)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.StartPagePosition; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ScrollModeProperty = BindableProperty.Create("ScrollMode", typeof(PropertyMap), typeof(ScrollView), null, propertyChanged: (bindable, oldValue, newValue) => - { - var scrollView = ((ScrollView)bindable).scrollView; - scrollView.ScrollMode = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var scrollView = ((ScrollView)bindable).scrollView; - return scrollView.ScrollMode; - }); - - /// - /// SnapStarted can be used to subscribe or unsubscribe the event handler - /// The SnapStarted signal is emitted when the ScrollView has started to snap or flick (it tells the target - /// position, scale, rotation for the snap or flick). - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event DaliEventHandler SnapStarted - { - add - { - scrollView.SnapStarted += value; - } - - remove - { - scrollView.SnapStarted -= value; - } - } - - /// - /// Gets snap-animation's AlphaFunction. - /// - /// Current easing alpha function of the snap animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AlphaFunction GetScrollSnapAlphaFunction() - { - return scrollView.GetScrollSnapAlphaFunction(); - } - - /// - /// Sets snap-animation's AlphaFunction. - /// - /// Easing alpha function of the snap animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSnapAlphaFunction(AlphaFunction alpha) - { - scrollView.SetScrollSnapAlphaFunction(alpha); - } - - /// - /// Gets flick-animation's AlphaFunction. - /// - /// Current easing alpha function of the flick animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AlphaFunction GetScrollFlickAlphaFunction() - { - return scrollView.GetScrollFlickAlphaFunction(); - } - - /// - /// Sets flick-animation's AlphaFunction. - /// - /// Easing alpha function of the flick animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollFlickAlphaFunction(AlphaFunction alpha) - { - scrollView.SetScrollFlickAlphaFunction(alpha); - } - - /// - /// Gets the time for the scroll snap-animation. - /// - /// The time in seconds for the animation to take. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetScrollSnapDuration() - { - return scrollView.GetScrollSnapDuration(); - } - - /// - /// Sets the time for the scroll snap-animation. - /// - /// The time in seconds for the animation to take. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSnapDuration(float time) - { - scrollView.SetScrollSnapDuration(time); - } - - /// - /// Gets the time for the scroll flick-animation. - /// - /// The time in seconds for the animation to take. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetScrollFlickDuration() - { - return scrollView.GetScrollFlickDuration(); - } - - /// - /// Sets the time for the scroll snap-animation. - /// - /// The time in seconds for the animation to take. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollFlickDuration(float time) - { - scrollView.SetScrollFlickDuration(time); - } - - /// - /// Sets scroll sensibility of pan gesture. - /// - /// True to enable scroll, false to disable scrolling. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollSensitive(bool sensitive) - { - scrollView.SetScrollSensitive(sensitive); - } - - /// - /// Sets maximum overshoot amount. - /// - /// The maximum number of horizontally scrolled pixels before overshoot X reaches 1.0f. - /// The maximum number of vertically scrolled pixels before overshoot X reaches 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMaxOvershoot(float overshootX, float overshootY) - { - scrollView.SetMaxOvershoot(overshootX, OvershootY); - } - - /// - /// Sets Snap Overshoot animation's AlphaFunction. - /// - /// Easing alpha function of the overshoot snap animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetSnapOvershootAlphaFunction(AlphaFunction alpha) - { - scrollView.SetSnapOvershootAlphaFunction(alpha); - } - - /// - /// Sets Snap Overshoot animation's Duration. - /// - /// duration The duration of the overshoot snap animation. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetSnapOvershootDuration(float duration) - { - scrollView.SetSnapOvershootDuration(duration); - } - - /// - /// Enables or Disables Actor Auto-Snap mode.
- /// When Actor Auto-Snap mode has been enabled, ScrollView will automatically, - /// snap to the closest actor (The closest actor will appear in the center of the ScrollView). - ///
- /// Enables (true), or disables (false) Actor AutoSnap. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetViewAutoSnap(bool enable) - { - scrollView.SetViewAutoSnap(enable); - } - - /// - /// Enables or Disables Wrap mode for ScrollView contents.
- /// When enabled, the ScrollView contents are wrapped over the X/Y Domain. - ///
- /// Enables (true), or disables (false) Wrap Mode. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetWrapMode(bool enable) - { - scrollView.SetWrapMode(enable); - } - - /// - /// Gets the current distance needed to scroll for ScrollUpdatedSignal to be emitted. - /// - /// Current scroll update distance. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int GetScrollUpdateDistance() - { - return scrollView.GetScrollUpdateDistance(); - } - - /// - /// Sets the distance needed to scroll for ScrollUpdatedSignal to be emitted.
- /// The scroll update distance tells ScrollView how far to move before ScrollUpdatedSignal the informs application.
- /// Each time the ScrollView crosses this distance the signal will be emitted.
- ///
- /// The distance for ScrollView to move before emitting update signal. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollUpdateDistance(int distance) - { - scrollView.SetScrollUpdateDistance(distance); - } - - /// - /// Returns state of Axis Auto Lock mode. - /// - /// Whether Axis Auto Lock mode has been enabled or not. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetAxisAutoLock() - { - return scrollView.GetAxisAutoLock(); - } - - /// - /// Enables or Disables Axis Auto Lock mode for panning within the ScrollView.
- /// When enabled, any pan gesture that appears mostly horizontal or mostly - /// vertical, will be automatically restricted to horizontal only or vertical - /// only panning, until the pan gesture has completed. - ///
- /// Enables (true), or disables (false) AxisAutoLock mode. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetAxisAutoLock(bool enable) - { - scrollView.SetAxisAutoLock(enable); - } - - /// - /// Gets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis. - /// - /// The gradient, a value between 0.0 and 1.0f. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetAxisAutoLockGradient() - { - return scrollView.GetAxisAutoLockGradient(); - } - - /// - /// Sets the gradient threshold at which a panning gesture should be locked to the Horizontal or Vertical axis.
- /// By default, this is 0.36 (0.36:1) which means angles less than 20 degrees to an axis will lock to that axis.
- ///
- /// gradient A value between 0.0 and 1.0 (auto-lock for all angles). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetAxisAutoLockGradient(float gradient) - { - scrollView.SetAxisAutoLockGradient(gradient); - } - - /// - /// Gets the friction coefficient setting for ScrollView when flicking in free panning mode. - /// This is a value in stage-diagonals per second^2, stage-diagonal = Length( stage.width, stage.height ) - /// - /// Friction coefficient is returned. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFrictionCoefficient() - { - return scrollView.GetFrictionCoefficient(); - } - - /// - /// Sets the friction coefficient for ScrollView when flicking.
- ///
- /// Friction coefficient must be greater than 0.0 (default = 1.0). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFrictionCoefficient(float friction) - { - scrollView.SetFrictionCoefficient(friction); - } - - /// - /// Gets the flick speed coefficient for ScrollView when flicking in free panning mode.
- /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at which to move the scrolling area. - ///
- /// The flick speed coefficient is returned. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetFlickSpeedCoefficient() - { - return scrollView.GetFlickSpeedCoefficient(); - } - - /// - /// Sets the flick speed coefficient for ScrollView when flicking in free panning mode.
- /// This is a constant which multiplies the input touch flick velocity to determine the actual velocity at - /// which to move the scrolling area.
- ///
- /// The flick speed coefficient (default = 1.0). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFlickSpeedCoefficient(float speed) - { - scrollView.SetFlickSpeedCoefficient(speed); - } - - /// - /// Gets the minimum pan distance required for a flick gesture in pixels.
- ///
- /// Minimum pan distance vector with separate x and y distance. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetMinimumDistanceForFlick() - { - return scrollView.GetMinimumDistanceForFlick(); - } - - /// - /// Sets the minimum pan distance required for a flick in pixels.
- /// Takes a Vector2 containing separate x and y values. As long as the pan distance exceeds one of these axes, a flick will be allowed. - ///
- /// The flick speed coefficient (default = 1.0). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMinimumDistanceForFlick(Vector2 distance) - { - scrollView.SetMinimumDistanceForFlick(distance); - } - - /// - /// Returns the minimum pan speed required for a flick gesture in pixels per second. - /// - /// Minimum pan speed. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetMinimumSpeedForFlick() - { - return scrollView.GetMinimumSpeedForFlick(); - } - - /// - /// Sets the minimum pan speed required for a flick in pixels per second.
- ///
- /// The minimum pan speed for a flick. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMinimumSpeedForFlick(float speed) - { - scrollView.SetMinimumSpeedForFlick(speed); - } - - /// - /// Gets the maximum flick speed setting for ScrollView when flicking in free panning mode.
- /// This is a value in stage-diagonals per second. - ///
- /// Maximum flick speed is returned. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float GetMaxFlickSpeed() - { - return scrollView.GetMaxFlickSpeed(); - } - - /// - /// Sets the maximum flick speed for the ScrollView when flicking in free panning mode.
- /// This is a value in stage-diagonals per second. stage-diagonal = Length( stage.width, stage.height ).
- ///
- /// Maximum flick speed (default = 3.0). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetMaxFlickSpeed(float speed) - { - scrollView.SetMaxFlickSpeed(speed); - } - - /// - /// Gets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.
- ///
- /// The step of scroll distance(pixel) in X and Y axes. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetWheelScrollDistanceStep() - { - return scrollView.GetWheelScrollDistanceStep(); - } - - /// - /// Sets the step of scroll distance in actor coordinates for each wheel event received in free panning mode.
- ///
- /// step The step of scroll distance(pixel) in X and Y axes. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetWheelScrollDistanceStep(Vector2 step) - { - scrollView.SetWheelScrollDistanceStep(step); - } - - /// - /// Retrieves current scroll position.
- ///
- /// The current scroll position. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetCurrentScrollPosition() - { - return scrollView.GetCurrentScrollPosition(); - } - - /// - /// Retrieves current scroll page based on ScrollView dimensions being the size of one page, and all pages laid out in
- /// a grid fashion, increasing from left to right until the end of the X-domain. - ///
- /// The current scroll position. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetCurrentPage() - { - return scrollView.GetCurrentPage(); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position) - { - scrollView.ScrollTo(position); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - /// The duration of the animation in seconds. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration) - { - scrollView.ScrollTo(position, duration); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - /// The duration of the animation in seconds. - /// The alpha function to use. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha) - { - scrollView.ScrollTo(position, duration, alpha); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - /// The duration of the animation in seconds. - /// Whether to bias scrolling to left or right. - /// Whether to bias scrolling to top or bottom. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, DirectionBias horizontalBias, DirectionBias verticalBias) - { - scrollView.ScrollTo(position, duration, horizontalBias, verticalBias); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The position to scroll to. - /// The duration of the animation in seconds. - /// Alpha function to use. - /// Whether to bias scrolling to left or right. - /// Whether to bias scrolling to top or bottom. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(Vector2 position, float duration, AlphaFunction alpha, DirectionBias horizontalBias, DirectionBias verticalBias) - { - scrollView.ScrollTo(position, duration, alpha, horizontalBias, verticalBias); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The page to scroll to. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page) - { - scrollView.ScrollTo(page); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The page to scroll to. - /// The duration of the animation in seconds. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page, float duration) - { - scrollView.ScrollTo(page, duration); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The page to scroll to. - /// The duration of the animation in seconds. - /// Whether to bias scrolling to left or right. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(uint page, float duration, DirectionBias bias) - { - scrollView.ScrollTo(page, duration, bias); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The view to center in on (via Scrolling). - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(View view) - { - scrollView.ScrollTo(view.handleInstance as Tizen.NUI.BaseComponents.View); - } - - /// - /// Scrolls View to position specified (contents will scroll to this position). - /// - /// The view to center in on (via Scrolling). - /// The duration of the animation in seconds. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ScrollTo(View view, float duration) - { - scrollView.ScrollTo(view.handleInstance as Tizen.NUI.BaseComponents.View, duration); - } - - /// - /// Scrolls View to the nearest snap points as specified by the Rulers.
- /// If already at snap points, then will return false, and not scroll.
- ///
- /// True if Snapping necessary. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ScrollToSnapPoint() - { - return scrollView.ScrollToSnapPoint(); - } - - /// - /// Applies Effect to ScrollView. - /// - /// The effect to apply to scroll view. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ApplyEffect(ScrollViewEffect effect) - { - scrollView.ApplyEffect(effect); - } - - /// - /// Removes Effect from ScrollView. - /// - /// The effect to remove. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveEffect(ScrollViewEffect effect) - { - scrollView.RemoveEffect(effect); - } - - /// - /// Remove All Effects from ScrollView. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveAllEffects() - { - scrollView.RemoveAllEffects(); - } - - /// - /// Binds view to this ScrollView. - /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties. - /// - /// The view to add to this ScrollView. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void BindView(View child) - { - scrollView.BindView(child.handleInstance as Tizen.NUI.BaseComponents.View); - } - - /// - /// Unbinds view to this ScrollView. - /// Once an actor is bound to a ScrollView, it will be subject to that ScrollView's properties. - /// - /// The view to remove to this ScrollView. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void UnbindView(View child) - { - scrollView.UnbindView(child.handleInstance as Tizen.NUI.BaseComponents.View); - } - - /// - /// Allows the user to constrain the scroll view in a particular direction. - /// - /// The axis to constrain the scroll-view to. - /// The threshold to apply around the axis. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollingDirection(Radian direction, Radian threshold) - { - scrollView.SetScrollingDirection(direction, threshold); - } - - /// - /// Allows the user to constrain the scroll view in a particular direction. - /// - /// The axis to constrain the scroll-view to. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetScrollingDirection(Radian direction) - { - scrollView.SetScrollingDirection(direction); - } - - /// - /// Removes a direction constraint from the scroll view. - /// - /// The axis to constrain the scroll-view to. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void RemoveScrollingDirection(Radian direction) - { - scrollView.RemoveScrollingDirection(direction); - } - - /// - /// Sets and Gets WrapEnabled property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool WrapEnabled - { - get - { - return (bool)GetValue(WrapEnabledProperty); - } - set - { - SetValue(WrapEnabledProperty, value); - } - } - - /// - /// Sets and Gets PanningEnabled property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool PanningEnabled - { - get - { - return (bool)GetValue(PanningEnabledProperty); - } - set - { - SetValue(PanningEnabledProperty, value); - } - } - - /// - /// Sets and Gets AxisAutoLockEnabled property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool AxisAutoLockEnabled - { - get - { - return (bool)GetValue(AxisAutoLockEnabledProperty); - } - set - { - SetValue(AxisAutoLockEnabledProperty, value); - } - } - - /// - /// Sets and Gets WheelScrollDistanceStep property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 WheelScrollDistanceStep - { - get - { - return (Vector2)GetValue(WheelScrollDistanceStepProperty); - } - set - { - SetValue(WheelScrollDistanceStepProperty, value); - } - } - - /// - /// Sets and Gets ScrollPosition property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPosition - { - get - { - return (Vector2)GetValue(ScrollPositionProperty); - } - set - { - SetValue(ScrollPositionProperty, value); - } - } - - /// - /// Sets and Gets ScrollPrePosition property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPrePosition - { - get - { - return (Vector2)GetValue(ScrollPrePositionProperty); - } - set - { - SetValue(ScrollPrePositionProperty, value); - } - } - - /// - /// Sets and Gets ScrollPrePositionMax property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPrePositionMax - { - get - { - return (Vector2)GetValue(ScrollPrePositionMaxProperty); - } - set - { - SetValue(ScrollPrePositionMaxProperty, value); - } - } - - /// - /// Sets and Gets OvershootX property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float OvershootX - { - get - { - return (float)GetValue(OvershootXProperty); - } - set - { - SetValue(OvershootXProperty, value); - } - } - - /// - /// Sets and Gets OvershootY property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float OvershootY - { - get - { - return (float)GetValue(OvershootYProperty); - } - set - { - SetValue(OvershootYProperty, value); - } - } - - /// - /// Sets and Gets ScrollFinal property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollFinal - { - get - { - return (Vector2)GetValue(ScrollFinalProperty); - } - set - { - SetValue(ScrollFinalProperty, value); - } - } - - /// - /// Sets and Gets Wrap property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Wrap - { - get - { - return (bool)GetValue(WrapProperty); - } - set - { - SetValue(WrapProperty, value); - } - } - - /// - /// Sets and Gets Panning property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Panning - { - get - { - return (bool)GetValue(PanningProperty); - } - set - { - SetValue(PanningProperty, value); - } - } - - /// - /// Sets and Gets Scrolling property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Scrolling - { - get - { - return (bool)GetValue(ScrollingProperty); - } - set - { - SetValue(ScrollingProperty, value); - } - } - - /// - /// Sets and Gets ScrollDomainSize property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollDomainSize - { - get - { - return (Vector2)GetValue(ScrollDomainSizeProperty); - } - set - { - SetValue(ScrollDomainSizeProperty, value); - } - } - - /// - /// Sets and Gets ScrollDomainOffset property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollDomainOffset - { - get - { - return (Vector2)GetValue(ScrollDomainOffsetProperty); - } - set - { - SetValue(ScrollDomainOffsetProperty, value); - } - } - - /// - /// Sets and Gets ScrollPositionDelta property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 ScrollPositionDelta - { - get - { - return (Vector2)GetValue(ScrollPositionDeltaProperty); - } - set - { - SetValue(ScrollPositionDeltaProperty, value); - } - } - - /// - /// Sets and Gets StartPagePosition property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector3 StartPagePosition - { - get - { - return (Vector3)GetValue(StartPagePositionProperty); - } - set - { - SetValue(StartPagePositionProperty, value); - } - } - - - /// - /// Sets and Gets ScrollMode property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ScrollMode - { - get - { - return (PropertyMap)GetValue(ScrollModeProperty); - } - set - { - SetValue(ScrollModeProperty, value); - } - } - - } - -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/Slider.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/Slider.cs deleted file mode 100755 index 726a2d4e4..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/Slider.cs +++ /dev/null @@ -1,592 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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; -using System.Runtime.InteropServices; -using System.ComponentModel; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using Tizen.NUI.XamlBinding; -using Tizen.NUI; -using static Tizen.NUI.UIComponents.Slider; - -namespace Tizen.NUI.Xaml.UIComponents -{ - /// - /// The slider is a control to enable sliding an indicator between two values. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Slider : View - { - private Tizen.NUI.UIComponents.Slider _slider; - internal Tizen.NUI.UIComponents.Slider slider - { - get - { - if (null == _slider) - { - _slider = handleInstance as Tizen.NUI.UIComponents.Slider; - } - - return _slider; - } - } - - /// - /// Creates the slider control. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Slider() : this(new Tizen.NUI.UIComponents.Slider()) - { - } - - internal Slider(Tizen.NUI.UIComponents.Slider nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - - nuiInstance.ValueChanged += (object source, ValueChangedEventArgs e) => - { - Slider thisSlider = Tizen.NUI.Xaml.Forms.BaseHandle.GetHandle((Tizen.NUI.BaseHandle)source) as Slider; - thisSlider.ForceNotify(ValueProperty); - return true; - }; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty LowerBoundProperty = BindableProperty.Create("LowerBound", typeof(float), typeof(Slider), 0.0f, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.LowerBound = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.LowerBound; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty UpperBoundProperty = BindableProperty.Create("UpperBound", typeof(float), typeof(Slider), 1.0f, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.UpperBound = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.UpperBound; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ValueProperty = BindableProperty.Create("Value", typeof(float), typeof(Slider), default(float), BindingMode.TwoWay, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.Value = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.Value; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TrackVisualProperty = BindableProperty.Create("TrackVisual", typeof(PropertyMap), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.TrackVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.TrackVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty HandleVisualProperty = BindableProperty.Create("HandleVisual", typeof(PropertyMap), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.HandleVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.HandleVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ProgressVisualProperty = BindableProperty.Create("ProgressVisual", typeof(PropertyMap), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.ProgressVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.ProgressVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupVisualProperty = BindableProperty.Create("PopupVisual", typeof(PropertyMap), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.PopupVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.PopupVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty PopupArrowVisualProperty = BindableProperty.Create("PopupArrowVisual", typeof(PropertyMap), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.PopupArrowVisual = (PropertyMap)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.PopupArrowVisual; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty DisabledColorProperty = BindableProperty.Create("DisabledColor", typeof(Vector4), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.DisabledColor = (Vector4)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.DisabledColor; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ValuePrecisionProperty = BindableProperty.Create("ValuePrecision", typeof(int), typeof(Slider), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.ValuePrecision = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.ValuePrecision; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShowPopupProperty = BindableProperty.Create("ShowPopup", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.ShowPopup = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.ShowPopup; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty ShowValueProperty = BindableProperty.Create("ShowValue", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.ShowValue = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.ShowValue; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarksProperty = BindableProperty.Create("Marks", typeof(PropertyArray), typeof(Slider), null, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.Marks = (PropertyArray)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.Marks; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty MarkToleranceProperty = BindableProperty.Create("MarkTolerance", typeof(float), typeof(Slider), default(float), propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.MarkTolerance = (float)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.MarkTolerance; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty SnapToMarksProperty = BindableProperty.Create("SnapToMarks", typeof(bool), typeof(Slider), false, propertyChanged: (bindable, oldValue, newValue) => - { - var slider = ((Slider)bindable).slider; - slider.SnapToMarks = (bool)newValue; - }, - defaultValueCreator: (bindable) => - { - var slider = ((Slider)bindable).slider; - return slider.SnapToMarks; - }); - - - /// - /// An event emitted when the slider value changes. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType ValueChanged - { - add - { - slider.ValueChanged += value; - } - remove - { - slider.ValueChanged -= value; - } - } - - /// - /// An event emitted when the sliding is finished. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType SlidingFinished - { - add - { - slider.SlidingFinished += value; - } - remove - { - slider.SlidingFinished -= value; - } - } - - /// - /// An event emitted when the slider handle reaches a mark. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandlerWithReturnType MarkReached - { - add - { - slider.MarkReached += value; - } - remove - { - slider.MarkReached -= value; - } - } - - /// - /// Downcasts an object handle to the slider.
- /// If the handle points to a slider, then the downcast produces a valid handle.
- /// If not, then the returned handle is left uninitialized.
- ///
- /// The handle to an object. - /// The handle to a slider or an uninitialized handle. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static Slider DownCast(Tizen.NUI.Xaml.Forms.BaseHandle handle) - { - return Tizen.NUI.Xaml.Forms.BaseHandle.GetHandle(handle.handleInstance) as Slider; - } - - /// - /// The lower bound property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float LowerBound - { - get - { - return (float)GetValue(LowerBoundProperty); - } - set - { - SetValue(LowerBoundProperty, value); - } - } - - /// - /// The upper bound property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float UpperBound - { - get - { - return (float)GetValue(UpperBoundProperty); - } - set - { - SetValue(UpperBoundProperty, value); - } - } - - /// - /// The value property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float Value - { - get - { - return (float)GetValue(ValueProperty); - } - set - { - SetValue(ValueProperty, value); - } - } - - /// - /// The track visual property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap TrackVisual - { - get - { - return (PropertyMap)GetValue(TrackVisualProperty); - } - set - { - SetValue(TrackVisualProperty, value); - } - } - - /// - /// The handle visual property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap HandleVisual - { - get - { - return (PropertyMap)GetValue(HandleVisualProperty); - } - set - { - SetValue(HandleVisualProperty, value); - } - } - - /// - /// The progress visual property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap ProgressVisual - { - get - { - return (PropertyMap)GetValue(ProgressVisualProperty); - } - set - { - SetValue(ProgressVisualProperty, value); - } - } - - /// - /// The popup visual property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap PopupVisual - { - get - { - return (PropertyMap)GetValue(PopupVisualProperty); - } - set - { - SetValue(PopupVisualProperty, value); - } - } - - /// - /// The popup arrow visual property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyMap PopupArrowVisual - { - get - { - return (PropertyMap)GetValue(PopupArrowVisualProperty); - } - set - { - SetValue(PopupArrowVisualProperty, value); - } - } - - /// - /// The disable color property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector4 DisabledColor - { - get - { - return (Vector4)GetValue(DisabledColorProperty); - } - set - { - SetValue(DisabledColorProperty, value); - } - } - - /// - /// The value precision property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int ValuePrecision - { - get - { - return (int)GetValue(ValuePrecisionProperty); - } - set - { - SetValue(ValuePrecisionProperty, value); - } - } - - /// - /// The show popup property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ShowPopup - { - get - { - return (bool)GetValue(ShowPopupProperty); - } - set - { - SetValue(ShowPopupProperty, value); - } - } - - /// - /// The show value property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool ShowValue - { - get - { - return (bool)GetValue(ShowValueProperty); - } - set - { - SetValue(ShowValueProperty, value); - } - } - - /// - /// The marks property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyArray Marks - { - get - { - return (PropertyArray)GetValue(MarksProperty); - } - set - { - SetValue(MarksProperty, value); - } - } - - /// - /// The snap to marks property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool SnapToMarks - { - get - { - return (bool)GetValue(SnapToMarksProperty); - } - set - { - SetValue(SnapToMarksProperty, value); - } - } - - /// - /// The mark tolerance property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float MarkTolerance - { - get - { - return (float)GetValue(MarkToleranceProperty); - } - set - { - SetValue(MarkToleranceProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/UIComponents/ToggleButton.cs b/src/Tizen.NUI.Xaml/src/public/UIComponents/ToggleButton.cs deleted file mode 100755 index b88102421..000000000 --- a/src/Tizen.NUI.Xaml/src/public/UIComponents/ToggleButton.cs +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright(c) 2018 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; -using Tizen.NUI; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml.UIComponents -{ - - /// - /// A ToggleButton allows the user to change a setting between two or more states. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class ToggleButton : Button - { - private Tizen.NUI.ToggleButton _toggleButton; - internal Tizen.NUI.ToggleButton toggleButton - { - get - { - if (null == _toggleButton) - { - _toggleButton = handleInstance as Tizen.NUI.ToggleButton; - } - - return _toggleButton; - } - } - - /// - /// Create an instance for toggleButton. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ToggleButton() : this(new Tizen.NUI.ToggleButton()) - { - } - - internal ToggleButton(Tizen.NUI.ToggleButton nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty StateVisualsProperty = BindableProperty.Create("StateVisuals", typeof(PropertyArray), typeof(ToggleButton), null, propertyChanged: (bindable, oldValue, newValue) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - toggleButton.StateVisuals = (PropertyArray)newValue; - }, - defaultValueCreator: (bindable) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - return toggleButton.StateVisuals; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty TooltipsProperty = BindableProperty.Create("Tooltips", typeof(PropertyArray), typeof(ToggleButton), null, propertyChanged: (bindable, oldValue, newValue) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - toggleButton.Tooltips = (PropertyArray)newValue; - }, - defaultValueCreator: (bindable) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - return toggleButton.Tooltips; - }); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static readonly BindableProperty CurrentStateIndexProperty = BindableProperty.Create("CurrentStateIndex", typeof(int), typeof(ToggleButton), default(int), propertyChanged: (bindable, oldValue, newValue) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - toggleButton.CurrentStateIndex = (int)newValue; - }, - defaultValueCreator: (bindable) => - { - var toggleButton = ((ToggleButton)bindable).toggleButton; - return toggleButton.CurrentStateIndex; - }); - - /// - /// Gets and Sets the state visual array of toggle button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyArray StateVisuals - { - get - { - return (PropertyArray)GetValue(StateVisualsProperty); - } - set - { - SetValue(StateVisualsProperty, value); - } - } - - /// - /// Gets and Sets the tooltips of toggle button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PropertyArray Tooltips - { - get - { - return (PropertyArray)GetValue(TooltipsProperty); - } - set - { - SetValue(TooltipsProperty, value); - } - } - - /// - /// Gets and Sets the current state index of toggle button. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int CurrentStateIndex - { - get - { - return (int)GetValue(CurrentStateIndexProperty); - } - set - { - SetValue(CurrentStateIndexProperty, value); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IMarkupExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IMarkupExtension.cs deleted file mode 100755 index bcc97ca1d..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IMarkupExtension.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IMarkupExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IMarkupExtension : IMarkupExtension - { - /// - /// The API ProvideValue. - /// - /// 6 - new T ProvideValue(IServiceProvider serviceProvider); - } - - /// - /// The interface IMarkupExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IMarkupExtension - { - /// - /// The API ProvideValue. - /// - /// 6 - object ProvideValue(IServiceProvider serviceProvider); - } - - /// - /// The class AcceptEmptyServiceProviderAttribute. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [AttributeUsage(AttributeTargets.Class, Inherited = false)] - public sealed class AcceptEmptyServiceProviderAttribute : Attribute - { - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IProvideValueTarget.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IProvideValueTarget.cs deleted file mode 100755 index a04d7042f..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IProvideValueTarget.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IProvideValueTarget. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IProvideValueTarget - { - /// - /// The API TargetObject. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object TargetObject { get; } - - /// - /// The API TargetObject. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object TargetProperty { get; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IReferenceProvider.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IReferenceProvider.cs deleted file mode 100755 index 78b2935ed..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IReferenceProvider.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IReferenceProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IReferenceProvider - { - /// - /// Find provider by name. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object FindByName(string name); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IValueProvider.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IValueProvider.cs deleted file mode 100755 index 6f7e53db4..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IValueProvider.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IValueProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IValueProvider - { - /// - /// Provider value. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object ProvideValue(IServiceProvider serviceProvider); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IXamlTypeResolver.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IXamlTypeResolver.cs deleted file mode 100755 index 6d0d56292..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IXamlTypeResolver.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IXamlTypeResolver. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IXamlTypeResolver - { - /// - /// Resolve xaml. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Type Resolve(string qualifiedTypeName, IServiceProvider serviceProvider = null); - - /// - /// Resolve xaml and out put the type. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - bool TryResolve(string qualifiedTypeName, out Type type); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/IXmlLineInfoProvider.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/IXmlLineInfoProvider.cs deleted file mode 100755 index 07257d997..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/IXmlLineInfoProvider.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.ComponentModel; -using System.Xml; - -namespace Tizen.NUI.Xaml -{ - /// - /// The interface IXmlLineInfoProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IXmlLineInfoProvider - { - /// - /// Attribute XmlLineInfo. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - IXmlLineInfo XmlLineInfo { get; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ArrayExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ArrayExtension.cs deleted file mode 100755 index 69e4bad92..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ArrayExtension.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class ArrayExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [ContentProperty("Items")] - [AcceptEmptyServiceProvider] - [EditorBrowsable(EditorBrowsableState.Never)] - public class ArrayExtension : IMarkupExtension - { - /// - /// Create a new ArrayExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public ArrayExtension() - { - Items = new List(); - } - - /// - /// Attribute Items. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public IList Items { get; } - - /// - /// Attribute Type. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Type Type { get; set; } - - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Array ProvideValue(IServiceProvider serviceProvider) - { - if (Type == null) - throw new InvalidOperationException("Type argument mandatory for x:Array extension"); - - if (Items == null) - return null; - - var array = Array.CreateInstance(Type, Items.Count); - for (var i = 0; i < Items.Count; i++) - ((IList)array)[i] = Items[i]; - - return array; - } - - object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - return (this as IMarkupExtension).ProvideValue(serviceProvider); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/BindingExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/BindingExtension.cs deleted file mode 100755 index 1f429f3a4..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/BindingExtension.cs +++ /dev/null @@ -1,124 +0,0 @@ -using System; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI.XamlBinding; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class BindingExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [ContentProperty("Path")] - [AcceptEmptyServiceProvider] - [EditorBrowsable(EditorBrowsableState.Never)] - public sealed class BindingExtension : IMarkupExtension - { - /// - /// Attribute Path. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Path { get; set; } = Tizen.NUI.XamlBinding.Binding.SelfPath; - - /// - /// Attribute Mode. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public BindingMode Mode { get; set; } = BindingMode.Default; - - /// - /// Attribute Converter. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public IValueConverter Converter { get; set; } - - /// - /// Attribute Converterparameter. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object ConverterParameter { get; set; } - - /// - /// Attribute StringFormat. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string StringFormat { get; set; } - - /// - /// Attribute Source. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object Source { get; set; } - - /// - /// Attribute UpdateSourceEventName. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string UpdateSourceEventName { get; set; } - - /// - /// Attribute TargetNullValue. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object TargetNullValue { get; set; } - - /// - /// Attribute FallbackValue. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object FallbackValue { get; set; } - - /// - /// Attribute TypedBinding. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public TypedBindingBase TypedBinding { get; set; } - - BindingBase IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - if (TypedBinding == null) - return new Tizen.NUI.XamlBinding.Binding(Path, Mode, Converter, ConverterParameter, StringFormat, Source) - { - UpdateSourceEventName = UpdateSourceEventName, - FallbackValue = FallbackValue, - TargetNullValue = TargetNullValue, - }; - - TypedBinding.Mode = Mode; - TypedBinding.Converter = Converter; - TypedBinding.ConverterParameter = ConverterParameter; - TypedBinding.StringFormat = StringFormat; - TypedBinding.Source = Source; - TypedBinding.UpdateSourceEventName = UpdateSourceEventName; - TypedBinding.FallbackValue = FallbackValue; - TypedBinding.TargetNullValue = TargetNullValue; - return TypedBinding; - } - - object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - return (this as IMarkupExtension).ProvideValue(serviceProvider); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/DynamicResourceExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/DynamicResourceExtension.cs deleted file mode 100755 index e9bb9862d..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/DynamicResourceExtension.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.XamlBinding.Internals; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class DynamicResourceExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ContentProperty("Key")] - public sealed class DynamicResourceExtension : IMarkupExtension - { - /// - /// Attribute Key. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Key { get; set; } - - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object ProvideValue(IServiceProvider serviceProvider) - { - return ((IMarkupExtension)this).ProvideValue(serviceProvider); - } - - DynamicResource IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - if (Key == null) - { - var lineInfoProvider = serviceProvider.GetService(typeof (IXmlLineInfoProvider)) as IXmlLineInfoProvider; - var lineInfo = (lineInfoProvider != null) ? lineInfoProvider.XmlLineInfo : new XmlLineInfo(); - throw new XamlParseException("DynamicResource markup require a Key", lineInfo); - } - return new DynamicResource(Key); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/NullExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/NullExtension.cs deleted file mode 100755 index 2e1c4cbcc..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/NullExtension.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class NullExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ProvideCompiled("Tizen.NUI.Xaml.Build.Tasks.NullExtension")] - [AcceptEmptyServiceProvider] - public class NullExtension : IMarkupExtension - { - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object ProvideValue(IServiceProvider serviceProvider) - { - return null; - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TemplateBindingExtension.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TemplateBindingExtension.cs deleted file mode 100755 index 53a670196..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TemplateBindingExtension.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class TemplateBindingExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ContentProperty("Path")] - [AcceptEmptyServiceProvider] - public sealed class TemplateBindingExtension : IMarkupExtension - { - internal TemplateBindingExtension() - { - Mode = BindingMode.Default; - Path = Tizen.NUI.XamlBinding.Binding.SelfPath; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Path { get; set; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public BindingMode Mode { get; set; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public IValueConverter Converter { get; set; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object ConverterParameter { get; set; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string StringFormat { get; set; } - - BindingBase IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - return new TemplateBinding(Path, Mode, Converter, ConverterParameter, StringFormat); - } - - object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) - { - return (this as IMarkupExtension).ProvideValue(serviceProvider); - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlFilePathAttribute.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/XamlFilePathAttribute.cs deleted file mode 100755 index 72dcb66f2..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlFilePathAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Tizen.NUI.Xaml -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] - public sealed class XamlFilePathAttribute : Attribute - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public XamlFilePathAttribute([CallerFilePath] string filePath = "") - { - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/XmlLineInfo.cs b/src/Tizen.NUI.Xaml/src/public/Xaml/XmlLineInfo.cs deleted file mode 100755 index b89e2dd7a..000000000 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/XmlLineInfo.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System.ComponentModel; -using System.Xml; - -namespace Tizen.NUI.Xaml -{ - /// - /// The class XmlLineInfo. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XmlLineInfo : IXmlLineInfo - { - readonly bool _hasLineInfo; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public XmlLineInfo() - { - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public XmlLineInfo(int linenumber, int lineposition) - { - _hasLineInfo = true; - LineNumber = linenumber; - LinePosition = lineposition; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool HasLineInfo() - { - return _hasLineInfo; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LineNumber { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LinePosition { get; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/CollectionSynchronizationCallback.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/CollectionSynchronizationCallback.cs deleted file mode 100755 index 9ca907395..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/CollectionSynchronizationCallback.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; -using System.Collections; -using System.ComponentModel; - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public delegate void CollectionSynchronizationCallback(IEnumerable collection, object context, Action accessMethod, bool writeAccess); -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/GraphicsTypeManager.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/GraphicsTypeManager.cs deleted file mode 100755 index 72885ec18..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/GraphicsTypeManager.cs +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright(c) 2019 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * 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.ComponentModel; - -namespace Tizen.NUI.XamlBinding -{ - - /// - /// GraphicsTypeManager class to manage various types. - /// - /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API. - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] - public class GraphicsTypeManager - { - internal void RegisterCustomConverterForDynamicResourceBinding(global::System.Type type, Tizen.NUI.XamlBinding.TypeConverter userConverter) - { - if (Tizen.NUI.XamlBinding.BindableProperty.UserCustomConvertTypes.ContainsKey(type) == false) - { - Tizen.NUI.XamlBinding.BindableProperty.UserCustomConvertTypes.Add(type, userConverter); - } - } - } - -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IExtendedTypeConverter.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/IExtendedTypeConverter.cs deleted file mode 100755 index 03ee8ea35..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IExtendedTypeConverter.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.ComponentModel; -using System.Globalization; - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IExtendedTypeConverter - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete("IExtendedTypeConverter.ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string, IServiceProvider) instead.")] - object ConvertFrom(CultureInfo culture, object value, IServiceProvider serviceProvider); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object ConvertFromInvariantString(string value, IServiceProvider serviceProvider); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IResourcesProvider.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/IResourcesProvider.cs deleted file mode 100755 index 6cf0be681..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IResourcesProvider.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.Binding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IResourcesProvider - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - bool IsResourcesCreated { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - ResourceDictionary XamlResources { get; set; } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IValueConverter.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/IValueConverter.cs deleted file mode 100755 index 2a552a972..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/IValueConverter.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Globalization; -using System.ComponentModel; - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IValueConverter - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object Convert(object value, Type targetType, object parameter, CultureInfo culture); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture); - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/DynamicResource.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/DynamicResource.cs deleted file mode 100755 index 0fbf075de..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/DynamicResource.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.ComponentModel; - -namespace Tizen.NUI.XamlBinding.Internals -{ - /// - /// The class DynamicResource. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class DynamicResource - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public DynamicResource(string key) - { - Key = key; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Key { get; private set; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/IDynamicResourceHandler.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/IDynamicResourceHandler.cs deleted file mode 100755 index 9196d2b06..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/IDynamicResourceHandler.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.XamlBinding.Internals -{ - /// - /// The interface IDynamicResourceHandler. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IDynamicResourceHandler - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void SetDynamicResource(BindableProperty property, string key); - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/INameScope.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/INameScope.cs deleted file mode 100755 index 9b5735a39..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/INameScope.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.ComponentModel; -using System.Xml; - -namespace Tizen.NUI.XamlBinding.Internals -{ - /// - /// The interface INameScope. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface INameScope - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - object FindByName(string name); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void RegisterName(string name, object scopedElement); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void UnregisterName(string name); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete]void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo); - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/PreserveAttribute.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/PreserveAttribute.cs deleted file mode 100755 index 9abe51e7a..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/PreserveAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Tizen.NUI.XamlBinding.Internals -{ - /// - /// The class PreserveAttribute. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [AttributeUsage(AttributeTargets.All)] - public class PreserveAttribute : Attribute - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool AllMembers; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Conditional; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PreserveAttribute(bool allMembers, bool conditional) - { - AllMembers = allMembers; - Conditional = conditional; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public PreserveAttribute() - { - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/ResourceLoader.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/ResourceLoader.cs deleted file mode 100755 index 436a30990..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/ResourceLoader.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.ComponentModel; -using System.IO; -using System.Reflection; -using Tizen.NUI.Xaml; - -namespace Tizen.NUI.XamlBinding.Internals -{ - /// - /// The class ResourceLoader. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static class ResourceLoader - { - static Func resourceProvider = (asmName, path) => - { - return null; - //string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource; - //path = resource + path; - - //string ret = File.ReadAllText(path); - //return ret; - }; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - //takes a resource path, returns string content - public static Func ResourceProvider123 - { - get => resourceProvider; - internal set - { - DesignMode.IsDesignModeEnabled = true; - resourceProvider = value; - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - //takes a resource path, returns string content - public static Func ResourceProvider { - get => resourceProvider; - internal set { - DesignMode.IsDesignModeEnabled = true; - resourceProvider = value; - } - } - - internal static Action ExceptionHandler { get; set; } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Performance.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Performance.cs deleted file mode 100755 index c7be07161..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Performance.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System; -using System.Threading; - -namespace Tizen.NUI -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IPerformanceProvider - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void Stop(string reference, string tag, string path, string member); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void Start(string reference, string tag, string path, string member); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Performance - { - static long Reference; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static IPerformanceProvider Provider { get; private set; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static void SetProvider(IPerformanceProvider instance) - { - Provider = instance; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static void Start(out string reference, string tag = null, [CallerFilePath] string path = null, [CallerMemberName] string member = null) - { - if (Provider == null) - { - reference = String.Empty; - return; - } - - reference = Interlocked.Increment(ref Reference).ToString(); - Provider.Start(reference, tag, path, member); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static void Start(string reference, string tag = null, [CallerFilePath] string path = null, - [CallerMemberName] string member = null) - { - Provider?.Start(reference, tag, path, member); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static void Stop(string reference, string tag = null, [CallerFilePath] string path = null, [CallerMemberName] string member = null) - { - Provider?.Stop(reference, tag, path, member); - } - - internal static IDisposable StartNew(string tag = null, [CallerFilePath] string path = null, [CallerMemberName] string member = null) - { - return new DisposablePerformanceReference(tag, path, member); - } - - class DisposablePerformanceReference : IDisposable - { - string _reference; - string _tag; - string _path; - string _member; - - public DisposablePerformanceReference(string tag, string path, string member) - { - _tag = tag; - _path = path; - _member = member; - Start(out string reference, _tag, _path, _member); - _reference = reference; - } - - public void Dispose() - { - Stop(_reference, _tag, _path, _member); - } - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/SizeTypeConverter.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/SizeTypeConverter.cs deleted file mode 100755 index 58bc013c8..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/SizeTypeConverter.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Linq; -using System.Reflection; -using System.Globalization; - -using Tizen.NUI.Xaml; -using Tizen.NUI; -using System.ComponentModel; - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ProvideCompiledAttribute("Tizen.NUI.Xaml.Forms.XamlC.Size2DTypeConverter")] - public class SizeTypeConverter : TypeConverter - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override object ConvertFromInvariantString(string value) - { - if (value != null) - { - string[] parts = value.Split(','); - if (parts.Length == 3) - { - int x = (int)Tizen.NUI.GraphicsTypeManager.Instance.ConvertScriptToPixel(parts[0].Trim()); - int y = (int)Tizen.NUI.GraphicsTypeManager.Instance.ConvertScriptToPixel(parts[1].Trim()); - int z = (int)Tizen.NUI.GraphicsTypeManager.Instance.ConvertScriptToPixel(parts[2].Trim()); - return new Size(x, y, z); - } - } - - throw new InvalidOperationException($"Cannot convert \"{value}\" into {typeof(Size)}"); - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [ProvideCompiledAttribute("Tizen.NUI.Xaml.Forms.XamlC.Size2DTypeConverter")] - public class Size2DTypeConverter : TypeConverter - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public override object ConvertFromInvariantString(string value) - { - if (value != null) - { - string[] parts = value.Split(','); - if (parts.Length == 2) - { - int x = (int)Tizen.NUI.GraphicsTypeManager.Instance.ConvertScriptToPixel(parts[0].Trim()); - int y = (int)Tizen.NUI.GraphicsTypeManager.Instance.ConvertScriptToPixel(parts[1].Trim()); - return new Size2D(x, y); - } - } - - throw new InvalidOperationException($"Cannot convert \"{value}\" into {typeof(Size2D)}"); - } - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyle.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyle.cs deleted file mode 100755 index 36ebac60b..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyle.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.StyleSheets -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IStyle - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Type TargetType { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void Apply(BindableObject bindable); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - void UnApply(BindableObject bindable); - } -} diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyleSelectable.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyleSelectable.cs deleted file mode 100755 index f3e5cbc76..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/StyleSheets/IStyleSelectable.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; - -namespace Tizen.NUI.StyleSheets -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IStyleSelectable - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - string[] NameAndBases { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - string Id { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - IStyleSelectable Parent { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - IList Classes { get; } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - IEnumerable Children { get; } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public interface IStylable - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - BindableProperty GetProperty(string key, bool inheriting); - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Transition.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/Transition.cs deleted file mode 100755 index bbea9c13d..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Transition.cs +++ /dev/null @@ -1,783 +0,0 @@ -using System.ComponentModel; -using System; -using System.Collections.Generic; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using System.Reflection; -using System.Linq; -using Tizen.NUI.Xaml; -using System.Globalization; -using Tizen.NUI.Xaml.Internals; - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class AnimationBehavior - { - private string _key = null; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Key - { - get - { - return _key; - } - set - { - _key = value; - } - } - - private string _property = null; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string Property - { - get - { - return _property; - } - set - { - _property = value; - } - } - - private string _destValue = null; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string DestValue - { - get - { - return _destValue; - } - set - { - _destValue = value; - } - } - - private int _startTime = -1; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int StartTime - { - get - { - return _startTime; - } - set - { - _startTime = value; - } - } - - private int _endTime = -1; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int EndTime - { - get - { - return _endTime; - } - set - { - _endTime = value; - } - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Transition : Tizen.NUI.Xaml.Forms.BaseHandle - { - private Tizen.NUI.Animation _animation; - internal Tizen.NUI.Animation animation - { - get - { - if (null == _animation) - { - _animation = handleInstance as Tizen.NUI.Animation; - } - - return _animation; - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Transition() : this(new Tizen.NUI.Animation()) - { - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Transition(int durationMilliSeconds) : this(new Tizen.NUI.Animation(durationMilliSeconds)) - { - } - - internal Transition(Tizen.NUI.Animation nuiInstance) : base(nuiInstance) - { - SetNUIInstance(nuiInstance); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler Finished - { - add - { - animation.Finished += value; - } - remove - { - animation.Finished -= value; - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler ProgressReached - { - add - { - animation.ProgressReached += value; - } - remove - { - animation.ProgressReached -= value; - } - } - - /// - /// Gets or sets the duration in milliseconds of the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int Duration - { - set - { - animation.Duration = value; - } - get - { - return animation.Duration; - } - } - - /// - /// Gets or sets the default alpha function for the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AlphaFunction DefaultAlphaFunction - { - set - { - animation.DefaultAlphaFunction = value; - } - get - { - return animation.DefaultAlphaFunction; - } - } - - /// - /// Queries the state of the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.Animation.States State - { - get - { - return animation.State; - } - } - - /// - /// Set: Enables looping for a specified number of repeats. A zero is the same as Looping = true; i.e., repeat forever.
- /// This property resets the looping value and should not be used with the Looping property.
- /// Setting this parameter does not cause the animation to Play().
- /// Get: Gets the loop count. A zero is the same as Looping = true; i.e., repeat forever.
- /// The loop count is initially 1 for play once.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int LoopCount - { - set - { - animation.LoopCount = value; - } - get - { - return animation.LoopCount; - } - } - - /// - /// Gets or sets the status of whether the animation will loop.
- /// This property resets the loop count and should not be used with the LoopCount property.
- /// Setting this parameter does not cause the animation to Play().
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool Looping - { - set - { - animation.Looping = value; - } - get - { - return animation.Looping; - } - } - - /// - /// Gets or sets the end action of the animation.
- /// This action is performed when the animation ends or if it is stopped.
- /// The default end action is cancel.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.Animation.EndActions EndAction - { - set - { - animation.EndAction = value; - } - get - { - return animation.EndAction; - } - } - - /// - /// Gets the current loop count.
- /// A value 0 indicating the current loop count when looping.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int CurrentLoop - { - get - { - return animation.CurrentLoop; - } - } - - /// - /// Gets or sets the disconnect action.
- /// If any of the animated property owners are disconnected from the stage while the animation is being played, then this action is performed.
- /// The default action is cancel.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Tizen.NUI.Animation.EndActions DisconnectAction - { - set - { - animation.DisconnectAction = value; - } - get - { - return animation.DisconnectAction; - } - } - - - /// - /// Gets or sets the progress of the animation.
- /// The animation will play (or continue playing) from this point.
- /// The progress must be in the 0-1 interval or in the play range interval if defined
- /// otherwise, it will be ignored.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float CurrentProgress - { - set - { - animation.CurrentProgress = value; - } - get - { - return animation.CurrentProgress; - } - } - - /// - /// Gets or sets specificifications of a speed factor for the animation.
- /// The speed factor is a multiplier of the normal velocity of the animation.
- /// Values between [0, 1] will slow down the animation and values above one will speed up the animation.
- /// It is also possible to specify a negative multiplier to play the animation in reverse.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float SpeedFactor - { - set - { - animation.SpeedFactor = value; - } - get - { - return animation.SpeedFactor; - } - } - - /// - /// Gets or sets the playing range.
- /// Animation will play between the values specified. Both values (range.x and range.y ) should be between 0-1, - /// otherwise they will be ignored. If the range provided is not in proper order (minimum, maximum ), it will be reordered.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public RelativeVector2 PlayRange - { - set - { - animation.PlayRange = value; - } - get - { - return animation.PlayRange; - } - } - - - /// - /// Gets or sets the progress notification marker which triggers the ProgressReachedSignal.
- /// Percentage of animation progress should be greater than 0 and less than 1, for example, 0.3 for 30%
- /// One notification can be set on each animation. - ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public float ProgressNotification - { - set - { - animation.ProgressNotification = value; - } - get - { - return animation.ProgressNotification; - } - } - - private string[] _properties = null; - private string[] _destValue = null; - private int[] _startTime = null; - private int[] _endTime = null; - - /// - /// Gets or sets the properties of the animation. - /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string[] Properties - { - get - { - return _properties; - } - set - { - _properties = value; - } - } - - /// - /// Gets or sets the destination value for each property of the animation. - /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string[] DestValue - { - get - { - return _destValue; - } - set - { - _destValue = value; - } - } - - /// - /// Gets or sets the start time for each property of the animation. - /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int[] StartTime - { - get - { - return _startTime; - } - set - { - _startTime = value; - } - } - - /// - /// Gets or sets the end time for each property of the animation. - /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public int[] EndTime - { - get - { - return _endTime; - } - set - { - _endTime = value; - } - } - - /// - /// Downcasts a handle to animation handle.
- /// If handle points to an animation object, the downcast produces a valid handle.
- /// If not, the returned handle is left uninitialized.
- ///
- /// Handle to an object. - /// Handle to an animation object or an uninitialized handle. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static Transition DownCast(Tizen.NUI.BaseHandle handle) - { - return Tizen.NUI.Xaml.Forms.BaseHandle.GetHandle(Tizen.NUI.Animation.DownCast(handle)) as Transition; - } - - /// - /// Stops the animation. - /// - /// The end action can be set. - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Stop(Tizen.NUI.Animation.EndActions action) - { - animation.Stop(action); - } - - /// - /// Plays the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Play() - { - animation.Play(); - } - - /// - /// Pauses the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Pause() - { - animation.Pause(); - } - - /// - /// Stops the animation. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Stop() - { - animation.Stop(); - } - - /// - /// Clears the animation.
- /// This disconnects any objects that were being animated, effectively stopping the animation.
- ///
- /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Clear() - { - animation.Clear(); - } - - private string name; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - - public string Name - { - get - { - return name; - } - set - { - name = value; - } - } - - private Dictionary behaviors = new Dictionary(); - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AnimationBehavior[] Behaviors - { - set - { - if (null != value) - { - foreach (AnimationBehavior behavior in value) - { - behaviors.Add(behavior.Key, behavior); - } - } - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void AnimateTo(View instance, string behaviorKey) - { - AnimationBehavior behavior = null; - behaviors.TryGetValue(behaviorKey, out behavior); - - if (null != behavior) - { - var elementType = instance.GetType(); - PropertyInfo propertyInfo = elementType.GetProperties().FirstOrDefault(fi => fi.Name == behavior.Property); - - if (propertyInfo != null) - { - object destinationValue = ConvertTo(behavior.DestValue, propertyInfo.PropertyType); - - if (destinationValue != null) - { - if (0 <= behavior.StartTime) - { - animation.AnimateTo(instance.view, behavior.Property, destinationValue, behavior.StartTime, behavior.EndTime); - } - else - { - animation.AnimateTo(instance.view, behavior.Property, destinationValue); - } - } - } - } - else - { - throw new XamlParseException(string.Format("Behaviors don't have key {0}", behaviorKey), new XmlLineInfo()); - } - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void AnimateBy(View instance, string behaviorKey) - { - AnimationBehavior behavior = null; - behaviors.TryGetValue(behaviorKey, out behavior); - - if (null != behavior) - { - var elementType = instance.GetType(); - PropertyInfo propertyInfo = elementType.GetProperties().FirstOrDefault(fi => fi.Name == behavior.Property); - - if (propertyInfo != null) - { - object destinationValue = ConvertTo(behavior.DestValue, propertyInfo.PropertyType); - - if (destinationValue != null) - { - if (0 <= behavior.StartTime) - { - animation.AnimateBy(instance.view, behavior.Property, destinationValue, behavior.StartTime, behavior.EndTime); - } - else - { - animation.AnimateBy(instance.view, behavior.Property, destinationValue); - } - } - } - } - else - { - throw new XamlParseException(string.Format("Behaviors don't have key {0}", behaviorKey), new XmlLineInfo()); - } - } - - internal object ConvertTo(object value, Type toType) - { - Func getConverter = () => - { - var converterTypeName = TypeConversionExtensions.GetConverterName(toType); - - if (null == converterTypeName) - { - return null; - } - - Type convertertype = Type.GetType(converterTypeName); - return Activator.CreateInstance(convertertype); - }; - - return ConvertTo(value, toType, getConverter); - } - - internal object ConvertTo(object value, Type toType, Func getConverter) - { - if (value == null) - return null; - - var str = value as string; - if (str != null) - { - //If there's a [TypeConverter], use it - object converter = getConverter?.Invoke(); - var xfTypeConverter = converter as TypeConverter; - if (xfTypeConverter != null) - return value = xfTypeConverter.ConvertFromInvariantString(str); - var converterType = converter?.GetType(); - if (converterType != null) - { - var convertFromStringInvariant = converterType.GetRuntimeMethod("ConvertFromInvariantString", - new[] { typeof(string) }); - if (convertFromStringInvariant != null) - return value = convertFromStringInvariant.Invoke(converter, new object[] { str }); - } - - //If the type is nullable, as the value is not null, it's safe to assume we want the built-in conversion - if (toType.GetTypeInfo().IsGenericType && toType.GetGenericTypeDefinition() == typeof(Nullable<>)) - toType = Nullable.GetUnderlyingType(toType); - - //Obvious Built-in conversions - if (toType.GetTypeInfo().IsEnum) - return Enum.Parse(toType, str, true); - if (toType == typeof(SByte)) - return SByte.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Int16)) - return Int16.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Int32)) - return Int32.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Int64)) - return Int64.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Byte)) - return Byte.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(UInt16)) - return UInt16.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(UInt32)) - return UInt32.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(UInt64)) - return UInt64.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Single)) - return Single.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Double)) - return Double.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Boolean)) - return Boolean.Parse(str); - if (toType == typeof(TimeSpan)) - return TimeSpan.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(DateTime)) - return DateTime.Parse(str, CultureInfo.InvariantCulture); - if (toType == typeof(Char)) - { - char c = '\0'; - Char.TryParse(str, out c); - return c; - } - if (toType == typeof(String) && str.StartsWith("{}", StringComparison.Ordinal)) - return str.Substring(2); - if (toType == typeof(String)) - return value; - if (toType == typeof(Decimal)) - return Decimal.Parse(str, CultureInfo.InvariantCulture); - } - - //if the value is not assignable and there's an implicit conversion, convert - if (value != null && !toType.IsAssignableFrom(value.GetType())) - { - var opImplicit = GetImplicitConversionOperator(value.GetType(), value.GetType(), toType) - ?? GetImplicitConversionOperator(toType, value.GetType(), toType); - //var opImplicit = value.GetType().GetImplicitConversionOperator(fromType: value.GetType(), toType: toType) - // ?? toType.GetImplicitConversionOperator(fromType: value.GetType(), toType: toType); - - if (opImplicit != null) - { - value = opImplicit.Invoke(null, new[] { value }); - return value; - } - } - - var nativeValueConverterService = DependencyService.Get(); - - object nativeValue = null; - if (nativeValueConverterService != null && nativeValueConverterService.ConvertTo(value, toType, out nativeValue)) - return nativeValue; - - return value; - } - - internal string GetTypeConverterTypeName(IEnumerable attributes) - { - var converterAttribute = - attributes.FirstOrDefault(cad => TypeConverterAttribute.TypeConvertersType.Contains(cad.AttributeType.FullName)); - if (converterAttribute == null) - return null; - if (converterAttribute.ConstructorArguments[0].ArgumentType == typeof(string)) - return (string)converterAttribute.ConstructorArguments[0].Value; - if (converterAttribute.ConstructorArguments[0].ArgumentType == typeof(Type)) - return ((Type)converterAttribute.ConstructorArguments[0].Value).AssemblyQualifiedName; - return null; - } - - internal MethodInfo GetImplicitConversionOperator(Type onType, Type fromType, Type toType) - { -#if NETSTANDARD1_0 - var mi = onType.GetRuntimeMethod("op_Implicit", new[] { fromType }); -#else - var bindingFlags = BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy; - var mi = onType.GetMethod("op_Implicit", bindingFlags, null, new[] { fromType }, null); -#endif - if (mi == null) return null; - if (!mi.IsSpecialName) return null; - if (!mi.IsPublic) return null; - if (!mi.IsStatic) return null; - if (!toType.IsAssignableFrom(mi.ReturnType)) return null; - - return mi; - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/TypeConverter.cs b/src/Tizen.NUI.Xaml/src/public/XamlBinding/TypeConverter.cs deleted file mode 100755 index 56490ed1c..000000000 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/TypeConverter.cs +++ /dev/null @@ -1,50 +0,0 @@ -using System; -using System.ComponentModel; -using System.Globalization; - -namespace Tizen.NUI.XamlBinding -{ - /// - /// The class to converter Type. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract class TypeConverter - { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual bool CanConvertFrom(Type sourceType) - { - if (sourceType == null) - throw new ArgumentNullException(nameof(sourceType)); - - return sourceType == typeof(string); - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")] - public virtual object ConvertFrom(object o) - { - return null; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")] - public virtual object ConvertFrom(CultureInfo culture, object o) - { - return null; - } - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public virtual object ConvertFromInvariantString(string value) - { -#pragma warning disable 0618 // retain until ConvertFrom removed - return ConvertFrom(CultureInfo.InvariantCulture, value); -#pragma warning restore - } - } -} \ No newline at end of file diff --git a/src/Tizen.NUI/Properties/AssemblyInfo.cs b/src/Tizen.NUI/Properties/AssemblyInfo.cs index e101848d1..43100650c 100755 --- a/src/Tizen.NUI/Properties/AssemblyInfo.cs +++ b/src/Tizen.NUI/Properties/AssemblyInfo.cs @@ -1,3 +1,18 @@ using System.Runtime.CompilerServices; using Tizen.NUI; + +[assembly: InternalsVisibleTo("Tizen.NUI.Design, Publickey=0024000004800000940000000602000000240000525341310004000001000100d115b1004248416b12d21b626cfb17149c9303fe394693fd3b32d7872e89559a4fa96c98110c2e62eea48aca693bddbe17094ca8ea2e2cd79970ca590fb672b9b371b5d7002076817321f62d6483ea50c56dbd1f37b185a4c24c47718876e6ae6d266508c551170d4cbdda3f82edaff9405ee3d7857282d8269e8e518d2f0fb2")] + +// Xamarin.Forms.Loader.dll Xamarin.Forms.Xaml.XamlLoader.Load(object, string), kzu@microsoft.com +[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI")] +[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.BaseComponents")] +[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.UIComponents")] +[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.Xaml")] +[assembly: XmlnsDefinition("http://tizen.org/Tizen.NUI/2018/XAML", "Tizen.NUI.Binding")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "Tizen.NUI.Xaml")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2006/xaml", "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "Tizen.NUI.Xaml")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] +[assembly: XmlnsDefinition("http://schemas.microsoft.com/winfx/2009/xaml", "System", AssemblyName = "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")] diff --git a/src/Tizen.NUI/src/internal/Application.cs b/src/Tizen.NUI/src/internal/Application.cs index ad2f8ac78..d51819900 100755 --- a/src/Tizen.NUI/src/internal/Application.cs +++ b/src/Tizen.NUI/src/internal/Application.cs @@ -25,6 +25,8 @@ namespace Tizen.NUI using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; + using Tizen.NUI.Binding; + using Tizen.NUI.Binding.Internals; /** * @brief Event arguments that passed via NUIApplicationInit signal @@ -307,18 +309,445 @@ namespace Tizen.NUI } } - internal class Application : BaseHandle + /// + /// A class to get resources in current application. + /// + public class GetResourcesProvider { + /// + /// Get resources in current application. + /// + static public IResourcesProvider Get() + { + return Tizen.NUI.Application.Current; + } + } + + internal class Application : BaseHandle, IResourcesProvider, IApplicationController, IElementConfiguration + { + + static Application s_current; + Task> _propertiesTask; + readonly Lazy> _platformConfigurationRegistry; + + IAppIndexingProvider _appIndexProvider; + + ReadOnlyCollection _logicalChildren; + + Page _mainPage; + static SemaphoreSlim SaveSemaphore = new SemaphoreSlim(1, 1); + public IAppLinks AppLinks + { + get + { + if (_appIndexProvider == null) + throw new ArgumentException("No IAppIndexingProvider was provided"); + if (_appIndexProvider.AppLinks == null) + throw new ArgumentException("No AppLinks implementation was found, if in Android make sure you installed the Xamarin.Forms.AppLinks"); + return _appIndexProvider.AppLinks; + } + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static void SetCurrentApplication(Application value) => Current = value; + + public static Application Current + { + get { return s_current; } + set + { + if (s_current == value) + return; + if (value == null) + s_current = null; //Allow to reset current for unittesting + s_current = value; + } + } + + public Page MainPage + { + get { return _mainPage; } + set + { + if (value == null) + throw new ArgumentNullException("value"); + + if (_mainPage == value) + return; + + OnPropertyChanging(); + if (_mainPage != null) + { + InternalChildren.Remove(_mainPage); + _mainPage.Parent = null; + } + + _mainPage = value; + + if (_mainPage != null) + { + _mainPage.Parent = this; + _mainPage.NavigationProxy.Inner = NavigationProxy; + InternalChildren.Add(_mainPage); + } + OnPropertyChanged(); + } + } + + public IDictionary Properties + { + get + { + if (_propertiesTask == null) + { + _propertiesTask = GetPropertiesAsync(); + } + + return _propertiesTask.Result; + } + } + + internal override ReadOnlyCollection LogicalChildrenInternal + { + get { return _logicalChildren ?? (_logicalChildren = new ReadOnlyCollection(InternalChildren)); } + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public new NavigationProxy NavigationProxy { get; } + [EditorBrowsable(EditorBrowsableState.Never)] public int PanGestureId { get; set; } + internal IResourceDictionary SystemResources { get; } + + ObservableCollection InternalChildren { get; } = new ObservableCollection(); + + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetAppIndexingProvider(IAppIndexingProvider provider) + { + _appIndexProvider = provider; + } + + ResourceDictionary _resources; + public bool IsResourcesCreated => _resources != null; + + public delegate void resChangeCb(object sender, ResourcesChangedEventArgs e); + + static private Dictionary> resourceChangeCallbackDict = new Dictionary>(); + static public void AddResourceChangedCallback(object handle, resChangeCb cb) + { + Dictionary cbDict; + resourceChangeCallbackDict.TryGetValue(handle, out cbDict); + + if (null == cbDict) + { + cbDict = new Dictionary(); + resourceChangeCallbackDict.Add(handle, cbDict); + } + + if (false == cbDict.ContainsKey(cb)) + { + cbDict.Add(cb, 0); + } + } + + internal override void OnResourcesChanged(object sender, ResourcesChangedEventArgs e) + { + base.OnResourcesChanged(sender, e); + + foreach (KeyValuePair> resourcePair in resourceChangeCallbackDict) + { + foreach (KeyValuePair cbPair in resourcePair.Value) + { + cbPair.Key(sender, e); + } + } + } + + public ResourceDictionary XamlResources + { + get + { + if (_resources != null) + return _resources; + + _resources = new ResourceDictionary(); + int hashCode = _resources.GetHashCode(); + ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; + return _resources; + } + set + { + if (_resources == value) + return; + OnPropertyChanging(); + + if (_resources != null) + ((IResourceDictionary)_resources).ValuesChanged -= OnResourcesChanged; + _resources = value; + OnResourcesChanged(value); + if (_resources != null) + ((IResourceDictionary)_resources).ValuesChanged += OnResourcesChanged; + + OnPropertyChanged(); + } + } + + public event EventHandler ModalPopped; + + public event EventHandler ModalPopping; + + public event EventHandler ModalPushed; + + public event EventHandler ModalPushing; + + public event EventHandler PageAppearing; + + public event EventHandler PageDisappearing; + + + async void SaveProperties() + { + try + { + await SetPropertiesAsync(); + } + catch (Exception exc) + { + Console.WriteLine(nameof(Application), $"Exception while saving Application Properties: {exc}"); + } + } + + public async Task SavePropertiesAsync() + { + if (Device.IsInvokeRequired) + { + Device.BeginInvokeOnMainThread(SaveProperties); + } + else + { + await SetPropertiesAsync(); + } + } + + // Don't use this unless there really is no better option + internal void SavePropertiesAsFireAndForget() + { + if (Device.IsInvokeRequired) + { + Device.BeginInvokeOnMainThread(SaveProperties); + } + else + { + SaveProperties(); + } + } + + public IPlatformElementConfiguration On() where T : IConfigPlatform + { + return _platformConfigurationRegistry.Value.On(); + } + + protected virtual void OnAppLinkRequestReceived(Uri uri) + { + } + + protected override void OnParentSet() + { + throw new InvalidOperationException("Setting a Parent on Application is invalid."); + } + + protected virtual void OnResume() + { + } + + protected virtual void OnSleep() + { + } + + protected virtual void OnStart() + { + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static void ClearCurrent() + { + s_current = null; + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public static bool IsApplicationOrNull(Element element) + { + return element == null || element is Application; + } + + internal override void OnParentResourcesChanged(IEnumerable> values) + { + if (!((IResourcesProvider)this).IsResourcesCreated || XamlResources.Count == 0) + { + base.OnParentResourcesChanged(values); + return; + } + + var innerKeys = new HashSet(); + var changedResources = new List>(); + foreach (KeyValuePair c in XamlResources) + innerKeys.Add(c.Key); + foreach (KeyValuePair value in values) + { + if (innerKeys.Add(value.Key)) + changedResources.Add(value); + } + OnResourcesChanged(changedResources); + } + + internal event EventHandler PopCanceled; + + [EditorBrowsable(EditorBrowsableState.Never)] + public void SendOnAppLinkRequestReceived(Uri uri) + { + OnAppLinkRequestReceived(uri); + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public void SendResume() + { + s_current = this; + OnResume(); + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public void SendSleep() + { + OnSleep(); + SavePropertiesAsFireAndForget(); + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public Task SendSleepAsync() + { + OnSleep(); + return SavePropertiesAsync(); + } + + [EditorBrowsable(EditorBrowsableState.Never)] + public void SendStart() + { + OnStart(); + } + + async Task> GetPropertiesAsync() + { + var deserializer = DependencyService.Get(); + if (deserializer == null) + { + Console.WriteLine("Startup", "No IDeserialzier was found registered"); + return new Dictionary(4); + } + + IDictionary properties = await deserializer.DeserializePropertiesAsync().ConfigureAwait(false); + if (properties == null) + properties = new Dictionary(4); + + return properties; + } + + internal void OnPageAppearing(Page page) + => PageAppearing?.Invoke(this, page); + + internal void OnPageDisappearing(Page page) + => PageDisappearing?.Invoke(this, page); + + void OnModalPopped(Page modalPage) + => ModalPopped?.Invoke(this, new ModalPoppedEventArgs(modalPage)); + + bool OnModalPopping(Page modalPage) + { + var args = new ModalPoppingEventArgs(modalPage); + ModalPopping?.Invoke(this, args); + return args.Cancel; + } + + void OnModalPushed(Page modalPage) + => ModalPushed?.Invoke(this, new ModalPushedEventArgs(modalPage)); + + void OnModalPushing(Page modalPage) + => ModalPushing?.Invoke(this, new ModalPushingEventArgs(modalPage)); + + void OnPopCanceled() + => PopCanceled?.Invoke(this, EventArgs.Empty); + + async Task SetPropertiesAsync() + { + await SaveSemaphore.WaitAsync(); + try + { + await DependencyService.Get()?.SerializePropertiesAsync(Properties); + } + finally + { + SaveSemaphore.Release(); + } + + } + + class NavigationImpl : NavigationProxy + { + readonly Application _owner; + + public NavigationImpl(Application owner) + { + _owner = owner; + } + + protected override async Task OnPopModal(bool animated) + { + Page modal = ModalStack[ModalStack.Count - 1]; + if (_owner.OnModalPopping(modal)) + { + _owner.OnPopCanceled(); + return null; + } + Page result = await base.OnPopModal(animated); + result.Parent = null; + _owner.OnModalPopped(result); + return result; + } + + protected override async Task OnPushModal(Page modal, bool animated) + { + _owner.OnModalPushing(modal); + + modal.Parent = _owner; + + if (modal.NavigationProxy.ModalStack.Count == 0) + { + modal.NavigationProxy.Inner = this; + await base.OnPushModal(modal, animated); + } + else + { + await base.OnPushModal(modal, animated); + modal.NavigationProxy.Inner = this; + } + + _owner.OnModalPushed(modal); + } + } + private global::System.Runtime.InteropServices.HandleRef swigCPtr; internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn) { + NavigationProxy = new NavigationImpl(this); + SetCurrentApplication(this); + + _platformConfigurationRegistry = new Lazy>(() => new PlatformConfigurationRegistry(this)); swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + + SendResume(); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj) @@ -1106,6 +1535,7 @@ namespace Tizen.NUI { Application ret = new Application(Interop.Application.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + ret.SendResume(); return ret; } diff --git a/src/Tizen.NUI/src/internal/BindableProperty.cs b/src/Tizen.NUI/src/internal/BindableProperty.cs deleted file mode 100755 index a7ba12946..000000000 --- a/src/Tizen.NUI/src/internal/BindableProperty.cs +++ /dev/null @@ -1,89 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Linq.Expressions; -using System.Reflection; -using System.ComponentModel; - -namespace Tizen.NUI.Binding -{ - /// - /// A BindableProperty is a backing store for properties allowing bindings on BindableObject. - /// - /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public sealed class BindableProperty - { - /// - /// Delegate for BindableProperty.PropertyChanged. - /// - /// The bindable object that contains the property. - /// The old property value. - /// The new property value. - public delegate void BindingPropertyChangedDelegate(BaseHandle bindable, object oldValue, object newValue); - - /// - /// Delegate for BindableProperty.DefaultValueCreator. - /// - /// The bindable object that contains the property. - /// System.Object - public delegate object CreateDefaultValueDelegate(BaseHandle bindable); - - BindableProperty(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingPropertyChangedDelegate propertyChanged, CreateDefaultValueDelegate defaultValueCreator) - { - PropertyName = propertyName; - ReturnType = returnType; - DeclaringType = declaringType; - DefaultValue = defaultValue; - PropertyChanged = propertyChanged; - DefaultValueCreator = defaultValueCreator; - } - - /// - /// Gets the type declaring the BindableProperty. - /// - public Type DeclaringType { get; private set; } - - /// - /// Gets the default value for the BindableProperty. - /// - public object DefaultValue { get; } - - /// - /// Gets a value indicating if the BindableProperty is created form a BindablePropertyKey. - /// - public bool IsReadOnly { get; private set; } - - /// - /// Gets the property name. - /// - public string PropertyName { get; } - - /// - /// Gets the type of the BindableProperty. - /// - public Type ReturnType { get; } - - internal CreateDefaultValueDelegate DefaultValueCreator { get; } - - internal BindingPropertyChangedDelegate PropertyChanged { get; private set; } - - /// - /// Creates a new instance of the BindableProperty class. - /// - /// The name of the BindableProperty. - /// The type of the property. - /// The type of the declaring object. - /// The default value for the property. - /// A delegate to be run when the value has changed. This parameter is optional. Default is null. - /// A Func used to initialize default value for reference types. - /// A newly created BindableProperty. - public static BindableProperty Create(string propertyName, Type returnType, Type declaringType, object defaultValue = null, - BindingPropertyChangedDelegate propertyChanged = null, - CreateDefaultValueDelegate defaultValueCreator = null) - { - return new BindableProperty(propertyName, returnType, declaringType, defaultValue, propertyChanged:propertyChanged, defaultValueCreator: defaultValueCreator); - } - - } -} diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/ApplyPropertiesVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/ApplyPropertiesVisitor.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/ApplyPropertiesVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/ApplyPropertiesVisitor.cs index bae2bde18..47076ac1e 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/ApplyPropertiesVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/ApplyPropertiesVisitor.cs @@ -4,8 +4,8 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding.Internals; +using Tizen.NUI.Binding; using Tizen.NUI.StyleSheets; using static System.String; @@ -129,6 +129,13 @@ namespace Tizen.NUI.Xaml addMethod?.Invoke(source, new[] { value }); return; } + if (xpe == null && Context.Types[parentElement].GetRuntimeMethods().Any(mi => mi.Name == "Add" && mi.GetParameters().Length == 1)) + { + //if there are similar parameters in the function, this will exist issue. + var addMethod = Context.Types[parentElement].GetRuntimeMethods().First(mi => mi.Name == "Add" && mi.GetParameters().Length == 1); + if (addMethod != null) addMethod.Invoke(source, new[] { value }); + return; + } if (xpe == null && (contentProperty = GetContentPropertyName(Context.Types[parentElement].GetTypeInfo())) != null) { var name = new XmlName(node.NamespaceURI, contentProperty); if (Skips.Contains(name)) @@ -139,13 +146,7 @@ namespace Tizen.NUI.Xaml SetPropertyValue(source, name, value, Context.RootElement, node, Context, node); return; } - if (xpe == null && Context.Types[parentElement].GetRuntimeMethods().Any(mi => mi.Name == "Add" && mi.GetParameters().Length == 1)) - { - //if there are similar parameters in the function, this will exist issue. - var addMethod = Context.Types[parentElement].GetRuntimeMethods().First(mi => mi.Name == "Add" && mi.GetParameters().Length == 1); - if(addMethod != null) addMethod.Invoke(source, new[] { value }); - return; - } + xpe = xpe ?? new XamlParseException($"Can not set the content of {((IElementNode)parentNode).XmlType.Name} as it doesn't have a ContentPropertyAttribute", node); if (Context.ExceptionHandler != null) Context.ExceptionHandler(xpe); @@ -633,8 +634,8 @@ namespace Tizen.NUI.Xaml if (xKey != null) resourceDictionary.Add(xKey, value); - else if (value is Tizen.NUI.XamlBinding.Style) - resourceDictionary.Add((Tizen.NUI.XamlBinding.Style)value); + else if (value is Tizen.NUI.Binding.Style) + resourceDictionary.Add((Tizen.NUI.Binding.Style)value); else if (value is ResourceDictionary) resourceDictionary.Add((ResourceDictionary)value); else if (value is StyleSheets.StyleSheet) diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/CreateValuesVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/CreateValuesVisitor.cs similarity index 91% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/CreateValuesVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/CreateValuesVisitor.cs index 8d59879dd..c4e4c50eb 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/CreateValuesVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/CreateValuesVisitor.cs @@ -4,8 +4,8 @@ using System.Globalization; using System.Linq; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding.Internals; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml @@ -88,15 +88,18 @@ namespace Tizen.NUI.Xaml } if (value == null) { - if (type.GetTypeInfo().DeclaredConstructors.Any(ci => ci.IsPublic && ci.GetParameters().Length == 0)) + value = Activator.CreateInstance(type); + if (value is Element) { - //default constructor - value = Activator.CreateInstance(type); - } - else - { - //constructor with all default parameters - value = Activator.CreateInstance(type, BindingFlags.CreateInstance | BindingFlags.Public | BindingFlags.Instance | BindingFlags.OptionalParamBinding, null, new object[] { Type.Missing }, CultureInfo.CurrentCulture); + if (null != Application.Current) + { + Application.AddResourceChangedCallback(value, (value as Element).OnResourcesChanged); + } + + if (value is BindableObject) + { + ((BindableObject)value).IsCreateByXaml = true; + } } } } @@ -173,7 +176,7 @@ namespace Tizen.NUI.Xaml { // Modify the namespace var propname = - parameter.CustomAttributes.First(ca => ca.AttributeType.FullName == "Tizen.NUI.XamlBinding.ParameterAttribute")? + parameter.CustomAttributes.First(ca => ca.AttributeType.FullName == "Tizen.NUI.Binding.ParameterAttribute")? .ConstructorArguments.First() .Value as string; if (!node.Properties.ContainsKey(new XmlName("", propname))) @@ -213,7 +216,20 @@ namespace Tizen.NUI.Xaml if (!node.Properties.ContainsKey(XmlName.xFactoryMethod)) { //non-default ctor - return Activator.CreateInstance(nodeType, BindingFlags.CreateInstance | BindingFlags.Public | BindingFlags.Instance | BindingFlags.OptionalParamBinding, null, arguments, CultureInfo.CurrentCulture); + object ret = Activator.CreateInstance(nodeType, arguments); + if (ret is Element) + { + if (null != Application.Current) + { + Application.AddResourceChangedCallback(ret, (ret as Element).OnResourcesChanged); + } + + if (ret is BindableObject) + { + ((BindableObject)ret).IsCreateByXaml = true; + } + } + return ret; } var factoryMethod = ((string)((ValueNode)node.Properties[XmlName.xFactoryMethod]).Value); @@ -324,6 +340,18 @@ namespace Tizen.NUI.Xaml else { value = Activator.CreateInstance(nodeType); + if (value is Element) + { + if (null != Application.Current) + { + Application.AddResourceChangedCallback(value, (value as Element).OnResourcesChanged); + } + + if (value is BindableObject) + { + ((BindableObject)value).IsCreateByXaml = true; + } + } } if (node.CollectionItems.Count == 1 && node.CollectionItems[0] is ValueNode && diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/DesignMode.cs b/src/Tizen.NUI/src/internal/Xaml/DesignMode.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/DesignMode.cs rename to src/Tizen.NUI/src/internal/Xaml/DesignMode.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/ExpandMarkupsVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/ExpandMarkupsVisitor.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/ExpandMarkupsVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/ExpandMarkupsVisitor.cs index 4473df894..308e9e287 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/ExpandMarkupsVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/ExpandMarkupsVisitor.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.Xml; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/FillResourceDictionariesVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/FillResourceDictionariesVisitor.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/FillResourceDictionariesVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/FillResourceDictionariesVisitor.cs index eadbba59a..2be8e7bf8 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/FillResourceDictionariesVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/FillResourceDictionariesVisitor.cs @@ -2,7 +2,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Reflection; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/HydrationContext.cs b/src/Tizen.NUI/src/internal/Xaml/HydrationContext.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/HydrationContext.cs rename to src/Tizen.NUI/src/internal/Xaml/HydrationContext.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IConverterOptions.cs b/src/Tizen.NUI/src/internal/Xaml/IConverterOptions.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IConverterOptions.cs rename to src/Tizen.NUI/src/internal/Xaml/IConverterOptions.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IDictionaryExtensions.cs b/src/Tizen.NUI/src/internal/Xaml/IDictionaryExtensions.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IDictionaryExtensions.cs rename to src/Tizen.NUI/src/internal/Xaml/IDictionaryExtensions.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IExpressionParser.cs b/src/Tizen.NUI/src/internal/Xaml/IExpressionParser.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IExpressionParser.cs rename to src/Tizen.NUI/src/internal/Xaml/IExpressionParser.cs diff --git a/src/Tizen.NUI/src/internal/Xaml/IMarkupExtension.cs b/src/Tizen.NUI/src/internal/Xaml/IMarkupExtension.cs new file mode 100755 index 000000000..a6f26a54a --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IMarkupExtension.cs @@ -0,0 +1,19 @@ +using System; + +namespace Tizen.NUI.Xaml +{ + internal interface IMarkupExtension : IMarkupExtension + { + new T ProvideValue(IServiceProvider serviceProvider); + } + + internal interface IMarkupExtension + { + object ProvideValue(IServiceProvider serviceProvider); + } + + [AttributeUsage(AttributeTargets.Class, Inherited = false)] + internal sealed class AcceptEmptyServiceProviderAttribute : Attribute + { + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/INativeValueConverterService.cs b/src/Tizen.NUI/src/internal/Xaml/INativeValueConverterService.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/INativeValueConverterService.cs rename to src/Tizen.NUI/src/internal/Xaml/INativeValueConverterService.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IProvideParentValues.cs b/src/Tizen.NUI/src/internal/Xaml/IProvideParentValues.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IProvideParentValues.cs rename to src/Tizen.NUI/src/internal/Xaml/IProvideParentValues.cs diff --git a/src/Tizen.NUI/src/internal/Xaml/IProvideValueTarget.cs b/src/Tizen.NUI/src/internal/Xaml/IProvideValueTarget.cs new file mode 100755 index 000000000..cdf7b79c1 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IProvideValueTarget.cs @@ -0,0 +1,8 @@ +namespace Tizen.NUI.Xaml +{ + internal interface IProvideValueTarget + { + object TargetObject { get; } + object TargetProperty { get; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/IReferenceProvider.cs b/src/Tizen.NUI/src/internal/Xaml/IReferenceProvider.cs new file mode 100755 index 000000000..89cb53fef --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IReferenceProvider.cs @@ -0,0 +1,7 @@ +namespace Tizen.NUI.Xaml +{ + internal interface IReferenceProvider + { + object FindByName(string name); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IResourcesLoader.cs b/src/Tizen.NUI/src/internal/Xaml/IResourcesLoader.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IResourcesLoader.cs rename to src/Tizen.NUI/src/internal/Xaml/IResourcesLoader.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IRootObjectProvider.cs b/src/Tizen.NUI/src/internal/Xaml/IRootObjectProvider.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IRootObjectProvider.cs rename to src/Tizen.NUI/src/internal/Xaml/IRootObjectProvider.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/IValueConverterProvider.cs b/src/Tizen.NUI/src/internal/Xaml/IValueConverterProvider.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/IValueConverterProvider.cs rename to src/Tizen.NUI/src/internal/Xaml/IValueConverterProvider.cs diff --git a/src/Tizen.NUI/src/internal/Xaml/IValueProvider.cs b/src/Tizen.NUI/src/internal/Xaml/IValueProvider.cs new file mode 100755 index 000000000..a93a3e5ba --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IValueProvider.cs @@ -0,0 +1,9 @@ +using System; + +namespace Tizen.NUI.Xaml +{ + internal interface IValueProvider + { + object ProvideValue(IServiceProvider serviceProvider); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/IXamlTypeResolver.cs b/src/Tizen.NUI/src/internal/Xaml/IXamlTypeResolver.cs new file mode 100755 index 000000000..fbf2d37b3 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IXamlTypeResolver.cs @@ -0,0 +1,10 @@ +using System; + +namespace Tizen.NUI.Xaml +{ + internal interface IXamlTypeResolver + { + Type Resolve(string qualifiedTypeName, IServiceProvider serviceProvider = null); + bool TryResolve(string qualifiedTypeName, out Type type); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/IXmlLineInfoProvider.cs b/src/Tizen.NUI/src/internal/Xaml/IXmlLineInfoProvider.cs new file mode 100755 index 000000000..da9ac5a9c --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/IXmlLineInfoProvider.cs @@ -0,0 +1,9 @@ +using System.Xml; + +namespace Tizen.NUI.Xaml +{ + internal interface IXmlLineInfoProvider + { + IXmlLineInfo XmlLineInfo { get; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/MarkupExpressionParser.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExpressionParser.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/MarkupExpressionParser.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExpressionParser.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/MarkupExtensionParser.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensionParser.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/MarkupExtensionParser.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensionParser.cs index f360bdd28..e36449e66 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/MarkupExtensionParser.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensionParser.cs @@ -1,6 +1,6 @@ using System; using System.Reflection; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ArrayExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ArrayExtension.cs new file mode 100755 index 000000000..ce20e18d2 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ArrayExtension.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Xaml +{ + [ContentProperty("Items")] + [AcceptEmptyServiceProvider] + internal class ArrayExtension : IMarkupExtension + { + public ArrayExtension() + { + Items = new List(); + } + + public IList Items { get; } + + public Type Type { get; set; } + + public Array ProvideValue(IServiceProvider serviceProvider) + { + if (Type == null) + throw new InvalidOperationException("Type argument mandatory for x:Array extension"); + + if (Items == null) + return null; + + var array = Array.CreateInstance(Type, Items.Count); + for (var i = 0; i < Items.Count; i++) + ((IList)array)[i] = Items[i]; + + return array; + } + + object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + return (this as IMarkupExtension).ProvideValue(serviceProvider); + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/BindingExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/BindingExtension.cs new file mode 100755 index 000000000..927678304 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/BindingExtension.cs @@ -0,0 +1,56 @@ +using System; +using Tizen.NUI.Binding.Internals; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Xaml +{ + [ContentProperty("Path")] + [AcceptEmptyServiceProvider] + internal sealed class BindingExtension : IMarkupExtension + { + public string Path { get; set; } = Binding.Binding.SelfPath; + public BindingMode Mode { get; set; } = BindingMode.Default; + + public IValueConverter Converter { get; set; } + + public object ConverterParameter { get; set; } + + public string StringFormat { get; set; } + + public object Source { get; set; } + + public string UpdateSourceEventName { get; set; } + + public object TargetNullValue { get; set; } + + public object FallbackValue { get; set; } + + public TypedBindingBase TypedBinding { get; set; } + + BindingBase IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + if (TypedBinding == null) + return new Tizen.NUI.Binding.Binding(Path, Mode, Converter, ConverterParameter, StringFormat, Source) + { + UpdateSourceEventName = UpdateSourceEventName, + FallbackValue = FallbackValue, + TargetNullValue = TargetNullValue, + }; + + TypedBinding.Mode = Mode; + TypedBinding.Converter = Converter; + TypedBinding.ConverterParameter = ConverterParameter; + TypedBinding.StringFormat = StringFormat; + TypedBinding.Source = Source; + TypedBinding.UpdateSourceEventName = UpdateSourceEventName; + TypedBinding.FallbackValue = FallbackValue; + TypedBinding.TargetNullValue = TargetNullValue; + return TypedBinding; + } + + object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + return (this as IMarkupExtension).ProvideValue(serviceProvider); + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/DynamicResourceExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/DynamicResourceExtension.cs new file mode 100755 index 000000000..2991b81a2 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/DynamicResourceExtension.cs @@ -0,0 +1,28 @@ +using System; +using Tizen.NUI.Binding; +using Tizen.NUI.Binding.Internals; + +namespace Tizen.NUI.Xaml +{ + [ContentProperty("Key")] + internal sealed class DynamicResourceExtension : IMarkupExtension + { + public string Key { get; set; } + + public object ProvideValue(IServiceProvider serviceProvider) + { + return ((IMarkupExtension)this).ProvideValue(serviceProvider); + } + + DynamicResource IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + if (Key == null) + { + var lineInfoProvider = serviceProvider.GetService(typeof (IXmlLineInfoProvider)) as IXmlLineInfoProvider; + var lineInfo = (lineInfoProvider != null) ? lineInfoProvider.XmlLineInfo : new XmlLineInfo(); + throw new XamlParseException("DynamicResource markup require a Key", lineInfo); + } + return new DynamicResource(Key); + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/NullExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/NullExtension.cs new file mode 100755 index 000000000..b5a310c3e --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/NullExtension.cs @@ -0,0 +1,14 @@ +using System; + +namespace Tizen.NUI.Xaml +{ + [ProvideCompiled("Tizen.NUI.Xaml.Build.Tasks.NullExtension")] + [AcceptEmptyServiceProvider] + internal class NullExtension : IMarkupExtension + { + public object ProvideValue(IServiceProvider serviceProvider) + { + return null; + } + } +} diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ReferenceExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ReferenceExtension.cs similarity index 60% rename from src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ReferenceExtension.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ReferenceExtension.cs index be27ee5b6..b825389b7 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/ReferenceExtension.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/ReferenceExtension.cs @@ -1,34 +1,15 @@ using System; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml.Internals; -using Tizen.NUI.XamlBinding; -using System.ComponentModel; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { - /// - /// The class ReferenceExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty("Name")] - public class ReferenceExtension : IMarkupExtension + internal class ReferenceExtension : IMarkupExtension { - /// - /// Attribute Name - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Name { get; set; } - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticExtension.cs similarity index 69% rename from src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticExtension.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticExtension.cs index 10886126f..5a4151d35 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticExtension.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticExtension.cs @@ -1,36 +1,17 @@ using System; -using System.ComponentModel; using System.Linq; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { - /// - /// The class StaticExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty(nameof(Member))] [ProvideCompiled("Tizen.NUI.Xaml.Build.Tasks.StaticExtension")] - public class StaticExtension : IMarkupExtension + internal class StaticExtension : IMarkupExtension { - /// - /// Attribute Member - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Member { get; set; } - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object ProvideValue(IServiceProvider serviceProvider) { IXmlLineInfoProvider lineInfoProvider; diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticResourceExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticResourceExtension.cs similarity index 79% rename from src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticResourceExtension.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticResourceExtension.cs index 2ffae4f0c..c5577cdbe 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StaticResourceExtension.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StaticResourceExtension.cs @@ -2,34 +2,16 @@ using System; using System.Xml; using System.Reflection; using System.Linq; -using Tizen.NUI.XamlBinding; -using System.ComponentModel; +using Tizen.NUI.Binding; + namespace Tizen.NUI.Xaml { - /// - /// The class StaticResourceExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty("Key")] - public sealed class StaticResourceExtension : IMarkupExtension + internal sealed class StaticResourceExtension : IMarkupExtension { - /// - /// Attribute Key - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Key { get; set; } - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object ProvideValue(IServiceProvider serviceProvider) { if (serviceProvider == null) @@ -47,7 +29,7 @@ namespace Tizen.NUI.Xaml object resource = null; foreach (var p in valueProvider.ParentObjects) { - var irp = p as Tizen.NUI.Binding.IResourcesProvider; + var irp = p as IResourcesProvider; var resDict = irp != null && irp.IsResourcesCreated ? irp.XamlResources : p as ResourceDictionary; if (resDict == null) continue; @@ -106,7 +88,7 @@ namespace Tizen.NUI.Xaml internal object GetApplicationLevelResource(string key, IXmlLineInfo xmlLineInfo) { object resource = null; - if (Application.Current == null || !((Tizen.NUI.Binding.IResourcesProvider)Application.Current).IsResourcesCreated || !Application.Current.XamlResources.TryGetValue(Key, out resource)) + if (Application.Current == null || !((IResourcesProvider)Application.Current).IsResourcesCreated || !Application.Current.XamlResources.TryGetValue(Key, out resource)) throw new XamlParseException($"StaticResource not found for key {Key}", xmlLineInfo); return resource; } diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StyleSheetExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StyleSheetExtension.cs similarity index 66% rename from src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StyleSheetExtension.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StyleSheetExtension.cs index 0c7c7a0e8..2b4c48371 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/StyleSheetExtension.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/StyleSheetExtension.cs @@ -3,35 +3,15 @@ using System.Xml; using Tizen.NUI.StyleSheets; using System.Reflection; using System.IO; -using Tizen.NUI.XamlBinding; -using System.ComponentModel; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { - /// - /// The class StyleSheetExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty(nameof(Style))] - [ProvideCompiled("Tizen.NUI.XamlC.StyleSheetProvider")] - public sealed class StyleSheetExtension : IValueProvider + [ProvideCompiled("Tizen.NUI.Core.XamlC.StyleSheetProvider")] + internal sealed class StyleSheetExtension : IValueProvider { - /// - /// Attribute Style - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Style { get; set; } - - /// - /// Attribute Source - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Uri Source { get; set; } object IValueProvider.ProvideValue(IServiceProvider serviceProvider) diff --git a/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TemplateBindingExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TemplateBindingExtension.cs new file mode 100755 index 000000000..d06f2420d --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TemplateBindingExtension.cs @@ -0,0 +1,36 @@ +using System; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Xaml +{ + [ContentProperty("Path")] + [AcceptEmptyServiceProvider] + internal sealed class TemplateBindingExtension : IMarkupExtension + { + internal TemplateBindingExtension() + { + Mode = BindingMode.Default; + Path = Tizen.NUI.Binding.Binding.SelfPath; + } + + public string Path { get; set; } + + public BindingMode Mode { get; set; } + + public IValueConverter Converter { get; set; } + + public object ConverterParameter { get; set; } + + public string StringFormat { get; set; } + + BindingBase IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + return new TemplateBinding(Path, Mode, Converter, ConverterParameter, StringFormat); + } + + object IMarkupExtension.ProvideValue(IServiceProvider serviceProvider) + { + return (this as IMarkupExtension).ProvideValue(serviceProvider); + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TypeExtension.cs b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TypeExtension.cs similarity index 50% rename from src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TypeExtension.cs rename to src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TypeExtension.cs index 425e01837..9bcd36b9c 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/MarkupExtensions/TypeExtension.cs +++ b/src/Tizen.NUI/src/internal/Xaml/MarkupExtensions/TypeExtension.cs @@ -1,33 +1,14 @@ using System; -using System.ComponentModel; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { - /// - /// The class TemplateBindingExtension. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty(nameof(TypeName))] [ProvideCompiled("Tizen.NUI.Xaml.Build.Tasks.TypeExtension")] - public class TypeExtension : IMarkupExtension + internal class TypeExtension : IMarkupExtension { - /// - /// Attribute TypeName - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string TypeName { get; set; } - /// - /// Provide value tye service provideer. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Type ProvideValue(IServiceProvider serviceProvider) { if (string.IsNullOrEmpty(TypeName)) diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/NamescopingVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/NamescopingVisitor.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/NamescopingVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/NamescopingVisitor.cs index 5deb83d14..99e0f89c2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/NamescopingVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/NamescopingVisitor.cs @@ -1,5 +1,5 @@ using System.Collections.Generic; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/PruneIgnoredNodesVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/PruneIgnoredNodesVisitor.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/PruneIgnoredNodesVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/PruneIgnoredNodesVisitor.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/ReflectionExtensions.cs b/src/Tizen.NUI/src/internal/Xaml/ReflectionExtensions.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/ReflectionExtensions.cs rename to src/Tizen.NUI/src/internal/Xaml/ReflectionExtensions.cs index 142a81457..98e036db1 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/ReflectionExtensions.cs +++ b/src/Tizen.NUI/src/internal/Xaml/ReflectionExtensions.cs @@ -4,7 +4,7 @@ using System.ComponentModel; using System.Linq; using System.Reflection; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { internal static class ReflectionExtensions { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/RegisterXNamesVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/RegisterXNamesVisitor.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/RegisterXNamesVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/RegisterXNamesVisitor.cs index e6ad8fd86..8ca6ddeab 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/RegisterXNamesVisitor.cs +++ b/src/Tizen.NUI/src/internal/Xaml/RegisterXNamesVisitor.cs @@ -1,6 +1,6 @@ using System; using System.Collections.Generic; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/ResourcesLoader.cs b/src/Tizen.NUI/src/internal/Xaml/ResourcesLoader.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/ResourcesLoader.cs rename to src/Tizen.NUI/src/internal/Xaml/ResourcesLoader.cs index dfcd4ddc2..6b2565265 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/ResourcesLoader.cs +++ b/src/Tizen.NUI/src/internal/Xaml/ResourcesLoader.cs @@ -1,9 +1,11 @@ using System; using System.IO; using System.Reflection; +using Tizen.NUI; using System.Xml; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; +// [assembly:Dependency(typeof(Tizen.NUI.Xaml.ResourcesLoader))] namespace Tizen.NUI.Xaml { internal class ResourcesLoader : IResourcesLoader diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/RuntimeNamePropertyAttribute.cs b/src/Tizen.NUI/src/internal/Xaml/RuntimeNamePropertyAttribute.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/RuntimeNamePropertyAttribute.cs rename to src/Tizen.NUI/src/internal/Xaml/RuntimeNamePropertyAttribute.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/TypeArgumentsParser.cs b/src/Tizen.NUI/src/internal/Xaml/TypeArgumentsParser.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/TypeArgumentsParser.cs rename to src/Tizen.NUI/src/internal/Xaml/TypeArgumentsParser.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/TypeConversionAttribute.cs b/src/Tizen.NUI/src/internal/Xaml/TypeConversionAttribute.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/TypeConversionAttribute.cs rename to src/Tizen.NUI/src/internal/Xaml/TypeConversionAttribute.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/TypeConversionExtensions.cs b/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs similarity index 89% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/TypeConversionExtensions.cs rename to src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs index 3fca3e392..8f465936f 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/TypeConversionExtensions.cs +++ b/src/Tizen.NUI/src/internal/Xaml/TypeConversionExtensions.cs @@ -30,9 +30,9 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; -// using Tizen.NUI.XamlBinding.Internals; +// using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml.Internals; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { @@ -57,43 +57,18 @@ namespace Tizen.NUI.Xaml return ConvertTo(value, toType, getConverter, serviceProvider); } - static private Assembly assemblyOfConverter = null; - static private string nameSpaceOfConverter = null; - - static internal string GetConverterName(Type type) - { - if (null == TypeConversionExtensions.assemblyOfConverter) - { - Type position2DTypeConverterType = typeof(Position2DTypeConverter); - assemblyOfConverter = position2DTypeConverterType.Assembly; - - nameSpaceOfConverter = position2DTypeConverterType.FullName; - nameSpaceOfConverter = nameSpaceOfConverter.Substring(0, nameSpaceOfConverter.LastIndexOf('.') + 1); - } - - Type xamlToType = assemblyOfConverter.GetType(nameSpaceOfConverter + type.Name + "TypeConverter"); - - if (null == xamlToType) - { - return null; - } - else - { - return xamlToType.FullName; - } - } - internal static object ConvertTo(this object value, Type toType, Func minfoRetriever, IServiceProvider serviceProvider) { Func getConverter = () => { - var converterTypeName = GetConverterName(toType); + MemberInfo memberInfo; - if (null == converterTypeName) - { + var converterTypeName = toType.GetTypeInfo().CustomAttributes.GetTypeConverterTypeName(); + if (minfoRetriever != null && (memberInfo = minfoRetriever()) != null) + converterTypeName = memberInfo.CustomAttributes.GetTypeConverterTypeName() ?? converterTypeName; + if (converterTypeName == null) return null; - } var convertertype = Type.GetType(converterTypeName); return Activator.CreateInstance(convertertype); diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/ValueConverterProvider.cs b/src/Tizen.NUI/src/internal/Xaml/ValueConverterProvider.cs similarity index 95% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/ValueConverterProvider.cs rename to src/Tizen.NUI/src/internal/Xaml/ValueConverterProvider.cs index 005678eaf..1b8a56c66 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/ValueConverterProvider.cs +++ b/src/Tizen.NUI/src/internal/Xaml/ValueConverterProvider.cs @@ -1,6 +1,7 @@ using System; using System.Reflection; +using Tizen.NUI; using Tizen.NUI.Xaml; namespace Tizen.NUI.Xaml diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/VisualStateManager.cs b/src/Tizen.NUI/src/internal/Xaml/VisualStateManager.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/VisualStateManager.cs rename to src/Tizen.NUI/src/internal/Xaml/VisualStateManager.cs index c0fec0454..c005729b0 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/VisualStateManager.cs +++ b/src/Tizen.NUI/src/internal/Xaml/VisualStateManager.cs @@ -3,7 +3,8 @@ using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using Tizen.NUI.XamlBinding; +using Tizen.NUI; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { @@ -17,26 +18,26 @@ namespace Tizen.NUI.Xaml } public static readonly BindableProperty VisualStateGroupsProperty = - BindableProperty.CreateAttached("VisualStateGroups", typeof(VisualStateGroupList), typeof(Element), + BindableProperty.CreateAttached("VisualStateGroups", typeof(VisualStateGroupList), typeof(/*VisualElement*/BaseHandle), defaultValue: null, propertyChanged: VisualStateGroupsPropertyChanged, defaultValueCreator: bindable => new VisualStateGroupList()); static void VisualStateGroupsPropertyChanged(BindableObject bindable, object oldValue, object newValue) { - GoToState((Element)bindable, CommonStates.Normal); + GoToState((/*VisualElement*/BaseHandle)bindable, CommonStates.Normal); } - public static IList GetVisualStateGroups(Element visualElement) + public static IList GetVisualStateGroups(/*VisualElement*/BaseHandle visualElement) { return (IList)visualElement.GetValue(VisualStateGroupsProperty); } - public static void SetVisualStateGroups(Element visualElement, VisualStateGroupList value) + public static void SetVisualStateGroups(/*VisualElement*/BaseHandle visualElement, VisualStateGroupList value) { visualElement.SetValue(VisualStateGroupsProperty, value); } - public static bool GoToState(Element visualElement, string name) + public static bool GoToState(/*VisualElement*/BaseHandle visualElement, string name) { if (!visualElement.IsSet(VisualStateGroupsProperty)) { @@ -84,7 +85,7 @@ namespace Tizen.NUI.Xaml return false; } - public static bool HasVisualStateGroups(this Element element) + public static bool HasVisualStateGroups(this /*VisualElement*/BaseHandle element) { return element.IsSet(VisualStateGroupsProperty); } diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlCompilationAttribute.cs b/src/Tizen.NUI/src/internal/Xaml/XamlCompilationAttribute.cs similarity index 54% rename from src/Tizen.NUI.Xaml/src/public/Xaml/XamlCompilationAttribute.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlCompilationAttribute.cs index 141b82900..df4a1cb1c 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlCompilationAttribute.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlCompilationAttribute.cs @@ -1,38 +1,24 @@ using System; -using System.ComponentModel; using System.Reflection; using System.Runtime.CompilerServices; namespace Tizen.NUI.Xaml { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Flags] - public enum XamlCompilationOptions + internal enum XamlCompilationOptions { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] Skip = 1 << 0, - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] Compile = 1 << 1 } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class, Inherited = false)] - public sealed class XamlCompilationAttribute : Attribute + internal sealed class XamlCompilationAttribute : Attribute { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlCompilationAttribute(XamlCompilationOptions xamlCompilationOptions) { XamlCompilationOptions = xamlCompilationOptions; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlCompilationOptions XamlCompilationOptions { get; set; } } diff --git a/src/Tizen.NUI/src/internal/Xaml/XamlFilePathAttribute.cs b/src/Tizen.NUI/src/internal/Xaml/XamlFilePathAttribute.cs new file mode 100755 index 000000000..982479d79 --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/XamlFilePathAttribute.cs @@ -0,0 +1,13 @@ +using System; +using System.Runtime.CompilerServices; + +namespace Tizen.NUI.Xaml +{ + [AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)] + internal sealed class XamlFilePathAttribute : Attribute + { + public XamlFilePathAttribute([CallerFilePath] string filePath = "") + { + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlLoader.cs b/src/Tizen.NUI/src/internal/Xaml/XamlLoader.cs similarity index 93% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XamlLoader.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlLoader.cs index ae3a60fe2..e486e973f 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlLoader.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlLoader.cs @@ -33,10 +33,9 @@ using System.IO; using System.Reflection; using System.Text.RegularExpressions; using System.Xml; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI; +using Tizen.NUI.BaseComponents; +using Tizen.NUI.Binding; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml.Internals { @@ -67,34 +66,9 @@ namespace Tizen.NUI.Xaml { try { - string xaml = ""; - - var assembly = callingType.GetTypeInfo().Assembly; - var resourceId = XamlResourceIdAttribute.GetResourceIdForType(callingType); - - if (resourceId == null) - { - xaml = LegacyGetXamlForType(callingType); - } - else - { - using (var stream = assembly.GetManifestResourceStream(resourceId)) - { - if (stream != null) - using (var reader = new StreamReader(stream)) - xaml = reader.ReadToEnd(); - else - xaml = null; - } - } - + var xaml = GetXamlForType(callingType); if (string.IsNullOrEmpty(xaml)) - { - xaml = GetXamlForType(callingType); - if (string.IsNullOrEmpty(xaml)) - throw new XamlParseException(string.Format("Can't get xaml from type {0}", callingType), new XmlLineInfo()); - } - + throw new XamlParseException(string.Format("Can't get xaml from type {0}", callingType), new XmlLineInfo()); Load(view, xaml); } catch (XamlParseException e) @@ -164,6 +138,11 @@ namespace Tizen.NUI.Xaml continue; } + if (view is Element) + { + (view as Element).IsCreateByXaml = true; + } + var rootnode = new RuntimeRootNode (new XmlType (reader.NamespaceURI, reader.Name, null), view, (IXmlNamespaceResolver)reader); XamlParser.ParseXaml (rootnode, reader); Visit (rootnode, new HydrationContext { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlNode.cs b/src/Tizen.NUI/src/internal/Xaml/XamlNode.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XamlNode.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlNode.cs index 5e7f339a6..44a7df8c9 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlNode.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlNode.cs @@ -2,8 +2,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Xml; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlNodeVisitor.cs b/src/Tizen.NUI/src/internal/Xaml/XamlNodeVisitor.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XamlNodeVisitor.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlNodeVisitor.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParseException.cs b/src/Tizen.NUI/src/internal/Xaml/XamlParseException.cs similarity index 96% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParseException.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlParseException.cs index d96e83751..27a5841ba 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParseException.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlParseException.cs @@ -13,7 +13,7 @@ namespace Tizen.NUI.Xaml { StringBuilder ret = new StringBuilder("\nStack:\n"); - StackTrace st = new StackTrace(true); + StackTrace st = new StackTrace(); for (int i = 2; i < st.FrameCount; i++) { diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParser.cs b/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParser.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlParser.cs index 45d7a88a4..c2707dd3f 100755 --- a/src/Tizen.NUI.Xaml/src/internal/Xaml/XamlParser.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlParser.cs @@ -31,9 +31,10 @@ using System.Diagnostics; using System.Linq; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.Xaml.Forms.BaseComponents; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding; +using Tizen.NUI.BaseComponents; +using Tizen.NUI.UIComponents; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml { diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlResourceIdAttribute.cs b/src/Tizen.NUI/src/internal/Xaml/XamlResourceIdAttribute.cs similarity index 58% rename from src/Tizen.NUI.Xaml/src/public/Xaml/XamlResourceIdAttribute.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlResourceIdAttribute.cs index 02b13a27d..b95bfcf40 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlResourceIdAttribute.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlResourceIdAttribute.cs @@ -1,48 +1,15 @@ using System; -using System.ComponentModel; using System.Reflection; namespace Tizen.NUI.Xaml { - /// - /// The class XamlResourceIdAttribute. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [AttributeUsage(AttributeTargets.Assembly, Inherited = false, AllowMultiple = true)] - public sealed class XamlResourceIdAttribute : Attribute + internal sealed class XamlResourceIdAttribute : Attribute { - /// - /// Attribute ResourceId - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string ResourceId { get; set; } - - /// - /// Attribute Path - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Path { get; set; } - - /// - /// Attribute Type - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Type Type { get; set; } - /// - /// Create a new XamlResourceIdAttribute - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlResourceIdAttribute(string resourceId, string path, Type type) { ResourceId = resourceId; diff --git a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlServiceProvider.cs b/src/Tizen.NUI/src/internal/Xaml/XamlServiceProvider.cs similarity index 57% rename from src/Tizen.NUI.Xaml/src/public/Xaml/XamlServiceProvider.cs rename to src/Tizen.NUI/src/internal/Xaml/XamlServiceProvider.cs index 4f55f6d78..be1d5e83f 100755 --- a/src/Tizen.NUI.Xaml/src/public/Xaml/XamlServiceProvider.cs +++ b/src/Tizen.NUI/src/internal/Xaml/XamlServiceProvider.cs @@ -1,20 +1,12 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; namespace Tizen.NUI.Xaml { - /// - /// The class to provide xaml service. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XamlServiceProvider : IServiceProvider + internal class XamlServiceProvider : IServiceProvider { readonly Dictionary services = new Dictionary(); @@ -44,12 +36,6 @@ namespace Tizen.NUI.Xaml IValueConverterProvider = new ValueConverterProvider(); } - /// - /// Create a new XamlServiceProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlServiceProvider() { IValueConverterProvider = new ValueConverterProvider(); @@ -91,22 +77,12 @@ namespace Tizen.NUI.Xaml set { services[typeof (IValueConverterProvider)] = value; } } - /// - /// Get service. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] public object GetService(Type serviceType) { object service; return services.TryGetValue(serviceType, out service) ? service : null; } - /// - /// Add service. - /// - /// 6 - [EditorBrowsable(EditorBrowsableState.Never)] public void Add(Type type, object service) { services.Add(type, service); @@ -156,34 +132,16 @@ namespace Tizen.NUI.Xaml } } - /// - /// The class to provide simple value target. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class SimpleValueTargetProvider : IProvideParentValues, IProvideValueTarget, IReferenceProvider + internal class SimpleValueTargetProvider : IProvideParentValues, IProvideValueTarget { readonly object[] objectAndParents; readonly object targetProperty; - /// - /// Create a new SimpleValueTargetProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("SimpleValueTargetProvider(object[] objectAndParents) is obsolete as of version 2.3.4. Please use SimpleValueTargetProvider(object[] objectAndParents, object targetProperty) instead.")] public SimpleValueTargetProvider(object[] objectAndParents) : this (objectAndParents, null) { } - /// - /// Create a new SimpleValueTargetProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public SimpleValueTargetProvider(object[] objectAndParents, object targetProperty) { if (objectAndParents == null) @@ -209,47 +167,14 @@ namespace Tizen.NUI.Xaml { get { return targetProperty; } } - - /// - /// Find target by name. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object FindByName(string name) - { - for (var i = 0; i < objectAndParents.Length; i++) - { - var bo = objectAndParents[i] as BindableObject; - if (bo == null) continue; - var ns = NameScope.GetNameScope(bo) as INameScope; - if (ns == null) continue; - var value = ns.FindByName(name); - if (value != null) - return value; - } - return null; - } } - /// - /// The class to resolve xaml type. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XamlTypeResolver : IXamlTypeResolver + internal class XamlTypeResolver : IXamlTypeResolver { readonly Assembly currentAssembly; readonly GetTypeFromXmlName getTypeFromXmlName; readonly IXmlNamespaceResolver namespaceResolver; - /// - /// Create a new XamlTypeResolver. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlTypeResolver(IXmlNamespaceResolver namespaceResolver, Assembly currentAssembly) : this(namespaceResolver, XamlParser.GetElementType, currentAssembly) { @@ -325,106 +250,40 @@ namespace Tizen.NUI.Xaml XmlType xmlType, IXmlLineInfo xmlInfo, Assembly currentAssembly, out XamlParseException exception); } - /// - /// The class to provide xaml root object. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XamlRootObjectProvider : IRootObjectProvider + internal class XamlRootObjectProvider : IRootObjectProvider { - /// - /// Create a new XamlRootObjectProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XamlRootObjectProvider(object rootObject) { RootObject = rootObject; } - /// - /// Attribute RootObject. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object RootObject { get; } } - /// - /// The class to provide xaml line info. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XmlLineInfoProvider : IXmlLineInfoProvider + internal class XmlLineInfoProvider : IXmlLineInfoProvider { - /// - /// Create a new XmlLineInfoProvider. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public XmlLineInfoProvider(IXmlLineInfo xmlLineInfo) { XmlLineInfo = xmlLineInfo; } - /// - /// Attribute XmlLineInfo. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IXmlLineInfo XmlLineInfo { get; } } - /// - /// The class to provide name scope. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class NameScopeProvider : INameScopeProvider + internal class NameScopeProvider : INameScopeProvider { - /// - /// Attribute NameScope. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public INameScope NameScope { get; set; } } - /// - /// The class to resolve xml namespace. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class XmlNamespaceResolver : IXmlNamespaceResolver + internal class XmlNamespaceResolver : IXmlNamespaceResolver { readonly Dictionary namespaces = new Dictionary(); - /// - /// Get namespace. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IDictionary GetNamespacesInScope(XmlNamespaceScope scope) { throw new NotImplementedException(); } - /// - /// Look up name space. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string LookupNamespace(string prefix) { string result; @@ -433,23 +292,11 @@ namespace Tizen.NUI.Xaml return null; } - /// - /// Look up prefix. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string LookupPrefix(string namespaceName) { throw new NotImplementedException(); } - /// - /// Add prefix and ns. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public void Add(string prefix, string ns) { namespaces.Add(prefix, ns); diff --git a/src/Tizen.NUI/src/internal/Xaml/XmlLineInfo.cs b/src/Tizen.NUI/src/internal/Xaml/XmlLineInfo.cs new file mode 100755 index 000000000..52a886bad --- /dev/null +++ b/src/Tizen.NUI/src/internal/Xaml/XmlLineInfo.cs @@ -0,0 +1,29 @@ +using System.Xml; + +namespace Tizen.NUI.Xaml +{ + internal class XmlLineInfo : IXmlLineInfo + { + readonly bool _hasLineInfo; + + public XmlLineInfo() + { + } + + public XmlLineInfo(int linenumber, int lineposition) + { + _hasLineInfo = true; + LineNumber = linenumber; + LinePosition = lineposition; + } + + public bool HasLineInfo() + { + return _hasLineInfo; + } + + public int LineNumber { get; } + + public int LinePosition { get; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XmlName.cs b/src/Tizen.NUI/src/internal/Xaml/XmlName.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XmlName.cs rename to src/Tizen.NUI/src/internal/Xaml/XmlName.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/Xaml/XmlnsHelper.cs b/src/Tizen.NUI/src/internal/Xaml/XmlnsHelper.cs similarity index 100% rename from src/Tizen.NUI.Xaml/src/internal/Xaml/XmlnsHelper.cs rename to src/Tizen.NUI/src/internal/Xaml/XmlnsHelper.cs diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Accelerator.cs b/src/Tizen.NUI/src/internal/XamlBinding/Accelerator.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Accelerator.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Accelerator.cs index c5741859a..30501fa4b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Accelerator.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Accelerator.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [System.ComponentModel.TypeConverter(typeof(AcceleratorTypeConverter))] internal class Accelerator diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/AcceleratorTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/AcceleratorTypeConverter.cs similarity index 88% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/AcceleratorTypeConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/AcceleratorTypeConverter.cs index b1560fdf6..63601840b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/AcceleratorTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/AcceleratorTypeConverter.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class AcceleratorTypeConverter : TypeConverter { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ActionSheetArguments.cs b/src/Tizen.NUI/src/internal/XamlBinding/ActionSheetArguments.cs similarity index 92% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ActionSheetArguments.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ActionSheetArguments.cs index 1e9d7cd8c..6f4457191 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ActionSheetArguments.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ActionSheetArguments.cs @@ -1,8 +1,10 @@ using System.Collections.Generic; +using System.ComponentModel; using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal class ActionSheetArguments { public ActionSheetArguments(string title, string cancel, string destruction, IEnumerable buttons) diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/AlertArguments.cs b/src/Tizen.NUI/src/internal/XamlBinding/AlertArguments.cs similarity index 91% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/AlertArguments.cs rename to src/Tizen.NUI/src/internal/XamlBinding/AlertArguments.cs index 77fab01fa..18ae83978 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/AlertArguments.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/AlertArguments.cs @@ -1,7 +1,9 @@ +using System.ComponentModel; using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal class AlertArguments { public AlertArguments(string title, string message, string accept, string cancel) diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Application.cs b/src/Tizen.NUI/src/internal/XamlBinding/Application.cs similarity index 59% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Application.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Application.cs index 6d49baabf..1461a00f0 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Application.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Application.cs @@ -4,81 +4,57 @@ using System.Collections.ObjectModel; using System.Threading; using System.ComponentModel; using System.Threading.Tasks; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI; -using Tizen.NUI.Xaml; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI +namespace Tizen.NUI.Binding { - /// - /// A class to get resources in current application. - /// - /// Deprecated. Do not use. - public class GetResourcesProvider + internal class Application : Element, IResourcesProvider, IApplicationController, IElementConfiguration { - /// - /// Get resources in current application. - /// - /// Deprecated. Do not use. - static public Tizen.NUI.Binding.IResourcesProvider Get() - { - return Tizen.NUI.XamlBinding.Application.Current; - } - } -} - -namespace Tizen.NUI.XamlBinding -{ - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class Application : Element, Tizen.NUI.Binding.IResourcesProvider, IElementConfiguration - { - private NUIApplication application; - - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void Run(string[] args) - { - application.Run(args); - } - static Application s_current; Task> _propertiesTask; readonly Lazy> _platformConfigurationRegistry; + IAppIndexingProvider _appIndexProvider; + ReadOnlyCollection _logicalChildren; Page _mainPage; static SemaphoreSlim SaveSemaphore = new SemaphoreSlim(1, 1); - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Application() { - application = new NUIApplication(); - application.Created += (object sender, EventArgs e) => - { - Device.PlatformServices = new TizenPlatformServices(); - OnCreate(); - }; - + // var f = false; + // if (f) + // Loader.Load(); + NavigationProxy = new NavigationImpl(this); SetCurrentApplication(this); + + SystemResources = DependencyService.Get()?.GetSystemResources(); + SystemResources.ValuesChanged += OnParentResourcesChanged; _platformConfigurationRegistry = new Lazy>(() => new PlatformConfigurationRegistry(this)); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public void Quit() { Device.PlatformServices?.QuitApplication(); } - [EditorBrowsable(EditorBrowsableState.Never)] - private static void SetCurrentApplication(Application value) => Current = value; + public IAppLinks AppLinks + { + get + { + if (_appIndexProvider == null) + throw new ArgumentException("No IAppIndexingProvider was provided"); + if (_appIndexProvider.AppLinks == null) + throw new ArgumentException("No AppLinks implementation was found, if in Android make sure you installed the Tizen.NUI.Binding.AppLinks"); + return _appIndexProvider.AppLinks; + } + } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] + public static void SetCurrentApplication(Application value) => Current = value; + public static Application Current { get { return s_current; } @@ -92,8 +68,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Page MainPage { get { return _mainPage; } @@ -117,15 +91,13 @@ namespace Tizen.NUI.XamlBinding if (_mainPage != null) { _mainPage.Parent = this; - //_mainPage.NavigationProxy.Inner = NavigationProxy; + _mainPage.NavigationProxy.Inner = NavigationProxy; InternalChildren.Add(_mainPage); } OnPropertyChanged(); } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IDictionary Properties { get @@ -144,15 +116,25 @@ namespace Tizen.NUI.XamlBinding get { return _logicalChildren ?? (_logicalChildren = new ReadOnlyCollection(InternalChildren)); } } + [EditorBrowsable(EditorBrowsableState.Never)] + public NavigationProxy NavigationProxy { get; } + + [EditorBrowsable(EditorBrowsableState.Never)] + public int PanGestureId { get; set; } + internal IResourceDictionary SystemResources { get; } ObservableCollection InternalChildren { get; } = new ObservableCollection(); + [EditorBrowsable(EditorBrowsableState.Never)] + public void SetAppIndexingProvider(IAppIndexingProvider provider) + { + _appIndexProvider = provider; + } + ResourceDictionary _resources; - bool Tizen.NUI.Binding.IResourcesProvider.IsResourcesCreated => _resources != null; + bool IResourcesProvider.IsResourcesCreated => _resources != null; - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public ResourceDictionary XamlResources { get @@ -179,6 +161,19 @@ namespace Tizen.NUI.XamlBinding } } + public event EventHandler ModalPopped; + + public event EventHandler ModalPopping; + + public event EventHandler ModalPushed; + + public event EventHandler ModalPushing; + + public event EventHandler PageAppearing; + + public event EventHandler PageDisappearing; + + async void SaveProperties() { try @@ -191,8 +186,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public async Task SavePropertiesAsync() { if (Device.IsInvokeRequired) @@ -218,60 +211,38 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + public IPlatformElementConfiguration On() where T : IConfigPlatform + { + return _platformConfigurationRegistry.Value.On(); + } + protected virtual void OnAppLinkRequestReceived(Uri uri) { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected override void OnParentSet() { throw new InvalidOperationException("Setting a Parent on Application is invalid."); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnResume() { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnSleep() { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnStart() { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - protected virtual void OnCreate() - { - - } - - /// - /// Reset current application to null - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public static void ClearCurrent() { s_current = null; } - /// - /// Judge wheather element is a application - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public static bool IsApplicationOrNull(Element element) { @@ -280,7 +251,7 @@ namespace Tizen.NUI.XamlBinding internal override void OnParentResourcesChanged(IEnumerable> values) { - if (!((Tizen.NUI.Binding.IResourcesProvider)this).IsResourcesCreated || XamlResources.Count == 0) + if (!((IResourcesProvider)this).IsResourcesCreated || XamlResources.Count == 0) { base.OnParentResourcesChanged(values); return; @@ -298,22 +269,14 @@ namespace Tizen.NUI.XamlBinding OnResourcesChanged(changedResources); } - /// - /// Send application's link uri. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. + internal event EventHandler PopCanceled; + [EditorBrowsable(EditorBrowsableState.Never)] public void SendOnAppLinkRequestReceived(Uri uri) { OnAppLinkRequestReceived(uri); } - /// - /// Resume - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public void SendResume() { @@ -321,11 +284,6 @@ namespace Tizen.NUI.XamlBinding OnResume(); } - /// - /// Sleep - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public void SendSleep() { @@ -333,11 +291,6 @@ namespace Tizen.NUI.XamlBinding SavePropertiesAsFireAndForget(); } - /// - /// Sleep asyncly - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public Task SendSleepAsync() { @@ -345,11 +298,6 @@ namespace Tizen.NUI.XamlBinding return SavePropertiesAsync(); } - /// - /// Start - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public void SendStart() { @@ -372,12 +320,37 @@ namespace Tizen.NUI.XamlBinding return properties; } + internal void OnPageAppearing(Page page) + => PageAppearing?.Invoke(this, page); + + internal void OnPageDisappearing(Page page) + => PageDisappearing?.Invoke(this, page); + + void OnModalPopped(Page modalPage) + => ModalPopped?.Invoke(this, new ModalPoppedEventArgs(modalPage)); + + bool OnModalPopping(Page modalPage) + { + var args = new ModalPoppingEventArgs(modalPage); + ModalPopping?.Invoke(this, args); + return args.Cancel; + } + + void OnModalPushed(Page modalPage) + => ModalPushed?.Invoke(this, new ModalPushedEventArgs(modalPage)); + + void OnModalPushing(Page modalPage) + => ModalPushing?.Invoke(this, new ModalPushingEventArgs(modalPage)); + + void OnPopCanceled() + => PopCanceled?.Invoke(this, EventArgs.Empty); + async Task SetPropertiesAsync() { await SaveSemaphore.WaitAsync(); try { - await DependencyService.Get().SerializePropertiesAsync(Properties); + await DependencyService.Get()?.SerializePropertiesAsync(Properties); } finally { @@ -385,5 +358,49 @@ namespace Tizen.NUI.XamlBinding } } + + class NavigationImpl : NavigationProxy + { + readonly Application _owner; + + public NavigationImpl(Application owner) + { + _owner = owner; + } + + protected override async Task OnPopModal(bool animated) + { + Page modal = ModalStack[ModalStack.Count - 1]; + if (_owner.OnModalPopping(modal)) + { + _owner.OnPopCanceled(); + return null; + } + Page result = await base.OnPopModal(animated); + result.Parent = null; + _owner.OnModalPopped(result); + return result; + } + + protected override async Task OnPushModal(Page modal, bool animated) + { + _owner.OnModalPushing(modal); + + modal.Parent = _owner; + + if (modal.NavigationProxy.ModalStack.Count == 0) + { + modal.NavigationProxy.Inner = this; + await base.OnPushModal(modal, animated); + } + else + { + await base.OnPushModal(modal, animated); + modal.NavigationProxy.Inner = this; + } + + _owner.OnModalPushed(modal); + } + } } } \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BaseMenuItem.cs b/src/Tizen.NUI/src/internal/XamlBinding/BaseMenuItem.cs similarity index 52% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/BaseMenuItem.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BaseMenuItem.cs index d71ceec82..c0abdb0b7 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BaseMenuItem.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BaseMenuItem.cs @@ -1,4 +1,6 @@ -namespace Tizen.NUI.XamlBinding +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Binding { internal abstract class BaseMenuItem : Element { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindableObjectExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindableObjectExtensions.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindableObjectExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindableObjectExtensions.cs index 29c2f5aa8..8c096d061 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindableObjectExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindableObjectExtensions.cs @@ -1,7 +1,7 @@ using System; using System.Linq.Expressions; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal static class BindableObjectExtensions { diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindableProperty.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindableProperty.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/BindableProperty.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindableProperty.cs index 033b0ce61..9aa62d802 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindableProperty.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindableProperty.cs @@ -4,18 +4,16 @@ using System.Diagnostics; using System.Linq.Expressions; using System.Reflection; using System.ComponentModel; -using Tizen.NUI; +using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// A BindableProperty is a backing store for properties allowing bindings on BindableObject. /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [DebuggerDisplay("{PropertyName}")] - [TypeConverter(typeof(BindablePropertyTypeConverter))] + [TypeConverter(typeof(BindablePropertyConverter))] [EditorBrowsable(EditorBrowsableState.Never)] public sealed class BindableProperty { @@ -25,8 +23,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The old property value. /// The new property value. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate void BindingPropertyChangedDelegate(BindableObject bindable, object oldValue, object newValue); /// @@ -36,8 +32,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The old property value. /// The new property value. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate void BindingPropertyChangedDelegate(BindableObject bindable, TPropertyType oldValue, TPropertyType newValue); /// @@ -46,8 +40,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The old property value. /// The new property value. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate void BindingPropertyChangingDelegate(BindableObject bindable, object oldValue, object newValue); /// @@ -57,8 +49,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The old property value. /// The new property value. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate void BindingPropertyChangingDelegate(BindableObject bindable, TPropertyType oldValue, TPropertyType newValue); /// @@ -67,8 +57,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The value to coerce. /// System.Object - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate object CoerceValueDelegate(BindableObject bindable, object value); /// @@ -78,8 +66,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The value to coerce. /// TPropertyType - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate TPropertyType CoerceValueDelegate(BindableObject bindable, TPropertyType value); /// @@ -87,8 +73,6 @@ namespace Tizen.NUI.XamlBinding /// /// The bindable object that contains the property. /// System.Object - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate object CreateDefaultValueDelegate(BindableObject bindable); /// @@ -98,8 +82,6 @@ namespace Tizen.NUI.XamlBinding /// The type of the bound property. /// The bindable object that contains the property. /// TPropertyType - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate TPropertyType CreateDefaultValueDelegate(TDeclarer bindable); /// @@ -108,8 +90,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The default value. /// System.Boolean - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate bool ValidateValueDelegate(BindableObject bindable, object value); /// @@ -119,8 +99,6 @@ namespace Tizen.NUI.XamlBinding /// The bindable object that contains the property. /// The default value. /// System.Boolean - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public delegate bool ValidateValueDelegate(BindableObject bindable, TPropertyType value); static readonly Dictionary WellKnownConvertTypes = new Dictionary @@ -202,43 +180,31 @@ namespace Tizen.NUI.XamlBinding /// /// Gets the type declaring the BindableProperty. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Type DeclaringType { get; private set; } /// /// Gets the default BindingMode. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public BindingMode DefaultBindingMode { get; private set; } /// /// Gets the default value for the BindableProperty. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object DefaultValue { get; } /// /// Gets a value indicating if the BindableProperty is created form a BindablePropertyKey. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public bool IsReadOnly { get; private set; } /// /// Gets the property name. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string PropertyName { get; } /// /// Gets the type of the BindableProperty. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Type ReturnType { get; } internal BindablePropertyBindingChanging BindingChanging { get; private set; } @@ -269,8 +235,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created BindableProperty. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("Create<> (generic) is obsolete as of version 2.1.0 and is no longer supported.")] public static BindableProperty Create(Expression> getter, TPropertyType defaultValue, BindingMode defaultBindingMode = BindingMode.OneWay, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, @@ -294,8 +258,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created BindableProperty. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static BindableProperty Create(string propertyName, Type returnType, Type declaringType, object defaultValue = null, BindingMode defaultBindingMode = BindingMode.OneWay, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, BindingPropertyChangingDelegate propertyChanging = null, CoerceValueDelegate coerceValue = null, CreateDefaultValueDelegate defaultValueCreator = null) @@ -317,8 +279,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate to be run when the value will change. This parameter is optional. Default is null. /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("CreateAttached<> (generic) is obsolete as of version 2.1.0 and is no longer supported.")] public static BindableProperty CreateAttached(Expression> staticgetter, TPropertyType defaultValue, BindingMode defaultBindingMode = BindingMode.OneWay, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, @@ -343,8 +303,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created BindableProperty. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static BindableProperty CreateAttached(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWay, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, BindingPropertyChangingDelegate propertyChanging = null, CoerceValueDelegate coerceValue = null, CreateDefaultValueDelegate defaultValueCreator = null) @@ -366,8 +324,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created attached read-only BindablePropertyKey. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("CreateAttachedReadOnly<> (generic) is obsolete as of version 2.1.0 and is no longer supported.")] public static BindablePropertyKey CreateAttachedReadOnly(Expression> staticgetter, TPropertyType defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, ValidateValueDelegate validateValue = null, @@ -394,8 +350,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created attached read-only BindablePropertyKey. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static BindablePropertyKey CreateAttachedReadOnly(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, BindingPropertyChangingDelegate propertyChanging = null, CoerceValueDelegate coerceValue = null, CreateDefaultValueDelegate defaultValueCreator = null) @@ -419,8 +373,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created BindablePropertyKey. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("CreateReadOnly<> (generic) is obsolete as of version 2.1.0 and is no longer supported.")] public static BindablePropertyKey CreateReadOnly(Expression> getter, TPropertyType defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, ValidateValueDelegate validateValue = null, @@ -444,8 +396,6 @@ namespace Tizen.NUI.XamlBinding /// A delegate used to coerce the range of a value. This parameter is optional. Default is null. /// A Func used to initialize default value for reference types. /// A newly created BindablePropertyKey. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static BindablePropertyKey CreateReadOnly(string propertyName, Type returnType, Type declaringType, object defaultValue, BindingMode defaultBindingMode = BindingMode.OneWayToSource, ValidateValueDelegate validateValue = null, BindingPropertyChangedDelegate propertyChanged = null, BindingPropertyChangingDelegate propertyChanging = null, CoerceValueDelegate coerceValue = null, CreateDefaultValueDelegate defaultValueCreator = null) diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyConverter.cs similarity index 88% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyConverter.cs index 44ae6276b..ea258e617 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyConverter.cs @@ -1,25 +1,18 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Reflection; using System.Xml; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class to convert bindable property. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.BindablePropertyConverter")] + [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.BindablePropertyConverter")] [Xaml.TypeConversion(typeof(BindableProperty))] - [EditorBrowsable(EditorBrowsableState.Never)] - public sealed class BindablePropertyTypeConverter : TypeConverter, IExtendedTypeConverter + internal sealed class BindablePropertyConverter : TypeConverter, IExtendedTypeConverter { object IExtendedTypeConverter.ConvertFrom(CultureInfo culture, object value, IServiceProvider serviceProvider) { @@ -84,8 +77,6 @@ namespace Tizen.NUI.XamlBinding throw new XamlParseException($"Can't resolve {value}. Syntax is [[prefix:]Type.]PropertyName.", lineinfo); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public override object ConvertFromInvariantString(string value) { if (string.IsNullOrWhiteSpace(value)) @@ -113,7 +104,7 @@ namespace Tizen.NUI.XamlBinding throw new XamlParseException($"Can't resolve {name} on {type.Name}", lineinfo); var bp = bpinfo.GetValue(null) as BindableProperty; var isObsolete = bpinfo.GetCustomAttribute() != null; - if (bp.PropertyName != propertyName && !isObsolete) + if (bp != null && bp.PropertyName != propertyName && !isObsolete) throw new XamlParseException($"The PropertyName of {type.Name}.{name} is not {propertyName}", lineinfo); return bp; } @@ -133,7 +124,7 @@ namespace Tizen.NUI.XamlBinding var vsTarget = parents[3]; // Are these Visual States directly on a VisualElement? - if (vsTarget is Element) + if (vsTarget is /*VisualElement*/BaseHandle) { return vsTarget.GetType(); } diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyKey.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyKey.cs similarity index 65% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyKey.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyKey.cs index bd1498e98..4ab8e4a74 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindablePropertyKey.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindablePropertyKey.cs @@ -1,13 +1,11 @@ using System; using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// The secret key to a BindableProperty, used to implement a BindableProperty with restricted write access. /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public sealed class BindablePropertyKey { @@ -22,8 +20,6 @@ namespace Tizen.NUI.XamlBinding /// /// Gets the BindableProperty. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public BindableProperty BindableProperty { get; private set; } } } \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Binding.cs b/src/Tizen.NUI/src/internal/XamlBinding/Binding.cs similarity index 83% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Binding.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Binding.cs index a708d06f7..bbbd9d918 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Binding.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Binding.cs @@ -6,13 +6,11 @@ using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public sealed class Binding : BindingBase + internal sealed class Binding : BindingBase { internal const string SelfPath = "."; IValueConverter _converter; @@ -23,14 +21,10 @@ namespace Tizen.NUI.XamlBinding object _source; string _updateSourceEventName; - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Binding() { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Binding(string path, BindingMode mode = BindingMode.Default, IValueConverter converter = null, object converterParameter = null, string stringFormat = null, object source = null) { if (path == null) @@ -46,8 +40,6 @@ namespace Tizen.NUI.XamlBinding Source = source; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IValueConverter Converter { get { return _converter; } @@ -59,8 +51,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object ConverterParameter { get { return _converterParameter; } @@ -72,8 +62,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Path { get { return _path; } @@ -86,8 +74,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object Source { get { return _source; } @@ -98,7 +84,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public string UpdateSourceEventName { get { return _updateSourceEventName; } @@ -108,8 +93,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete] public static Binding Create(Expression> propertyGetter, BindingMode mode = BindingMode.Default, IValueConverter converter = null, object converterParameter = null, string stringFormat = null) @@ -216,7 +199,7 @@ namespace Tizen.NUI.XamlBinding string indexerName = defaultMember != null ? defaultMember.MemberName : "Item"; MethodInfo getterInfo = - declarerType.GetProperties().Where(pi => pi.Name == indexerName && pi.CanRead && pi.GetMethod.IsPublic && !pi.GetMethod.IsStatic).Select(pi => pi.GetMethod).FirstOrDefault(); + declarerType.GetProperties().Where(pi => (pi.GetMethod != null) && pi.Name == indexerName && pi.CanRead && pi.GetMethod.IsPublic && !pi.GetMethod.IsStatic).Select(pi => pi.GetMethod).FirstOrDefault(); if (getterInfo != null) { if (getterInfo == methodCall.Method) diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingBase.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindingBase.cs similarity index 77% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingBase.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindingBase.cs index a70049d80..93a2355f8 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingBase.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindingBase.cs @@ -3,15 +3,13 @@ using System.Collections; using System.Runtime.CompilerServices; using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// An abstract class that provides a BindingMode and a formatting option. /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] - public abstract class BindingBase + internal abstract class BindingBase { static readonly ConditionalWeakTable SynchronizedCollections = new ConditionalWeakTable(); @@ -27,8 +25,6 @@ namespace Tizen.NUI.XamlBinding /// /// Gets or sets the mode for this binding. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public BindingMode Mode { get { return _mode; } @@ -50,8 +46,6 @@ namespace Tizen.NUI.XamlBinding /// /// Gets or sets the string format for this binding. /// - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string StringFormat { get { return _stringFormat; } @@ -63,9 +57,7 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object TargetNullValue + public object TargetNullValue { get { return _targetNullValue; } set { @@ -74,9 +66,7 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public object FallbackValue { + public object FallbackValue { get => _fallbackValue; set { ThrowIfApplied(); @@ -94,8 +84,6 @@ namespace Tizen.NUI.XamlBinding /// Stops synchronization on the collection. /// /// The collection on which to stop synchronization. - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static void DisableCollectionSynchronization(IEnumerable collection) { if (collection == null) @@ -104,8 +92,6 @@ namespace Tizen.NUI.XamlBinding SynchronizedCollections.Remove(collection); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static void EnableCollectionSynchronization(IEnumerable collection, object context, CollectionSynchronizationCallback callback) { if (collection == null) diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingBaseExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindingBaseExtensions.cs similarity index 89% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingBaseExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindingBaseExtensions.cs index 740807967..3a637fa3c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingBaseExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindingBaseExtensions.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal static class BindingBaseExtensions { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingExpression.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindingExpression.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingExpression.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindingExpression.cs index 880014d8f..ca83712b1 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingExpression.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindingExpression.cs @@ -5,10 +5,10 @@ using System.Diagnostics; using System.Globalization; using System.Linq; using System.Reflection; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; using System.Runtime.CompilerServices; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class BindingExpression { @@ -170,7 +170,7 @@ namespace Tizen.NUI.XamlBinding return; } - target.SetValueCore(property, value, SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted); + target.SetValueCore(property, value, SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted, false); } else if (needsSetter && part.LastSetter != null && current != null) { @@ -342,40 +342,48 @@ namespace Tizen.NUI.XamlBinding if (property != null) { - if (property.CanRead && property.GetMethod.IsPublic && !property.GetMethod.IsStatic) - part.LastGetter = property.GetMethod; - if (property.CanWrite && property.SetMethod.IsPublic && !property.SetMethod.IsStatic) + if (property.CanRead && property.GetMethod != null) { - part.LastSetter = property.SetMethod; - part.SetterType = part.LastSetter.GetParameters().Last().ParameterType; - - if (Binding.AllowChaining) + if (property.GetMethod.IsPublic && !property.GetMethod.IsStatic) + { + part.LastGetter = property.GetMethod; + } + } + if (property.CanWrite && property.SetMethod != null) + { + if(property.SetMethod.IsPublic && !property.SetMethod.IsStatic) { - FieldInfo bindablePropertyField = sourceType.GetDeclaredField(part.Content + "Property"); - if (bindablePropertyField != null && bindablePropertyField.FieldType == typeof(BindableProperty) && sourceType.ImplementedInterfaces.Contains(typeof(IElementController))) + part.LastSetter = property.SetMethod; + part.SetterType = part.LastSetter.GetParameters().Last().ParameterType; + + if (Binding.AllowChaining) { - MethodInfo setValueMethod = null; -#if NETSTANDARD1_0 - foreach (MethodInfo m in sourceType.AsType().GetRuntimeMethods()) + FieldInfo bindablePropertyField = sourceType.GetDeclaredField(part.Content + "Property"); + if (bindablePropertyField != null && bindablePropertyField.FieldType == typeof(BindableProperty) && sourceType.ImplementedInterfaces.Contains(typeof(IElementController))) { - if (m.Name.EndsWith("IElementController.SetValueFromRenderer")) + MethodInfo setValueMethod = null; +#if NETSTANDARD1_0 + foreach (MethodInfo m in sourceType.AsType().GetRuntimeMethods()) { - ParameterInfo[] parameters = m.GetParameters(); - if (parameters.Length == 2 && parameters[0].ParameterType == typeof(BindableProperty)) + if (m.Name.EndsWith("IElementController.SetValueFromRenderer")) { - setValueMethod = m; - break; + ParameterInfo[] parameters = m.GetParameters(); + if (parameters.Length == 2 && parameters[0].ParameterType == typeof(BindableProperty)) + { + setValueMethod = m; + break; + } } } - } #else - setValueMethod = typeof(IElementController).GetMethod("SetValueFromRenderer", new[] { typeof(BindableProperty), typeof(object) }); + setValueMethod = typeof(IElementController).GetMethod("SetValueFromRenderer", new[] { typeof(BindableProperty), typeof(object) }); #endif - if (setValueMethod != null) - { - part.LastSetter = setValueMethod; - part.IsBindablePropertySetter = true; - part.BindablePropertyField = bindablePropertyField.GetValue(null); + if (setValueMethod != null) + { + part.LastSetter = setValueMethod; + part.IsBindablePropertySetter = true; + part.BindablePropertyField = bindablePropertyField.GetValue(null); + } } } } @@ -533,7 +541,7 @@ namespace Tizen.NUI.XamlBinding public BindingExpressionPart(BindingExpression expression, string content, bool isIndexer = false) { _expression = expression; - IsSelf = content == Tizen.NUI.XamlBinding.Binding.SelfPath; + IsSelf = content == Tizen.NUI.Binding.Binding.SelfPath; Content = content; IsIndexer = isIndexer; diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingMode.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindingMode.cs similarity index 88% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingMode.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindingMode.cs index ddcbe1751..bf1ff9ab9 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/BindingMode.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindingMode.cs @@ -1,12 +1,10 @@ using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// The direction of changes propagation for bindings. /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. [EditorBrowsable(EditorBrowsableState.Never)] public enum BindingMode { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/BindingTypeConverter.cs similarity index 68% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingTypeConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/BindingTypeConverter.cs index c1e58cc64..62839e27e 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/BindingTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/BindingTypeConverter.cs @@ -1,6 +1,6 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.BindingTypeConverter")] + [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.BindingTypeConverter")] [Xaml.TypeConversion(typeof(Binding))] internal sealed class BindingTypeConverter : TypeConverter { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationCallback.cs b/src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationCallback.cs new file mode 100755 index 000000000..056dfe867 --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationCallback.cs @@ -0,0 +1,7 @@ +using System; +using System.Collections; + +namespace Tizen.NUI.Binding +{ + internal delegate void CollectionSynchronizationCallback(IEnumerable collection, object context, Action accessMethod, bool writeAccess); +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/CollectionSynchronizationContext.cs b/src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationContext.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/CollectionSynchronizationContext.cs rename to src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationContext.cs index f0b4bc4ed..b2c36a7fa 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/CollectionSynchronizationContext.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/CollectionSynchronizationContext.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal sealed class CollectionSynchronizationContext { diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/ColorTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/ColorTypeConverter.cs similarity index 83% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/ColorTypeConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ColorTypeConverter.cs index 32894285b..51cb27334 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/ColorTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ColorTypeConverter.cs @@ -1,18 +1,16 @@ using System; -using System.ComponentModel; using System.Globalization; -using Tizen.NUI; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.ColorTypeConverter")] + [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.ColorTypeConverter")] [Xaml.TypeConversion(typeof(Color))] - public class ColorTypeConverter : TypeConverter + internal class ColorTypeConverter : TypeConverter { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] + // Supported inputs + // HEX #rgb, #argb, #rrggbb, #aarrggbb + // float array 0.5,0.5,0.5,0.5 + // Predefined color case insensitive public override object ConvertFromInvariantString(string value) { if (value != null) @@ -74,8 +72,6 @@ namespace Tizen.NUI.XamlBinding return (j << 4) | j; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static Color FromRgba(int r, int g, int b, int a) { float red = (float)r / 255; @@ -85,8 +81,6 @@ namespace Tizen.NUI.XamlBinding return new Color(red, green, blue, alpha); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static Color FromRgb(int r, int g, int b) { return FromRgba(r, g, b, 255); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Configuration.cs b/src/Tizen.NUI/src/internal/XamlBinding/Configuration.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Configuration.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Configuration.cs index 9e8898e31..a99a5c2c2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Configuration.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Configuration.cs @@ -1,5 +1,5 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class Configuration : IPlatformElementConfiguration where TPlatform : IConfigPlatform diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ContentPropertyAttribute.cs b/src/Tizen.NUI/src/internal/XamlBinding/ContentPropertyAttribute.cs similarity index 79% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ContentPropertyAttribute.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ContentPropertyAttribute.cs index 53cfb1730..77faaa8ec 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ContentPropertyAttribute.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ContentPropertyAttribute.cs @@ -9,12 +9,12 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [AttributeUsage(AttributeTargets.Class)] internal sealed class ContentPropertyAttribute : Attribute { - internal static string[] ContentPropertyTypes = { "Tizen.NUI.XamlBinding.ContentPropertyAttribute", "System.Windows.Markup.ContentPropertyAttribute" }; + internal static string[] ContentPropertyTypes = { "Tizen.NUI.Binding.ContentPropertyAttribute", "System.Windows.Markup.ContentPropertyAttribute" }; public ContentPropertyAttribute(string name) { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ControlTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/ControlTemplate.cs similarity index 85% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ControlTemplate.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ControlTemplate.cs index baec3ee42..ae9c3a15b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ControlTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ControlTemplate.cs @@ -1,10 +1,12 @@ using System; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// Template that specifies a group of styles and effects for controls. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal class ControlTemplate : ElementTemplate { /// diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplate.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs index 1191b2fca..feb86cc4a 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplate.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class DataTemplate : ElementTemplate { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplateExtensions.cs similarity index 83% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DataTemplateExtensions.cs index b6191db32..e966fdaa0 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplateExtensions.cs @@ -1,5 +1,8 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal static class DataTemplateExtensions { public static DataTemplate SelectDataTemplate(this DataTemplate self, object item, BindableObject container) diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateSelector.cs b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplateSelector.cs similarity index 81% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateSelector.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DataTemplateSelector.cs index 5913df01b..c7afa2c75 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DataTemplateSelector.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DataTemplateSelector.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal abstract class DataTemplateSelector : DataTemplate { @@ -10,6 +10,10 @@ namespace Tizen.NUI.XamlBinding public DataTemplate SelectTemplate(object item, BindableObject container) { DataTemplate dataTemplate = null; + if (_dataTemplates.TryGetValue(item.GetType(), out dataTemplate)) + { + return dataTemplate; + } dataTemplate = OnSelectTemplate(item, container); if (dataTemplate is DataTemplateSelector) diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyAttribute.cs b/src/Tizen.NUI/src/internal/XamlBinding/DependencyAttribute.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyAttribute.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DependencyAttribute.cs index a29f70a5b..086b06111 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyAttribute.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DependencyAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal class DependencyAttribute : Attribute diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyFetchTarget.cs b/src/Tizen.NUI/src/internal/XamlBinding/DependencyFetchTarget.cs similarity index 74% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyFetchTarget.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DependencyFetchTarget.cs index ee2202ed5..43a96ea7d 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyFetchTarget.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DependencyFetchTarget.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal enum DependencyFetchTarget { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyResolver.cs b/src/Tizen.NUI/src/internal/XamlBinding/DependencyResolver.cs similarity index 96% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyResolver.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DependencyResolver.cs index 2f7637e85..6bf047b9e 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyResolver.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DependencyResolver.cs @@ -1,9 +1,9 @@ using System; using System.Linq; using System.Reflection; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal static class DependencyResolver { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyService.cs b/src/Tizen.NUI/src/internal/XamlBinding/DependencyService.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyService.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DependencyService.cs index a6221ab69..54e1424b4 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DependencyService.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DependencyService.cs @@ -2,10 +2,10 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal static class DependencyService { @@ -78,9 +78,9 @@ namespace Tizen.NUI.XamlBinding } Assembly[] assemblies = Device.GetAssemblies(); - if (Tizen.NUI.XamlBinding.Internals.Registrar.ExtraAssemblies != null) + if (Tizen.NUI.Binding.Internals.Registrar.ExtraAssemblies != null) { - assemblies = assemblies.Union(Tizen.NUI.XamlBinding.Internals.Registrar.ExtraAssemblies).ToArray(); + assemblies = assemblies.Union(Tizen.NUI.Binding.Internals.Registrar.ExtraAssemblies).ToArray(); } Initialize(assemblies); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Device.cs b/src/Tizen.NUI/src/internal/XamlBinding/Device.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Device.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Device.cs index 775f07628..8987212e5 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Device.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Device.cs @@ -5,9 +5,9 @@ using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal static class Device { @@ -83,9 +83,7 @@ namespace Tizen.NUI.XamlBinding get { if (s_platformServices == null) - { - s_platformServices = new TizenPlatformServices(); - } + throw new InvalidOperationException("You MUST call Tizen.NUI.Init(); prior to using it."); return s_platformServices; } set @@ -210,17 +208,17 @@ namespace Tizen.NUI.XamlBinding public static readonly string CaptionStyleKey = "CaptionStyle"; - public static readonly Style TitleStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = TitleStyleKey }; + public static readonly Style TitleStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = TitleStyleKey }; - public static readonly Style SubtitleStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = SubtitleStyleKey }; + public static readonly Style SubtitleStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = SubtitleStyleKey }; - public static readonly Style BodyStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = BodyStyleKey }; + public static readonly Style BodyStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = BodyStyleKey }; - public static readonly Style ListItemTextStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = ListItemTextStyleKey }; + public static readonly Style ListItemTextStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = ListItemTextStyleKey }; - public static readonly Style ListItemDetailTextStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = ListItemDetailTextStyleKey }; + public static readonly Style ListItemDetailTextStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = ListItemDetailTextStyleKey }; - public static readonly Style CaptionStyle = new Style(typeof(Tizen.NUI.Xaml.Forms.BaseComponents.TextLabel)) { BaseResourceKey = CaptionStyleKey }; + public static readonly Style CaptionStyle = new Style(typeof(Tizen.NUI.BaseComponents.TextLabel)) { BaseResourceKey = CaptionStyleKey }; } } } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceInfo.cs b/src/Tizen.NUI/src/internal/XamlBinding/DeviceInfo.cs similarity index 82% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceInfo.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DeviceInfo.cs index b17cdacfe..8fad818e6 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceInfo.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DeviceInfo.cs @@ -2,8 +2,9 @@ using System.ComponentModel; using System.Runtime.CompilerServices; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal abstract class DeviceInfo : INotifyPropertyChanged, IDisposable { DeviceOrientation _currentOrientation; @@ -24,6 +25,12 @@ namespace Tizen.NUI.XamlBinding public virtual double DisplayRound(double value) => Math.Round(value); + public abstract Size PixelScreenSize { get; } + + public abstract Size ScaledScreenSize { get; } + + public abstract double ScalingFactor { get; } + public void Dispose() { Dispose(true); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceOrientation.cs b/src/Tizen.NUI/src/internal/XamlBinding/DeviceOrientation.cs similarity index 64% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceOrientation.cs rename to src/Tizen.NUI/src/internal/XamlBinding/DeviceOrientation.cs index af374ba27..8453e20c1 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/DeviceOrientation.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/DeviceOrientation.cs @@ -1,5 +1,8 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal enum DeviceOrientation { Portrait, diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Effect.cs b/src/Tizen.NUI/src/internal/XamlBinding/Effect.cs similarity index 91% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Effect.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Effect.cs index a865b12bf..a70c710ad 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Effect.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Effect.cs @@ -1,11 +1,13 @@ using System; using System.ComponentModel; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// A collection of styles and properties that can be added to an element at run time. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal abstract class Effect { internal Effect() @@ -36,7 +38,7 @@ namespace Tizen.NUI.XamlBinding public static Effect Resolve(string name) { Effect result = null; - if (Tizen.NUI.XamlBinding.Internals.Registrar.Effects.TryGetValue(name, out Type effectType)) + if (Tizen.NUI.Binding.Internals.Registrar.Effects.TryGetValue(name, out Type effectType)) { result = (Effect)DependencyResolver.ResolveOrCreate(effectType); } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirection.cs b/src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirection.cs similarity index 80% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirection.cs rename to src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirection.cs index 8beb728ad..605588d07 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirection.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirection.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [Flags] internal enum EffectiveFlowDirection diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs index 4e10ff313..513b27bb9 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/EffectiveFlowDirectionExtensions.cs @@ -1,7 +1,10 @@ using System; +using System.ComponentModel; +using Tizen.NUI.Binding; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal static class EffectiveFlowDirectionExtensions { internal static EffectiveFlowDirection ToEffectiveFlowDirection(this FlowDirection self, bool isExplicit = false) diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementCollection.cs b/src/Tizen.NUI/src/internal/XamlBinding/ElementCollection.cs similarity index 88% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementCollection.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ElementCollection.cs index e2640c25e..6427287c6 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementCollection.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ElementCollection.cs @@ -1,6 +1,6 @@ using System.Collections.ObjectModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class ElementCollection : ObservableWrapper where T : Element { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementEventArgs.cs b/src/Tizen.NUI/src/internal/XamlBinding/ElementEventArgs.cs similarity index 91% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementEventArgs.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ElementEventArgs.cs index c0e6513a2..fcdeacd90 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementEventArgs.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ElementEventArgs.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class ElementEventArgs : EventArgs { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs similarity index 95% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementTemplate.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs index 9de7af2ed..34a8aa890 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ElementTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ElementTemplate.cs @@ -1,12 +1,14 @@ using System; using System.Collections.Generic; -using Tizen.NUI.XamlBinding.Internals; +using System.ComponentModel; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// Base class for DataTemplate and ControlTemplate classes. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal class ElementTemplate : IElement, IDataTemplate { List> _changeHandlers; diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EnumerableExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs similarity index 95% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/EnumerableExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs index f4e0e7f3d..dd52ab06a 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EnumerableExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/EnumerableExtensions.cs @@ -1,8 +1,10 @@ using System; using System.Collections.Generic; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal static class EnumerableExtensions { public static IEnumerable GetGesturesFor(this IEnumerable gestures, Func predicate = null) where T : GestureRecognizer diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EventArg.cs b/src/Tizen.NUI/src/internal/XamlBinding/EventArg.cs similarity index 71% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/EventArg.cs rename to src/Tizen.NUI/src/internal/XamlBinding/EventArg.cs index c402cd460..16c5ff62b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/EventArg.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/EventArg.cs @@ -1,7 +1,9 @@ using System; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal class EventArg : EventArgs { // Property variable diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExportEffectAttribute.cs b/src/Tizen.NUI/src/internal/XamlBinding/ExportEffectAttribute.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExportEffectAttribute.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ExportEffectAttribute.cs index b78c89e2a..a5f5aa02c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExportEffectAttribute.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ExportEffectAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal class ExportEffectAttribute : Attribute diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExtentsTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/ExtentsTypeConverter.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExtentsTypeConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ExtentsTypeConverter.cs index 5a4c1f652..cd9511385 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ExtentsTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ExtentsTypeConverter.cs @@ -1,7 +1,11 @@ using System; using System.Globalization; +using System.Linq; +using System.Reflection; -namespace Tizen.NUI.XamlBinding +using Tizen.NUI; + +namespace Tizen.NUI.Binding { internal class ExtentsTypeConverter : TypeConverter { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSource.cs b/src/Tizen.NUI/src/internal/XamlBinding/FileImageSource.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSource.cs rename to src/Tizen.NUI/src/internal/XamlBinding/FileImageSource.cs index 963eede28..f65a0e8ee 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSource.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/FileImageSource.cs @@ -1,6 +1,6 @@ using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [TypeConverter(typeof(FileImageSourceConverter))] internal sealed class FileImageSource : ImageSource diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSourceConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/FileImageSourceConverter.cs similarity index 93% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSourceConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/FileImageSourceConverter.cs index 5db70b40b..cf5c00995 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FileImageSourceConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/FileImageSourceConverter.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [Xaml.TypeConversion(typeof(FileImageSource))] internal sealed class FileImageSourceConverter : TypeConverter diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FlowDirection.cs b/src/Tizen.NUI/src/internal/XamlBinding/FlowDirection.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/FlowDirection.cs rename to src/Tizen.NUI/src/internal/XamlBinding/FlowDirection.cs index d23bfafc3..f30a1cd28 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/FlowDirection.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/FlowDirection.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [TypeConverter(typeof(FlowDirectionConverter))] internal enum FlowDirection diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/GestureRecognizer.cs b/src/Tizen.NUI/src/internal/XamlBinding/GestureRecognizer.cs similarity index 80% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/GestureRecognizer.cs rename to src/Tizen.NUI/src/internal/XamlBinding/GestureRecognizer.cs index eee08bf4a..b490a7134 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/GestureRecognizer.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/GestureRecognizer.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class GestureRecognizer : Element, IGestureRecognizer { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/HandlerAttribute.cs b/src/Tizen.NUI/src/internal/XamlBinding/HandlerAttribute.cs similarity index 93% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/HandlerAttribute.cs rename to src/Tizen.NUI/src/internal/XamlBinding/HandlerAttribute.cs index 9de9507cb..f582f5a08 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/HandlerAttribute.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/HandlerAttribute.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)] internal abstract class HandlerAttribute : Attribute diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppIndexingProvider.cs b/src/Tizen.NUI/src/internal/XamlBinding/IAppIndexingProvider.cs similarity index 72% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppIndexingProvider.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IAppIndexingProvider.cs index a1de516f3..3af69c6d4 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppIndexingProvider.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IAppIndexingProvider.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IAppIndexingProvider { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinkEntry.cs b/src/Tizen.NUI/src/internal/XamlBinding/IAppLinkEntry.cs similarity index 91% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinkEntry.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IAppLinkEntry.cs index 75498ad49..e08ea97df 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinkEntry.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IAppLinkEntry.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IAppLinkEntry { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinks.cs b/src/Tizen.NUI/src/internal/XamlBinding/IAppLinks.cs similarity index 86% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinks.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IAppLinks.cs index bbfe9a907..4cc17fbdd 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IAppLinks.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IAppLinks.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IAppLinks { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/IApplicationController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IApplicationController.cs new file mode 100755 index 000000000..296b6ccce --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/IApplicationController.cs @@ -0,0 +1,7 @@ +namespace Tizen.NUI.Binding +{ + internal interface IApplicationController + { + void SetAppIndexingProvider(IAppIndexingProvider appIndexing); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigElement.cs b/src/Tizen.NUI/src/internal/XamlBinding/IConfigElement.cs similarity index 75% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigElement.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IConfigElement.cs index b30776ed2..f9261d719 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigElement.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IConfigElement.cs @@ -1,9 +1,12 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { /// /// This interface is for internal use by platform renderers. /// /// + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IConfigElement where T : Element { /// diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigPlatform.cs b/src/Tizen.NUI/src/internal/XamlBinding/IConfigPlatform.cs similarity index 63% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigPlatform.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IConfigPlatform.cs index c50a2d006..a344ca9d9 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IConfigPlatform.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IConfigPlatform.cs @@ -1,7 +1,10 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { /// /// Base interface for marker classes that identify target platforms for platform specific effects. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IConfigPlatform { } } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IControlTemplated.cs b/src/Tizen.NUI/src/internal/XamlBinding/IControlTemplated.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IControlTemplated.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IControlTemplated.cs index f7c90acfb..403ccfc67 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IControlTemplated.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IControlTemplated.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IControlTemplated { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IEffectControlProvider.cs b/src/Tizen.NUI/src/internal/XamlBinding/IEffectControlProvider.cs similarity index 81% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IEffectControlProvider.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IEffectControlProvider.cs index f6cbc24ff..8f61b223a 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IEffectControlProvider.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IEffectControlProvider.cs @@ -1,8 +1,11 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { /// /// When implemented in a renderer, registers a platform-specific effect on an element. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IEffectControlProvider { /// diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElement.cs b/src/Tizen.NUI/src/internal/XamlBinding/IElement.cs similarity index 84% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElement.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IElement.cs index 6df3c941b..331ec2774 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElement.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IElement.cs @@ -1,7 +1,7 @@ using System; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IElement { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementConfiguration.cs b/src/Tizen.NUI/src/internal/XamlBinding/IElementConfiguration.cs similarity index 85% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementConfiguration.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IElementConfiguration.cs index 16a1e0f3e..0414a614a 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementConfiguration.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IElementConfiguration.cs @@ -1,5 +1,5 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IElementConfiguration where TElement : Element { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IElementController.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IElementController.cs index 63ab9a8cd..f6520690c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IElementController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IElementController.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IElementController { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/IExtendedTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/IExtendedTypeConverter.cs new file mode 100755 index 000000000..13318ddab --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/IExtendedTypeConverter.cs @@ -0,0 +1,13 @@ +using System; +using System.Globalization; + +namespace Tizen.NUI.Binding +{ + internal interface IExtendedTypeConverter + { + [Obsolete("IExtendedTypeConverter.ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string, IServiceProvider) instead.")] + object ConvertFrom(CultureInfo culture, object value, IServiceProvider serviceProvider); + + object ConvertFromInvariantString(string value, IServiceProvider serviceProvider); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IGestureRecognizer.cs b/src/Tizen.NUI/src/internal/XamlBinding/IGestureRecognizer.cs similarity index 77% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IGestureRecognizer.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IGestureRecognizer.cs index 83ba50a6e..9e2b6883b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IGestureRecognizer.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IGestureRecognizer.cs @@ -1,6 +1,6 @@ using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IGestureRecognizer : INotifyPropertyChanged { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IIsolatedStorageFile.cs b/src/Tizen.NUI/src/internal/XamlBinding/IIsolatedStorageFile.cs similarity index 82% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IIsolatedStorageFile.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IIsolatedStorageFile.cs index e71542dd9..756e76231 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IIsolatedStorageFile.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IIsolatedStorageFile.cs @@ -1,9 +1,11 @@ using System; +using System.ComponentModel; using System.IO; using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IIsolatedStorageFile { Task CreateDirectoryAsync(string path); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayout.cs b/src/Tizen.NUI/src/internal/XamlBinding/ILayout.cs similarity index 75% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayout.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ILayout.cs index 0a2fea1fc..dee1f59c2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayout.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ILayout.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface ILayout { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayoutController.cs b/src/Tizen.NUI/src/internal/XamlBinding/ILayoutController.cs similarity index 80% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayoutController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ILayoutController.cs index e0f8d7974..7ac639dc8 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ILayoutController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ILayoutController.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface ILayoutController { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IMenuItemController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IMenuItemController.cs similarity index 84% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IMenuItemController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IMenuItemController.cs index d9e3a2c41..42627ddbb 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IMenuItemController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IMenuItemController.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IMenuItemController { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INativeBindingService.cs b/src/Tizen.NUI/src/internal/XamlBinding/INativeBindingService.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/INativeBindingService.cs rename to src/Tizen.NUI/src/internal/XamlBinding/INativeBindingService.cs index 34341fb21..70845b6b4 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INativeBindingService.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/INativeBindingService.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface INativeBindingService diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigation.cs b/src/Tizen.NUI/src/internal/XamlBinding/INavigation.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigation.cs rename to src/Tizen.NUI/src/internal/XamlBinding/INavigation.cs index d63d99a45..d3b98e37f 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigation.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/INavigation.cs @@ -1,12 +1,13 @@ using System.Collections.Generic; using System.Threading.Tasks; -using Tizen.NUI.Xaml; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { /// /// Interface abstracting platform-specific navigation. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal interface INavigation { /// diff --git a/src/Tizen.NUI/src/internal/XamlBinding/INavigationMenuController.cs b/src/Tizen.NUI/src/internal/XamlBinding/INavigationMenuController.cs new file mode 100755 index 000000000..057bf854a --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/INavigationMenuController.cs @@ -0,0 +1,7 @@ +namespace Tizen.NUI.Binding +{ + internal interface INavigationMenuController : IViewController + { + void SendTargetSelected(Page target); + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationPageController.cs b/src/Tizen.NUI/src/internal/XamlBinding/INavigationPageController.cs similarity index 89% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationPageController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/INavigationPageController.cs index 506480af2..7b9bb3055 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/INavigationPageController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/INavigationPageController.cs @@ -1,10 +1,9 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using Tizen.NUI.XamlBinding.Internals; -using Tizen.NUI.Xaml; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface INavigationPageController { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPaddingElement.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPaddingElement.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPaddingElement.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IPaddingElement.cs index 3f6b7b262..e0c395ee3 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPaddingElement.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPaddingElement.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { interface IPaddingElement { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/IPageContainer.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPageContainer.cs new file mode 100755 index 000000000..e1aa75e09 --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPageContainer.cs @@ -0,0 +1,7 @@ +namespace Tizen.NUI.Binding +{ + internal interface IPageContainer where T : Page + { + T CurrentPage { get; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPageController.cs similarity index 86% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IPageController.cs index 233ad6ac8..46998f2f9 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPageController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPageController.cs @@ -1,7 +1,6 @@ using System.Collections.ObjectModel; -using Tizen.NUI; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IPageController { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatform.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPlatform.cs similarity index 83% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatform.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IPlatform.cs index 51cb62ec0..ca89cee1e 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatform.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPlatform.cs @@ -1,8 +1,11 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { /// /// For internal use. /// + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IPlatform { /// diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformElementConfiguration.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPlatformElementConfiguration.cs similarity index 80% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformElementConfiguration.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IPlatformElementConfiguration.cs index b35767c08..85ad36f70 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformElementConfiguration.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPlatformElementConfiguration.cs @@ -1,10 +1,13 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { /// /// Marker interface for returning platform-specific configuration elements. /// /// The platform type. /// The element type. + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IPlatformElementConfiguration : IConfigElement where TPlatform : IConfigPlatform where TElement : Element diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformServices.cs b/src/Tizen.NUI/src/internal/XamlBinding/IPlatformServices.cs similarity index 84% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformServices.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IPlatformServices.cs index e4dc9933a..5e46ac08c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IPlatformServices.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IPlatformServices.cs @@ -1,12 +1,14 @@ using System; +using System.ComponentModel; using System.IO; using System.Reflection; using System.Threading; using System.Threading.Tasks; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IPlatformServices { bool IsInvokeRequired { get; } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IRegisterable.cs b/src/Tizen.NUI/src/internal/XamlBinding/IRegisterable.cs similarity index 62% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IRegisterable.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IRegisterable.cs index 306fbdf6b..6974fccf2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IRegisterable.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IRegisterable.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IRegisterable { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IResourceDictionary.cs b/src/Tizen.NUI/src/internal/XamlBinding/IResourceDictionary.cs similarity index 71% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IResourceDictionary.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IResourceDictionary.cs index 88ff90d4b..e1132db52 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IResourceDictionary.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IResourceDictionary.cs @@ -1,8 +1,10 @@ using System; using System.Collections.Generic; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal interface IResourceDictionary : IEnumerable> { bool TryGetValue(string key, out object value); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ISystemResourcesProvider.cs b/src/Tizen.NUI/src/internal/XamlBinding/ISystemResourcesProvider.cs similarity index 50% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ISystemResourcesProvider.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ISystemResourcesProvider.cs index 98ffb60ab..ad52cc162 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ISystemResourcesProvider.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ISystemResourcesProvider.cs @@ -1,5 +1,8 @@ -namespace Tizen.NUI.XamlBinding +using System.ComponentModel; + +namespace Tizen.NUI.Binding { + [EditorBrowsable(EditorBrowsableState.Never)] internal interface ISystemResourcesProvider { IResourceDictionary GetSystemResources(); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ITimer.cs b/src/Tizen.NUI/src/internal/XamlBinding/ITimer.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ITimer.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ITimer.cs index 0542ef363..1a18f7a7e 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ITimer.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ITimer.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { //this will go once Timer is included in Pcl profiles internal interface ITimer diff --git a/src/Tizen.NUI/src/internal/XamlBinding/IViewContainer.cs b/src/Tizen.NUI/src/internal/XamlBinding/IViewContainer.cs new file mode 100755 index 000000000..9346c6cde --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/IViewContainer.cs @@ -0,0 +1,9 @@ +using System.Collections.Generic; + +namespace Tizen.NUI.Binding +{ + internal interface IViewContainer where T : /*VisualElement*/BaseHandle + { + IList Children { get; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IViewController.cs similarity index 70% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IViewController.cs index f31b79be8..76e9152f4 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IViewController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IViewController.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IViewController : IVisualElementController { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IVisualElementController.cs b/src/Tizen.NUI/src/internal/XamlBinding/IVisualElementController.cs similarity index 69% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/IVisualElementController.cs rename to src/Tizen.NUI/src/internal/XamlBinding/IVisualElementController.cs index 8266864f4..94eec775c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/IVisualElementController.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/IVisualElementController.cs @@ -1,7 +1,7 @@ using System; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IVisualElementController : IElementController { @@ -14,7 +14,7 @@ namespace Tizen.NUI.XamlBinding bool IsNativeStateConsistent { get; set; } bool IsPlatformEnabled { get; set; } NavigationProxy NavigationProxy { get; } - event EventHandler> BatchCommitted; - event EventHandler FocusChangeRequested; + event EventHandler> BatchCommitted; + event EventHandler FocusChangeRequested; } } \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSource.cs b/src/Tizen.NUI/src/internal/XamlBinding/ImageSource.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSource.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ImageSource.cs index 8df985811..fa59903e1 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSource.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ImageSource.cs @@ -4,7 +4,7 @@ using System.Reflection; using System.Threading; using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [TypeConverter(typeof(ImageSourceConverter))] internal abstract class ImageSource : Element diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSourceConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/ImageSourceConverter.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSourceConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ImageSourceConverter.cs index f3319d834..1082dc2f5 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ImageSourceConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ImageSourceConverter.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [Xaml.TypeConversion(typeof(ImageSource))] internal sealed class ImageSourceConverter : TypeConverter diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/AttachedCollection.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/AttachedCollection.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs index 14e3f1bd1..b1c524716 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/AttachedCollection.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/AttachedCollection.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class AttachedCollection : ObservableCollection, ICollection, IAttachedObject where T : BindableObject, IAttachedObject { diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Behavior.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Behavior.cs similarity index 65% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Behavior.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Behavior.cs index b141a5ca5..388f3a837 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Behavior.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Behavior.cs @@ -1,16 +1,9 @@ using System; -using System.ComponentModel; using System.Reflection; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class Behavior. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract class Behavior : BindableObject, IAttachedObject + internal abstract class Behavior : BindableObject, IAttachedObject { internal Behavior(Type associatedType) { @@ -19,8 +12,6 @@ namespace Tizen.NUI.XamlBinding AssociatedType = associatedType; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected Type AssociatedType { get; } void IAttachedObject.AttachTo(BindableObject bindable) @@ -37,14 +28,10 @@ namespace Tizen.NUI.XamlBinding OnDetachingFrom(bindable); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnAttachedTo(BindableObject bindable) { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected virtual void OnDetachingFrom(BindableObject bindable) { } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/BindingCondition.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/BindingCondition.cs similarity index 96% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/BindingCondition.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/BindingCondition.cs index bf1bb824c..63f031924 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/BindingCondition.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/BindingCondition.cs @@ -1,9 +1,9 @@ using System; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - [ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.PassthroughValueProvider")] + [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")] [AcceptEmptyServiceProvider] internal sealed class BindingCondition : Condition, IValueProvider { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/Condition.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Condition.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/Condition.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Condition.cs index 26cb65dbd..74ee0a2eb 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/Condition.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Condition.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal abstract class Condition { diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/DataTrigger.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/DataTrigger.cs similarity index 61% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/DataTrigger.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/DataTrigger.cs index 231165b8e..96e881550 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/DataTrigger.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/DataTrigger.cs @@ -1,25 +1,18 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty("Setters")] - [ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.PassthroughValueProvider")] + [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")] [AcceptEmptyServiceProvider] - public sealed class DataTrigger : TriggerBase, IValueProvider + internal sealed class DataTrigger : TriggerBase, IValueProvider { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public DataTrigger([TypeConverter(typeof(TypeTypeConverter))] [Parameter("TargetType")] Type targetType) : base(new BindingCondition(), targetType) { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public BindingBase Binding { get { return ((BindingCondition)Condition).Binding; } @@ -35,15 +28,11 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public new IList Setters { get { return base.Setters; } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object Value { get { return ((BindingCondition)Condition).Value; } diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/EventTrigger.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/EventTrigger.cs similarity index 75% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/EventTrigger.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/EventTrigger.cs index cedafda2e..749b3ec0c 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/EventTrigger.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/EventTrigger.cs @@ -1,20 +1,13 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Linq; using System.Reflection; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class EventTrigger. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty("Actions")] - public sealed class EventTrigger : TriggerBase + internal sealed class EventTrigger : TriggerBase { static readonly MethodInfo s_handlerinfo = typeof(EventTrigger).GetRuntimeMethods().Single(mi => mi.Name == "OnEventTriggered" && mi.IsPublic == false); readonly List _associatedObjects = new List(); @@ -24,19 +17,13 @@ namespace Tizen.NUI.XamlBinding string _eventname; Delegate _handlerdelegate; - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public EventTrigger() : base(typeof(BindableObject)) { Actions = new SealedList(); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IList Actions { get; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public string Event { get { return _eventname; } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/IAttachedObject.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/IAttachedObject.cs similarity index 82% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/IAttachedObject.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/IAttachedObject.cs index 72b98f59a..2e7e2c885 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/IAttachedObject.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/IAttachedObject.cs @@ -1,4 +1,4 @@ -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal interface IAttachedObject { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiCondition.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiCondition.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiCondition.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiCondition.cs index 249370d72..e25abf615 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiCondition.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiCondition.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal sealed class MultiCondition : Condition { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiTrigger.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiTrigger.cs similarity index 94% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiTrigger.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiTrigger.cs index ac6e74f3f..0311a3b87 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/MultiTrigger.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/MultiTrigger.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [ContentProperty("Setters")] internal sealed class MultiTrigger : TriggerBase diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/PropertyCondition.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/PropertyCondition.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/PropertyCondition.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/PropertyCondition.cs index 35d4727c8..54bc675fc 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/PropertyCondition.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/PropertyCondition.cs @@ -1,22 +1,22 @@ using System; using System.ComponentModel; using System.Reflection; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; namespace Tizen.NUI.Xaml { - [ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.PassthroughValueProvider")] + [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")] [AcceptEmptyServiceProvider] internal sealed class PropertyCondition : Condition, IValueProvider { readonly BindableProperty _stateProperty; - BindableProperty _property; + BindableProperty _property; object _triggerValue; public PropertyCondition() { - _stateProperty = BindableProperty.CreateAttached("State", typeof(bool), typeof(PropertyCondition), false, propertyChanged: this.OnStatePropertyChanged); + _stateProperty = BindableProperty.CreateAttached("State", typeof(bool), typeof(PropertyCondition), false, propertyChanged: OnStatePropertyChanged); } public BindableProperty Property diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Trigger.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Trigger.cs similarity index 60% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Trigger.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Trigger.cs index 75832884d..28fd9446e 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/Trigger.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/Trigger.cs @@ -1,31 +1,20 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Reflection; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class Trigger. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] [ContentProperty("Setters")] - [ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.PassthroughValueProvider")] + [ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.PassthroughValueProvider")] [AcceptEmptyServiceProvider] - public sealed class Trigger : TriggerBase, IValueProvider + internal sealed class Trigger : TriggerBase, IValueProvider { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Trigger([TypeConverter(typeof(TypeTypeConverter))] [Parameter("TargetType")] Type targetType) : base(new XamlPropertyCondition(), targetType) { } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public BindableProperty Property { get { return ((XamlPropertyCondition)Condition).Property; } @@ -41,15 +30,11 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public new IList Setters { get { return base.Setters; } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object Value { get { return ((XamlPropertyCondition)Condition).Value; } diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerAction.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerAction.cs similarity index 53% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerAction.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerAction.cs index 60b0ed2c6..7aa32d766 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerAction.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerAction.cs @@ -1,15 +1,8 @@ using System; -using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class TriggerAction. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract class TriggerAction + internal abstract class TriggerAction { internal TriggerAction(Type associatedType) { @@ -18,12 +11,8 @@ namespace Tizen.NUI.XamlBinding AssociatedType = associatedType; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected Type AssociatedType { get; private set; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] protected abstract void Invoke(object sender); internal virtual void DoInvoke(object sender) diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerBase.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerBase.cs similarity index 85% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerBase.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerBase.cs index fe6418df2..6eef4829f 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Interactivity/TriggerBase.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/TriggerBase.cs @@ -2,17 +2,10 @@ using System; using System.Reflection; using System.Collections; using System.Collections.Generic; -using System.ComponentModel; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - /// - /// The class TriggerBase. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public abstract class TriggerBase : BindableObject, IAttachedObject + internal abstract class TriggerBase : BindableObject, IAttachedObject { bool _isSealed; @@ -33,16 +26,10 @@ namespace Tizen.NUI.XamlBinding Condition.ConditionChanged = OnConditionChanged; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IList EnterActions { get; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IList ExitActions { get; } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public bool IsSealed { get { return _isSealed; } @@ -57,8 +44,6 @@ namespace Tizen.NUI.XamlBinding } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public Type TargetType { get; } internal Condition Condition { get; } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs similarity index 97% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs index 5b40402ed..b17ac58f4 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Interactivity/XamlPropertyCondition.cs @@ -3,9 +3,9 @@ using System.ComponentModel; using System.Reflection; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - [ProvideCompiled("Tizen.NUI.XamlC.PassthroughValueProvider")] + [ProvideCompiled("Tizen.NUI.Core.XamlC.PassthroughValueProvider")] [AcceptEmptyServiceProvider] internal sealed class XamlPropertyCondition : Condition, IValueProvider { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Internals/DynamicResource.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/DynamicResource.cs new file mode 100755 index 000000000..30545a84f --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/DynamicResource.cs @@ -0,0 +1,14 @@ +using System.ComponentModel; + +namespace Tizen.NUI.Binding.Internals +{ + internal class DynamicResource + { + public DynamicResource(string key) + { + Key = key; + } + + public string Key { get; private set; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDataTemplate.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDataTemplate.cs similarity index 62% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDataTemplate.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/IDataTemplate.cs index c20a4a2e7..676ec7aab 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDataTemplate.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDataTemplate.cs @@ -1,6 +1,7 @@ using System; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { internal interface IDataTemplate { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDeserializer.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDeserializer.cs similarity index 79% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDeserializer.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/IDeserializer.cs index f55e8dd99..8c6c63d0b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/IDeserializer.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDeserializer.cs @@ -1,7 +1,8 @@ using System.Collections.Generic; +using System.ComponentModel; using System.Threading.Tasks; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { internal interface IDeserializer { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDynamicResourceHandler.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDynamicResourceHandler.cs new file mode 100755 index 000000000..62d53a225 --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/IDynamicResourceHandler.cs @@ -0,0 +1,10 @@ +using System.ComponentModel; +using Tizen.NUI.Binding; + +namespace Tizen.NUI.Binding.Internals +{ + internal interface IDynamicResourceHandler + { + void SetDynamicResource(BindableProperty property, string key); + } +} diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Internals/INameScope.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/INameScope.cs new file mode 100755 index 000000000..c9b6ba83d --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/INameScope.cs @@ -0,0 +1,14 @@ +using System; +using System.ComponentModel; +using System.Xml; + +namespace Tizen.NUI.Binding.Internals +{ + internal interface INameScope + { + object FindByName(string name); + void RegisterName(string name, object scopedElement); + void UnregisterName(string name); + [Obsolete]void RegisterName(string name, object scopedElement, IXmlLineInfo xmlLineInfo); + } +} diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/INamescopeProvider.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/INamescopeProvider.cs similarity index 70% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/INamescopeProvider.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/INamescopeProvider.cs index 6eacf9ee2..ff4bbf1f2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/INamescopeProvider.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/INamescopeProvider.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { interface INameScopeProvider { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/InvalidationTrigger.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/InvalidationTrigger.cs similarity index 82% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/InvalidationTrigger.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/InvalidationTrigger.cs index 6ac149b7d..1e093210f 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/InvalidationTrigger.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/InvalidationTrigger.cs @@ -1,6 +1,7 @@ using System; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { [Flags] internal enum InvalidationTrigger diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/NameScope.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/NameScope.cs similarity index 66% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/NameScope.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/NameScope.cs index 5afc4e240..13b4bfa43 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/NameScope.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/NameScope.cs @@ -2,21 +2,13 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; using Tizen.NUI.Xaml; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { - /// - /// The class NameScope. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class NameScope : INameScope + internal class NameScope : INameScope { - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty NameScopeProperty = BindableProperty.CreateAttached("NameScope", typeof(INameScope), typeof(NameScope), default(INameScope)); readonly Dictionary _names = new Dictionary(); @@ -54,15 +46,11 @@ namespace Tizen.NUI.XamlBinding.Internals _names.Remove(name); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static INameScope GetNameScope(BindableObject bindable) { return (INameScope)bindable.GetValue(NameScopeProperty); } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public static void SetNameScope(BindableObject bindable, INameScope value) { bindable.SetValue(NameScopeProperty, value); diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/NumericExtensions.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/NumericExtensions.cs similarity index 88% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/NumericExtensions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/NumericExtensions.cs index 0432b88bd..995554a51 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/NumericExtensions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/NumericExtensions.cs @@ -1,6 +1,7 @@ using System; +using System.ComponentModel; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { internal static class NumericExtensions { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Internals/PreserveAttribute.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/PreserveAttribute.cs new file mode 100755 index 000000000..08aa02a4f --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/PreserveAttribute.cs @@ -0,0 +1,22 @@ +using System; +using System.ComponentModel; + +namespace Tizen.NUI.Binding.Internals +{ + [AttributeUsage(AttributeTargets.All)] + internal class PreserveAttribute : Attribute + { + public bool AllMembers; + public bool Conditional; + + public PreserveAttribute(bool allMembers, bool conditional) + { + AllMembers = allMembers; + Conditional = conditional; + } + + public PreserveAttribute() + { + } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Internals/ResourceLoader.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/ResourceLoader.cs new file mode 100755 index 000000000..9016f4d4f --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/ResourceLoader.cs @@ -0,0 +1,30 @@ +using System; +using System.IO; +using System.Reflection; +using Tizen.NUI.Xaml; + +namespace Tizen.NUI.Binding.Internals +{ + internal static class ResourceLoader + { + static Func resourceProvider = (asmName, path) => + { + string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource; + path = resource + path; + + string ret = File.ReadAllText(path); + return ret; + }; + + //takes a resource path, returns string content + public static Func ResourceProvider { + get => resourceProvider; + internal set { + DesignMode.IsDesignModeEnabled = true; + resourceProvider = value; + } + } + + internal static Action ExceptionHandler { get; set; } + } +} \ No newline at end of file diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/Ticker.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/Ticker.cs similarity index 96% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/Ticker.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/Ticker.cs index 1f20c9d7e..7b00bb973 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/Internals/Ticker.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/Ticker.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Diagnostics; using System.Linq; +using Tizen.NUI.Binding; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { internal abstract class Ticker { diff --git a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/TypedBinding.cs b/src/Tizen.NUI/src/internal/XamlBinding/Internals/TypedBinding.cs similarity index 92% rename from src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/TypedBinding.cs rename to src/Tizen.NUI/src/internal/XamlBinding/Internals/TypedBinding.cs index b0beb9388..ed30914a7 100755 --- a/src/Tizen.NUI.Xaml/src/public/XamlBinding/Internals/TypedBinding.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/Internals/TypedBinding.cs @@ -4,26 +4,18 @@ using System; using System.ComponentModel; using System.Globalization; using System.Collections.Generic; -using Tizen.NUI.XamlBinding; +using Tizen.NUI.Binding; -namespace Tizen.NUI.XamlBinding.Internals +namespace Tizen.NUI.Binding.Internals { - /// - /// The class TypedBindingBase. - /// - /// 6 - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] //FIXME: need a better name for this, and share with Binding, so we can share more unittests - public abstract class TypedBindingBase : BindingBase + internal abstract class TypedBindingBase : BindingBase { IValueConverter _converter; object _converterParameter; object _source; string _updateSourceEventName; - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public IValueConverter Converter { get { return _converter; } set { @@ -32,8 +24,6 @@ namespace Tizen.NUI.XamlBinding.Internals } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object ConverterParameter { get { return _converterParameter; } set { @@ -42,8 +32,6 @@ namespace Tizen.NUI.XamlBinding.Internals } } - /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] public object Source { get { return _source; } set { @@ -220,7 +208,7 @@ namespace Tizen.NUI.XamlBinding.Internals // Log.Warning("Binding", "{0} can not be converted to type '{1}'", value, property.ReturnType); return; } - target.SetValueCore(property, value, SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted); + target.SetValueCore(property, value, SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted, false); return; } diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidNavigationException.cs b/src/Tizen.NUI/src/internal/XamlBinding/InvalidNavigationException.cs similarity index 84% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidNavigationException.cs rename to src/Tizen.NUI/src/internal/XamlBinding/InvalidNavigationException.cs index 4b08123f3..25bebfb69 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidNavigationException.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/InvalidNavigationException.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class InvalidNavigationException : Exception { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidationEventArgs.cs b/src/Tizen.NUI/src/internal/XamlBinding/InvalidationEventArgs.cs similarity index 78% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidationEventArgs.cs rename to src/Tizen.NUI/src/internal/XamlBinding/InvalidationEventArgs.cs index da26253f5..04d7bc642 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/InvalidationEventArgs.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/InvalidationEventArgs.cs @@ -1,7 +1,7 @@ using System; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class InvalidationEventArgs : EventArgs { diff --git a/src/Tizen.NUI/src/internal/XamlBinding/Layout.cs b/src/Tizen.NUI/src/internal/XamlBinding/Layout.cs new file mode 100755 index 000000000..f3a00719d --- /dev/null +++ b/src/Tizen.NUI/src/internal/XamlBinding/Layout.cs @@ -0,0 +1,319 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Collections.Specialized; +using System.ComponentModel; +using System.Linq; +using Tizen.NUI.Binding.Internals; +using Tizen.NUI.BaseComponents; + +namespace Tizen.NUI.Binding +{ + [ContentProperty("Children")] + internal abstract class Layout : Layout, IViewContainer where T : View + { + readonly ElementCollection _children; + + protected Layout() + { + _children = new ElementCollection(InternalChildren); + } + + public new IList Children + { + get { return _children; } + } + + protected virtual void OnAdded(T view) + { + } + + protected override void OnChildAdded(Element child) + { + base.OnChildAdded(child); + + var typedChild = child as T; + if (typedChild != null) + OnAdded(typedChild); + } + + protected override void OnChildRemoved(Element child) + { + base.OnChildRemoved(child); + + var typedChild = child as T; + if (typedChild != null) + OnRemoved(typedChild); + } + + protected virtual void OnRemoved(T view) + { + } + } + + internal abstract class Layout : View, ILayout, ILayoutController, IPaddingElement + { + public static readonly BindableProperty IsClippedToBoundsProperty = BindableProperty.Create("IsClippedToBounds", typeof(bool), typeof(Layout), false); + + public static readonly BindableProperty CascadeInputTransparentProperty = BindableProperty.Create( + nameof(CascadeInputTransparent), typeof(bool), typeof(Layout), true); + + public static new readonly BindableProperty PaddingProperty = PaddingElement.PaddingProperty; + + static IList> s_resolutionList = new List>(); + static bool s_relayoutInProgress; + + bool _hasDoneLayout; + Size _lastLayoutSize = new Size(-1, -1, 0); + + ReadOnlyCollection _logicalChildren; + + protected Layout() + { + //if things were added in base ctor (through implicit styles), the items added aren't properly parented + if (InternalChildren.Count > 0) + InternalChildrenOnCollectionChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, InternalChildren)); + + InternalChildren.CollectionChanged += InternalChildrenOnCollectionChanged; + } + + public bool IsClippedToBounds + { + get { return (bool)GetValue(IsClippedToBoundsProperty); } + set { SetValue(IsClippedToBoundsProperty, value); } + } + + public new Thickness Padding + { + get { return (Thickness)GetValue(PaddingElement.PaddingProperty); } + set { SetValue(PaddingElement.PaddingProperty, value); } + } + + public bool CascadeInputTransparent + { + get { return (bool)GetValue(CascadeInputTransparentProperty); } + set { SetValue(CascadeInputTransparentProperty, value); } + } + + Thickness IPaddingElement.PaddingDefaultValueCreator() + { + return default(Thickness); + } + + void IPaddingElement.OnPaddingPropertyChanged(Thickness oldValue, Thickness newValue) + { + UpdateChildrenLayout(); + } + + internal ObservableCollection InternalChildren { get; } = new ObservableCollection(); + + internal override ReadOnlyCollection LogicalChildrenInternal + { + get { return _logicalChildren ?? (_logicalChildren = new ReadOnlyCollection(InternalChildren)); } + } + + /// + /// Raised when the layout of the Page has changed. + /// + public event EventHandler LayoutChanged; + + [EditorBrowsable(EditorBrowsableState.Never)] + public new IReadOnlyList Children + { + get { return InternalChildren; } + } + + public void ForceLayout() + { + } + + + public static void LayoutChildIntoBoundingRegion(BaseHandle child, Rectangle region) + { + var view = child as View; + if (view == null) + { + return; + } + } + + public void LowerChild(View view) + { + if (!InternalChildren.Contains(view) || (InternalChildren.First() as BaseHandle) == view) + return; + + InternalChildren.Move(InternalChildren.IndexOf(view), 0); + } + + public void RaiseChild(View view) + { + if (!InternalChildren.Contains(view) || (InternalChildren.Last() as BaseHandle) == view) + return; + + InternalChildren.Move(InternalChildren.IndexOf(view), InternalChildren.Count - 1); + } + + protected virtual void InvalidateLayout() + { + _hasDoneLayout = false; + if (!_hasDoneLayout) + ForceLayout(); + } + + protected abstract void LayoutChildren(double x, double y, double width, double height); + + protected void OnChildMeasureInvalidated(object sender, EventArgs e) + { + InvalidationTrigger trigger = (e as InvalidationEventArgs)?.Trigger ?? InvalidationTrigger.Undefined; + OnChildMeasureInvalidated((BaseHandle)sender, trigger); + OnChildMeasureInvalidated(); + } + + protected virtual void OnChildMeasureInvalidated() + { + } + + protected virtual bool ShouldInvalidateOnChildAdded(View child) + { + return true; + } + + protected virtual bool ShouldInvalidateOnChildRemoved(View child) + { + return true; + } + + protected void UpdateChildrenLayout() + { + _hasDoneLayout = true; + + if (!ShouldLayoutChildren()) + return; + + LayoutChanged?.Invoke(this, EventArgs.Empty); + } + + internal static void LayoutChildIntoBoundingRegion(View child, Rectangle region, SizeRequest childSizeRequest) + { + } + + internal virtual void OnChildMeasureInvalidated(BaseHandle child, InvalidationTrigger trigger) + { + ReadOnlyCollection children = LogicalChildrenInternal; + int count = children.Count; + for (var index = 0; index < count; index++) + { + var v = LogicalChildrenInternal[index] as BaseHandle; + if (v != null) + { + return; + } + } + + var view = child as View; + if (view != null) + { + //we can ignore the request if we are either fully constrained or when the size request changes and we were already fully constrainted + if ((trigger == InvalidationTrigger.MeasureChanged) || + (trigger == InvalidationTrigger.SizeRequestChanged)) + { + return; + } + } + + s_resolutionList.Add(new KeyValuePair(this, GetElementDepth(this))); + if (!s_relayoutInProgress) + { + s_relayoutInProgress = true; + Device.BeginInvokeOnMainThread(() => + { + // if thread safety mattered we would need to lock this and compareexchange above + IList> copy = s_resolutionList; + s_resolutionList = new List>(); + s_relayoutInProgress = false; + }); + } + } + + static int GetElementDepth(Element view) + { + var result = 0; + while (view.Parent != null) + { + result++; + view = view.Parent; + } + return result; + } + + void InternalChildrenOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e) + { + if (e.Action == NotifyCollectionChangedAction.Move) + { + return; + } + + if (e.OldItems != null) + { + foreach (object item in e.OldItems) + { + var v = item as View; + if (v == null) + continue; + + OnInternalRemoved(v); + } + } + + if (e.NewItems != null) + { + foreach (object item in e.NewItems) + { + var v = item as View; + if (v == null) + continue; + + if ((item as BaseHandle) == this) + throw new InvalidOperationException("Can not add self to own child collection."); + + OnInternalAdded(v); + } + } + } + + void OnInternalAdded(View view) + { + var parent = view.GetParent() as Layout; + parent?.InternalChildren.Remove(view); + + OnChildAdded(view); + if (ShouldInvalidateOnChildAdded(view)) + InvalidateLayout(); + } + + void OnInternalRemoved(View view) + { + OnChildRemoved(view); + if (ShouldInvalidateOnChildRemoved(view)) + InvalidateLayout(); + } + + bool ShouldLayoutChildren() + { + if ( !LogicalChildrenInternal.Any() ) + { + return false; + } + + foreach (Element element in VisibleDescendants()) + { + var visual = element as BaseHandle; + if (visual == null) + { + continue; + } + } + return true; + } + } +} diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutAlignment.cs b/src/Tizen.NUI/src/internal/XamlBinding/LayoutAlignment.cs similarity index 81% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutAlignment.cs rename to src/Tizen.NUI/src/internal/XamlBinding/LayoutAlignment.cs index 714e97321..66f478920 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutAlignment.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/LayoutAlignment.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [Flags] internal enum LayoutAlignment diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutExpandFlag.cs b/src/Tizen.NUI/src/internal/XamlBinding/LayoutExpandFlag.cs similarity index 74% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutExpandFlag.cs rename to src/Tizen.NUI/src/internal/XamlBinding/LayoutExpandFlag.cs index e2fd4045b..4cc3c2b86 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutExpandFlag.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/LayoutExpandFlag.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [Flags] internal enum LayoutExpandFlag diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptions.cs b/src/Tizen.NUI/src/internal/XamlBinding/LayoutOptions.cs similarity index 98% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptions.cs rename to src/Tizen.NUI/src/internal/XamlBinding/LayoutOptions.cs index 68e265daa..2c9bf7af2 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptions.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/LayoutOptions.cs @@ -1,6 +1,6 @@ using System; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { [TypeConverter(typeof(LayoutOptionsConverter))] internal struct LayoutOptions diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptionsConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/LayoutOptionsConverter.cs similarity index 90% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptionsConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/LayoutOptionsConverter.cs index 793747491..98cddaa36 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/LayoutOptionsConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/LayoutOptionsConverter.cs @@ -1,11 +1,13 @@ using System; using System.Linq; using System.Reflection; -using Tizen.NUI.XamlBinding.Internals; +using Tizen.NUI.Binding.Internals; -namespace Tizen.NUI.XamlBinding +using Tizen.NUI; + +namespace Tizen.NUI.Binding { - [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Forms.XamlC.LayoutOptionsConverter")] + [Xaml.ProvideCompiled("Tizen.NUI.Xaml.Core.XamlC.LayoutOptionsConverter")] [Xaml.TypeConversion(typeof(LayoutOptions))] internal sealed class LayoutOptionsConverter : TypeConverter { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ListStringTypeConverter.cs b/src/Tizen.NUI/src/internal/XamlBinding/ListStringTypeConverter.cs similarity index 81% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/ListStringTypeConverter.cs rename to src/Tizen.NUI/src/internal/XamlBinding/ListStringTypeConverter.cs index 7a97fd884..e7327c3be 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/ListStringTypeConverter.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/ListStringTypeConverter.cs @@ -2,9 +2,9 @@ using System; using System.Collections.Generic; using System.Linq; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { - [Xaml.ProvideCompiled("Tizen.NUI.XamlC.ListStringTypeConverter")] + [Xaml.ProvideCompiled("Tizen.NUI.Core.XamlC.ListStringTypeConverter")] [Xaml.TypeConversion(typeof(List))] internal class ListStringTypeConverter : TypeConverter { diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/MenuItem.cs b/src/Tizen.NUI/src/internal/XamlBinding/MenuItem.cs similarity index 99% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/MenuItem.cs rename to src/Tizen.NUI/src/internal/XamlBinding/MenuItem.cs index 9affa7e43..fd3acd69c 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/MenuItem.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/MenuItem.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Windows.Input; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal class MenuItem : BaseMenuItem, IMenuItemController diff --git a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/MergedStyle.cs b/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs similarity index 95% rename from src/Tizen.NUI.Xaml/src/internal/XamlBinding/MergedStyle.cs rename to src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs index 0519fb9cf..eb8710d0b 100755 --- a/src/Tizen.NUI.Xaml/src/internal/XamlBinding/MergedStyle.cs +++ b/src/Tizen.NUI/src/internal/XamlBinding/MergedStyle.cs @@ -3,15 +3,15 @@ using System.Collections.Generic; using System.Linq; using System.Reflection; using Tizen.NUI.StyleSheets; -using Tizen.NUI.Xaml.Forms.BaseComponents; +using Tizen.NUI.BaseComponents; -namespace Tizen.NUI.XamlBinding +namespace Tizen.NUI.Binding { internal sealed class MergedStyle : IStyle { ////If the base type is one of these, stop registering dynamic resources further ////The last one (typeof(Element)) is a safety guard as we might be creating VisualElement directly in internal code - static readonly IList s_stopAtTypes = new List { typeof(View), typeof(Element) }; + static readonly IList s_stopAtTypes = new List { typeof(View), typeof(Layout<>), typeof(Element) }; IList _classStyleProperties; @@ -57,9 +57,9 @@ namespace Tizen.NUI.XamlBinding _classStyleProperties = new List (); foreach (var styleClass in _styleClass) { var classStyleProperty = BindableProperty.Create ("ClassStyle", typeof(IList