--- /dev/null
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio 14\r
+VisualStudioVersion = 14.0.25420.1\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISample2.Tizen", "NUISample2\NUISample2.Tizen\NUISample2.Tizen.csproj", "{C15A250A-8806-4DD8-A3E6-2452DCCFD596}"\r
+EndProject\r
+Global\r
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+ Debug|Any CPU = Debug|Any CPU\r
+ Release|Any CPU = Release|Any CPU\r
+ EndGlobalSection\r
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+ {C15A250A-8806-4DD8-A3E6-2452DCCFD596}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {C15A250A-8806-4DD8-A3E6-2452DCCFD596}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {C15A250A-8806-4DD8-A3E6-2452DCCFD596}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {C15A250A-8806-4DD8-A3E6-2452DCCFD596}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ EndGlobalSection\r
+ GlobalSection(SolutionProperties) = preSolution\r
+ HideSolutionNode = FALSE\r
+ EndGlobalSection\r
+EndGlobal\r
--- /dev/null
+/*\r
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ *\r
+ */\r
+\r
+using System;\r
+using Tizen.NUI;\r
+\r
+namespace ControlDashboard\r
+{\r
+ class Example : NUIApplication\r
+ {\r
+ // This is simple structure to contain Control name and implement state at once\r
+ // name : control name\r
+ // isImplemented : the state which the control is implemented in public or not\r
+ private struct Item\r
+ {\r
+ public String name;\r
+ public bool isImplemented;\r
+\r
+ public Item(String name, bool isImplemented)\r
+ {\r
+ this.name = name;\r
+ this.isImplemented = isImplemented;\r
+ }\r
+ }\r
+\r
+ private TableView _contentContainer;\r
+ private Timer _timer;\r
+ private Stage _stage;\r
+ private Popup _popup;\r
+ private ProgressBar _progressBar;\r
+ private const string _resPath = "/home/owner/apps_rw/NUISample2.Tizen/res";\r
+\r
+ // List of items\r
+ private Item[] mViewList = {\r
+ new Item("PushButton", true), new Item("DropDown", false), new Item("Toggle", true),\r
+ new Item("InputField", false), new Item("AnimateGif", false), new Item("Loading", false),\r
+ new Item("ProgressBar", true), new Item("CheckBox", false), new Item("RadioButton", true),\r
+ new Item("Tooltip", true), new Item("Popup", true), new Item("Toast", true),\r
+ new Item("ItemView", false), new Item("CheckBox", true)\r
+ };\r
+\r
+ public Example() : base()\r
+ {\r
+ }\r
+\r
+ public Example(string stylesheet) : base(stylesheet)\r
+ {\r
+ }\r
+\r
+ public Example(string stylesheet, NUIApplication.WindowMode windowMode) : base(stylesheet, windowMode)\r
+ {\r
+ }\r
+\r
+ protected override void OnCreate()\r
+ {\r
+ base.OnCreate();\r
+ Initialize();\r
+ }\r
+\r
+ protected override void OnTerminate()\r
+ {\r
+ base.OnTerminate();\r
+ }\r
+\r
+ public void Initialize()\r
+ {\r
+ Console.WriteLine("Customized Application Initialize event handler");\r
+ _stage = Stage.Instance;\r
+ _stage.BackgroundColor = Color.White;\r
+ _stage.Key += _stage_Key;\r
+\r
+ // Top label\r
+ TextLabel topLabel = new TextLabel();\r
+ topLabel.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ topLabel.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\r
+ topLabel.AnchorPoint = AnchorPoint.TopCenter;\r
+ topLabel.ParentOrigin = ParentOrigin.TopCenter;\r
+ topLabel.SetSizeModeFactor(new Vector3(0.0f, 0.1f, 0.0f));\r
+ topLabel.BackgroundColor = new Color(43.0f / 255.0f, 145.0f / 255.0f, 175.0f / 255.0f, 1.0f);\r
+ topLabel.TextColor = Color.White;\r
+ topLabel.Text = " DALi Views";\r
+ topLabel.HorizontalAlignment = "BEGIN";\r
+ topLabel.VerticalAlignment = "CENTER";\r
+ topLabel.PointSize = 42.0f;\r
+ _stage.GetDefaultLayer().Add(topLabel);\r
+ //StyleManager.Get().ApplyStyle(topLabel, _resPath + "/json/control-dashboard-theme.json", "TextFieldFontSize4");\r
+ topLabel.SetStyleName("TextFieldFontSize4");\r
+\r
+ // Grid container to contain items. Use tableView because FlexContainer support focus navigation just two direction ( up/down or left/right )\r
+ _contentContainer = new TableView(6, 5);\r
+ _contentContainer.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ _contentContainer.HeightResizePolicy = ResizePolicyType.SizeRelativeToParent;\r
+ _contentContainer.SetSizeModeFactor(new Vector3(0.0f, 0.9f, 0.0f));\r
+ _contentContainer.AnchorPoint = AnchorPoint.BottomCenter;\r
+ _contentContainer.ParentOrigin = ParentOrigin.BottomCenter;\r
+ _contentContainer.SetRelativeHeight(0, 0.07f);\r
+ _contentContainer.SetRelativeHeight(1, 0.26f);\r
+ _contentContainer.SetRelativeHeight(2, 0.07f);\r
+ _contentContainer.SetRelativeHeight(3, 0.26f);\r
+ _contentContainer.SetRelativeHeight(4, 0.07f);\r
+ _contentContainer.SetRelativeHeight(5, 0.26f);\r
+ _contentContainer.Focusable = (true);\r
+ _stage.GetDefaultLayer().Add(_contentContainer);\r
+\r
+ CreateContent();\r
+\r
+ FocusManager.Instance.PreFocusChange += OnPreFocusChange;\r
+ }\r
+\r
+ private void _stage_Key(object sender, Stage.KeyEventArgs e)\r
+ {\r
+ if (e.Key.KeyPressedName == "XF86Back")\r
+ {\r
+ OnTerminate();\r
+ }\r
+ }\r
+\r
+ // Callback for KeyboardFocusManager\r
+ private View OnPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)\r
+ {\r
+ if (!e.ProposedView && !e.CurrentView)\r
+ {\r
+ e.ProposedView = View.DownCast(_contentContainer.GetChildAt(1));\r
+ }\r
+ return e.ProposedView;\r
+ }\r
+\r
+ private void CreateContent()\r
+ {\r
+ for (int i = 0; i < mViewList.Length; i++)\r
+ {\r
+ CreateItem(mViewList[i], i);\r
+ }\r
+ }\r
+\r
+ private void CreateItem(Item item, int idx)\r
+ {\r
+ // Make label for item\r
+ TextLabel itemLabel = new TextLabel(" " + item.name);\r
+ itemLabel.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.05f, 0.0f);\r
+ itemLabel.HorizontalAlignment = "BEGIN";\r
+ itemLabel.VerticalAlignment = "BOTTOM";\r
+ //itemLabel.PointSize = 18.0f;\r
+ _contentContainer.AddChild(itemLabel, new TableView.CellPosition(((uint)idx / 5) * 2, (uint)idx % 5));\r
+\r
+ // If item is implemented in public, attach it on stage\r
+ if (item.isImplemented)\r
+ {\r
+ if (item.name.CompareTo("PushButton") == 0)\r
+ {\r
+ PushButton pushButton = new PushButton();\r
+ pushButton.LabelText = "Push Button";\r
+ pushButton.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ pushButton.HeightResizePolicy = ResizePolicyType.FillToParent;\r
+ pushButton.UnselectedColor = new Vector4(1.0f, 0.0f, 0.0f, 1.0f);\r
+ pushButton.SelectedColor = new Vector4(0.0f, 1.0f, 0.0f, 1.0f);\r
+ pushButton.Clicked += (obj, e) =>\r
+ {\r
+ Button sender = obj as Button;\r
+ sender.LabelText = "Click Me";\r
+ sender.UnselectedColor = new Vector4(0.0f, 0.0f, 1.0f, 1.0f);\r
+ return true;\r
+ };\r
+\r
+ _contentContainer.AddChild(pushButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("DropDown") == 0)\r
+ {\r
+\r
+ }\r
+ if (item.name.CompareTo("Toggle") == 0)\r
+ {\r
+ ToggleButton toggleButton = new ToggleButton();\r
+ PropertyArray array = new PropertyArray();\r
+ array.Add(new PropertyValue(_resPath + "/images/star-highlight.png"));\r
+ array.Add(new PropertyValue(_resPath + "/images/star-mod.png"));\r
+ array.Add(new PropertyValue(_resPath + "/images/star-dim.png"));\r
+ toggleButton.StateVisuals = array;\r
+\r
+ PropertyArray tooltips = new PropertyArray();\r
+ tooltips.Add(new PropertyValue("State A"));\r
+ tooltips.Add(new PropertyValue("State B"));\r
+ tooltips.Add(new PropertyValue("State C"));\r
+ toggleButton.Tooltips = tooltips;\r
+\r
+ toggleButton.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ toggleButton.HeightResizePolicy = ResizePolicyType.FillToParent;\r
+ toggleButton.Clicked += (obj, e) =>\r
+ {\r
+ Console.WriteLine("Toggle button state changed.");\r
+ return true;\r
+ };\r
+\r
+ _contentContainer.AddChild(toggleButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("InputField") == 0)\r
+ {\r
+\r
+ }\r
+ if (item.name.CompareTo("AnimateGif") == 0)\r
+ {\r
+\r
+ }\r
+ if (item.name.CompareTo("Loading") == 0)\r
+ {\r
+\r
+ }\r
+ if (item.name.CompareTo("ProgressBar") == 0)\r
+ {\r
+ _progressBar = new ProgressBar();\r
+ _progressBar.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ _progressBar.HeightResizePolicy = ResizePolicyType.Fixed;\r
+ _progressBar.Size2D = new Size2D(0, 100);\r
+\r
+ _progressBar.ValueChanged += OnProgressBarValueChanged;\r
+\r
+ _timer = new Timer(100);\r
+ _timer.Tick += (obj, e) =>\r
+ {\r
+ float progress = (float)Math.Round(_progressBar.ProgressValue, 2);\r
+\r
+ if (progress == 1.0f)\r
+ {\r
+ _progressBar.ProgressValue = 0.0f;\r
+ _progressBar.SecondaryProgressValue = 0.01f;\r
+ }\r
+ else\r
+ {\r
+ _progressBar.ProgressValue = progress + 0.01f;\r
+ _progressBar.SecondaryProgressValue = progress + 0.21f;\r
+ }\r
+ return true;\r
+ };\r
+ _timer.Start();\r
+\r
+ _contentContainer.AddChild(_progressBar, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("ScrollBar") == 0)\r
+ {\r
+\r
+ }\r
+ if (item.name.CompareTo("CheckBox") == 0)\r
+ {\r
+ CheckBoxButton checkBoxButton = new CheckBoxButton();\r
+ checkBoxButton.LabelText = "Yes";\r
+\r
+ _contentContainer.AddChild(checkBoxButton, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("RadioButton") == 0)\r
+ {\r
+ TableView tableView = new TableView(2, 1);\r
+ tableView.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ tableView.HeightResizePolicy = ResizePolicyType.FillToParent;\r
+\r
+ RadioButton rButton = new RadioButton();\r
+ rButton.LabelText = "Yes";\r
+ rButton.Selected = true;\r
+ tableView.AddChild(rButton, new TableView.CellPosition(0, 0));\r
+\r
+ rButton = new RadioButton();\r
+ rButton.LabelText = "No";\r
+\r
+ tableView.AddChild(rButton, new TableView.CellPosition(1, 0));\r
+\r
+ _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("Tooltip") == 0)\r
+ {\r
+ TableView tableView = new TableView(2, 1);\r
+ tableView.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ tableView.HeightResizePolicy = ResizePolicyType.FillToParent;\r
+\r
+ // Create two push buttons and add them to a table view\r
+ PushButton buttonWithSimpleTooltip = new PushButton();\r
+ buttonWithSimpleTooltip.LabelText = "Tooltip with text only";\r
+ buttonWithSimpleTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f);\r
+ buttonWithSimpleTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f);\r
+ buttonWithSimpleTooltip.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ tableView.AddChild(buttonWithSimpleTooltip, new TableView.CellPosition(0, 0));\r
+\r
+ PushButton buttonWithIconTooltip = new PushButton();\r
+ buttonWithIconTooltip.LabelText = "Tooltip with Text and Icon";\r
+ buttonWithIconTooltip.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ buttonWithIconTooltip.UnselectedColor = new Vector4(0.5f, 0.5f, 0.7f, 1.0f);\r
+ buttonWithIconTooltip.SelectedColor = new Vector4(0.7f, 0.5f, 0.7f, 1.0f);\r
+ tableView.AddChild(buttonWithIconTooltip, new TableView.CellPosition(1, 0));\r
+\r
+ // Add a simple text only tooltip to the first push button\r
+ buttonWithSimpleTooltip.TooltipText = "Simple Tooltip";\r
+\r
+ // Create a property map for a tooltip with one icon and one text\r
+ PropertyArray iconTooltipContent = new PropertyArray();\r
+\r
+ PropertyMap iconVisual = new PropertyMap();\r
+ iconVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Image))\r
+ .Add(Tizen.NUI.Constants.ImageVisualProperty.URL, new PropertyValue(_resPath + "/images/star-highlight.png"));\r
+ iconTooltipContent.Add(new PropertyValue(iconVisual));\r
+\r
+ PropertyMap textVisual = new PropertyMap();\r
+ textVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text))\r
+ .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue("Tooltip with Icon"));\r
+ iconTooltipContent.Add(new PropertyValue(textVisual));\r
+\r
+ PropertyMap iconTooltip = new PropertyMap();\r
+ iconTooltip.Add(Tizen.NUI.Constants.Tooltip.Property.Content, new PropertyValue(iconTooltipContent))\r
+ .Add(Tizen.NUI.Constants.Tooltip.Property.Tail, new PropertyValue(true));\r
+\r
+ // Add the tooltip with icon and text to the second push button\r
+ buttonWithIconTooltip.Tooltip = iconTooltip;\r
+\r
+ _contentContainer.AddChild(tableView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("Popup") == 0)\r
+ {\r
+ PushButton button = new PushButton();\r
+ button.LabelText = "Popup";\r
+ button.ParentOrigin = ParentOrigin.Center;\r
+ button.AnchorPoint = AnchorPoint.Center;\r
+ button.MaximumSize = new Size2D(150, 100);\r
+ _popup = CreatePopup();\r
+ _popup.SetTitle(CreateTitle("Popup"));\r
+\r
+ TextLabel text = new TextLabel("This will erase the file permanently. Are you sure?");\r
+ text.BackgroundColor = Color.White;\r
+ text.MultiLine = true;\r
+ text.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ text.HeightResizePolicy = ResizePolicyType.DimensionDependency;\r
+ text.SetPadding(new PaddingType(10.0f, 10.0f, 20.0f, 0.0f));\r
+ _popup.SetContent(text);\r
+ _popup.Focusable = (true);\r
+ _popup.SetDisplayState(Popup.DisplayStateType.Hidden);\r
+\r
+ button.Clicked += (obj, ee) =>\r
+ {\r
+ _stage.GetDefaultLayer().Add(_popup);\r
+ _popup.SetDisplayState(Popup.DisplayStateType.Shown);\r
+ FocusManager.Instance.SetCurrentFocusView(View.DownCast((_popup.FindChildByName("Footer")).FindChildByName("OKButton")));\r
+ return true;\r
+ };\r
+ _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("Toast") == 0)\r
+ {\r
+ PushButton button = new PushButton();\r
+ button.LabelText = "Toast";\r
+ button.ParentOrigin = ParentOrigin.Center;\r
+ button.AnchorPoint = AnchorPoint.Center;\r
+ button.Clicked += (obj, ee) =>\r
+ {\r
+ TypeInfo typeInfo = new TypeInfo(TypeRegistry.Get().GetTypeInfo("PopupToast"));\r
+ if (typeInfo)\r
+ {\r
+ BaseHandle baseHandle = typeInfo.CreateInstance();\r
+ if (baseHandle)\r
+ {\r
+ Popup toast = Popup.DownCast(baseHandle);\r
+ TextLabel text = new TextLabel("This is a Toast.\nIt will auto-hide itself");\r
+ text.TextColor = Color.White;\r
+ text.MultiLine = true;\r
+ text.HorizontalAlignment = "center";\r
+ toast.SetTitle(text);\r
+ _stage.GetDefaultLayer().Add(toast);\r
+ toast.SetDisplayState(Popup.DisplayStateType.Shown);\r
+ }\r
+ }\r
+ return true;\r
+ };\r
+ _contentContainer.AddChild(button, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ if (item.name.CompareTo("ItemView") == 0)\r
+ {\r
+\r
+ }\r
+ }\r
+ else\r
+ {\r
+ ImageView notSupportView = new ImageView(_resPath + "/images/not_yet_sign.png");\r
+ notSupportView.Size = new Vector3(_stage.Size.Width * 0.2f, _stage.Size.Height * 0.25f, 0.0f);\r
+ notSupportView.Focusable = (true);\r
+ _contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));\r
+ }\r
+ }\r
+ Popup CreatePopup()\r
+ {\r
+ Popup confirmationPopup = new Popup();\r
+\r
+ Actor footer = new Actor();\r
+ footer.Name = ("Footer");\r
+ footer.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ footer.HeightResizePolicy = ResizePolicyType.Fixed;\r
+ footer.Size = new Size(0.0f, 80.0f, 0.0f);\r
+ footer.ParentOrigin = ParentOrigin.Center;\r
+ footer.AnchorPoint = AnchorPoint.Center;\r
+\r
+ PushButton okButton = CreateOKButton();\r
+ okButton.ParentOrigin = ParentOrigin.Center;\r
+ okButton.AnchorPoint = AnchorPoint.Center;\r
+ okButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;\r
+ okButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;\r
+ okButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));\r
+\r
+ PushButton cancelButton = CreateCancelButton();\r
+ cancelButton.ParentOrigin = ParentOrigin.Center;\r
+ cancelButton.AnchorPoint = AnchorPoint.Center;\r
+ cancelButton.WidthResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;\r
+ cancelButton.HeightResizePolicy = ResizePolicyType.SizeFixedOffsetFromParent;\r
+ cancelButton.SetSizeModeFactor(new Vector3(-20.0f, -20.0f, 0.0f));\r
+\r
+ TableView controlLayout = new TableView(1, 2);\r
+ controlLayout.ParentOrigin = ParentOrigin.Center;\r
+ controlLayout.AnchorPoint = AnchorPoint.Center;\r
+ controlLayout.WidthResizePolicy = ResizePolicyType.FillToParent;\r
+ controlLayout.HeightResizePolicy = ResizePolicyType.FillToParent;\r
+ controlLayout.SetCellPadding(new Size2D(10, 10));\r
+ controlLayout.SetRelativeWidth(0, 0.5f);\r
+ controlLayout.SetRelativeWidth(1, 0.5f);\r
+ controlLayout.SetCellAlignment(new TableView.CellPosition(0, 0), HorizontalAlignmentType.Center, VerticalAlignmentType.Center);\r
+ controlLayout.SetCellAlignment(new TableView.CellPosition(0, 1), HorizontalAlignmentType.Center, VerticalAlignmentType.Center);\r
+ controlLayout.AddChild(okButton, new TableView.CellPosition(0, 0));\r
+ controlLayout.AddChild(cancelButton, new TableView.CellPosition(0, 1));\r
+\r
+ footer.Add(controlLayout);\r
+\r
+ confirmationPopup.SetFooter(footer);\r
+ return confirmationPopup;\r
+ }\r
+ Actor CreateTitle(string title)\r
+ {\r
+ TextLabel titleActor = new TextLabel(title);\r
+ titleActor.TextColor = Color.White;\r
+ titleActor.MultiLine = true;\r
+ titleActor.HorizontalAlignment = "center";\r
+ return titleActor;\r
+ }\r
+\r
+ PushButton CreateOKButton()\r
+ {\r
+ PushButton okayButton = new PushButton();\r
+ okayButton.Name = ("OKButton");\r
+ okayButton.LabelText = "OK";\r
+ okayButton.Focusable = (true);\r
+ okayButton.Clicked += (obj, ee) =>\r
+ {\r
+ _popup.SetDisplayState(Popup.DisplayStateType.Hidden);\r
+ return true;\r
+ };\r
+ return okayButton;\r
+ }\r
+ PushButton CreateCancelButton()\r
+ {\r
+ PushButton cancelButton = new PushButton();\r
+ cancelButton.LabelText = "Cancel";\r
+ cancelButton.Focusable = (true);\r
+ cancelButton.Clicked += (obj, ee) =>\r
+ {\r
+ _popup.SetDisplayState(Popup.DisplayStateType.Hidden);\r
+ return true;\r
+ };\r
+ return cancelButton;\r
+ }\r
+\r
+ void OnProgressBarValueChanged(object source, ProgressBar.ValueChangedEventArgs e)\r
+ {\r
+ PropertyMap labelVisual = new PropertyMap();\r
+ labelVisual.Add(Tizen.NUI.Constants.Visual.Property.Type, new PropertyValue((int)Tizen.NUI.Constants.Visual.Type.Text))\r
+ .Add(Tizen.NUI.Constants.TextVisualProperty.Text, new PropertyValue(Math.Round(e.ProgressBar.ProgressValue, 2) + " / " + Math.Round(e.ProgressBar.SecondaryProgressValue, 2)))\r
+ .Add(Tizen.NUI.Constants.TextVisualProperty.PointSize, new PropertyValue(10.0f));\r
+ e.ProgressBar.LabelVisual = labelVisual;\r
+ return;\r
+ }\r
+\r
+\r
+ /// <summary>\r
+ /// The main entry point for the application.\r
+ /// </summary>\r
+\r
+ [STAThread]\r
+ static void Main(string[] args)\r
+ {\r
+ Tizen.Log.Debug("NUI", "control-dashboard app Main()");\r
+\r
+ Example example = new Example("/home/owner/apps_rw/NUISample2.Tizen/res/json/control-dashboard-theme.json");\r
+ example.Run(args);\r
+ }\r
+ }\r
+}\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <PropertyGroup>\r
+ <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+ <ProductVersion>8.0.30703</ProductVersion>\r
+ <SchemaVersion>2.0</SchemaVersion>\r
+ <ProjectTypeGuids>{2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
+ <ProjectGuid>{C15A250A-8806-4DD8-A3E6-2452DCCFD596}</ProjectGuid>\r
+ <OutputType>Exe</OutputType>\r
+ <AppDesignerFolder>Properties</AppDesignerFolder>\r
+ <RootNamespace>NUISample2.Tizen</RootNamespace>\r
+ <AssemblyName>NUISample2.Tizen</AssemblyName>\r
+ <FileAlignment>512</FileAlignment>\r
+ <DefaultLanguage>en-US</DefaultLanguage>\r
+ </PropertyGroup>\r
+ <PropertyGroup>\r
+ <TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>\r
+ <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>\r
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
+ <NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>\r
+ <NoStdLib>true</NoStdLib>\r
+ <NoWarn>$(NoWarn);1701</NoWarn>\r
+ <UseVSHostingProcess>false</UseVSHostingProcess>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>false</Optimize>\r
+ <OutputPath>bin\Debug\</OutputPath>\r
+ <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>true</Optimize>\r
+ <OutputPath>bin\Release\</OutputPath>\r
+ <DefineConstants>TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <None Include="NUISample2.Tizen.project.json" />\r
+ <None Include="res\json\control-dashboard.json" />\r
+ <None Include="res\json\date-picker-template.json" />\r
+ <None Include="res\json\date-picker.json" />\r
+ <None Include="res\json\spin.json" />\r
+ <None Include="res\json\style-example-theme-one.json" />\r
+ <None Include="tizen-manifest.xml" />\r
+ <None Include="shared\res\NUISample2.Tizen.png" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Compile Include="NUISample2.Tizen.cs" />\r
+ <Compile Include="Properties\AssemblyInfo.cs" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Folder Include="lib\" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Content Include="res\images\arrow.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_color.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_gloss.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_nmap.png" />\r
+ <Content Include="res\images\Dino2_lambert2SG_color.png" />\r
+ <Content Include="res\images\Dino2_lambert2SG_nmap.png" />\r
+ <Content Include="res\images\gallery-0.jpg" />\r
+ <Content Include="res\images\gallery-1.jpg" />\r
+ <Content Include="res\images\gallery-2.jpg" />\r
+ <Content Include="res\images\gallery-3.jpg" />\r
+ <Content Include="res\images\gallery-4.jpg" />\r
+ <Content Include="res\images\gallery-5.jpg" />\r
+ <Content Include="res\images\gallery-small-43.jpg" />\r
+ <Content Include="res\images\image-1.jpg" />\r
+ <Content Include="res\images\image-2.jpg" />\r
+ <Content Include="res\images\image-3.jpg" />\r
+ <Content Include="res\images\not_yet_sign.png" />\r
+ <Content Include="res\images\star-dim.png" />\r
+ <Content Include="res\images\star-highlight.png" />\r
+ <Content Include="res\images\star-mod.png" />\r
+ </ItemGroup>\r
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
+ Other similar extension points exist, see Microsoft.Common.targets.\r
+ <Target Name="BeforeBuild">\r
+ </Target>\r
+ <Target Name="AfterBuild">\r
+ </Target>\r
+ -->\r
+ <PropertyGroup>\r
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and\r
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild\r
+ -->\r
+ <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two\r
+ properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and\r
+ to prevent it from outputting a warning (MSB3644).\r
+ -->\r
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
+ </PropertyGroup>\r
+ <ProjectExtensions>\r
+ <VisualStudio>\r
+ <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
+ <ProjectCommonFlavorCfg />\r
+ </FlavorProperties>\r
+ <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
+ <ProjectCommonFlavorCfg />\r
+ </FlavorProperties>\r
+ </VisualStudio>\r
+ </ProjectExtensions>\r
+</Project>
\ No newline at end of file
--- /dev/null
+{\r
+ "buildOptions": {\r
+ "emitEntryPoint": true,\r
+ "debugType": "portable",\r
+ "platform": "AnyCPU",\r
+ "preserveCompilationContext": true\r
+ },\r
+ "dependencies": {\r
+ "Microsoft.NETCore.App": {\r
+ "version": "1.0.0"\r
+ },\r
+ "Tizen.Applications": "1.3.2",\r
+ "Tizen.NUI": "0.2.31"\r
+ },\r
+ "runtimes": {\r
+ "win": {},\r
+ "linux": {}\r
+ },\r
+ "frameworks": {\r
+ "netcoreapp1.0": {\r
+ "imports": [\r
+ "portable-net45+wp80+win81+wpa81",\r
+ "netstandard1.6"\r
+ ]\r
+ }\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+using System.Reflection;\r
+using System.Runtime.CompilerServices;\r
+using System.Runtime.InteropServices;\r
+\r
+// General Information about an assembly is controlled through the following\r
+// set of attributes. Change these attribute values to modify the information\r
+// associated with an assembly.\r
+[assembly: AssemblyTitle("NUISample2.Tizen")]\r
+[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyConfiguration("")]\r
+[assembly: AssemblyCompany("Microsoft")]\r
+[assembly: AssemblyProduct("NUISample2.Tizen")]\r
+[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]\r
+[assembly: AssemblyTrademark("")]\r
+[assembly: AssemblyCulture("")]\r
+\r
+// Setting ComVisible to false makes the types in this assembly not visible\r
+// to COM components. If you need to access a type in this assembly from\r
+// COM, set the ComVisible attribute to true on that type.\r
+[assembly: ComVisible(false)]\r
+\r
+// The following GUID is for the ID of the typelib if this project is exposed to COM\r
+[assembly: Guid("c15a250a-8806-4dd8-a3e6-2452dccfd596")]\r
+\r
+// Version information for an assembly consists of the following four values:\r
+//\r
+// Major Version\r
+// Minor Version\r
+// Build Number\r
+// Revision\r
+//\r
+// You can specify all the values or you can default the Build and Revision Numbers\r
+// by using the '*' as shown below:\r
+// [assembly: AssemblyVersion("1.0.*")]\r
+[assembly: AssemblyVersion("1.0.0.0")]\r
+[assembly: AssemblyFileVersion("1.0.0.0")]\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="NUISample2.Tizen" version="1.0.0">\r
+ <profile name="common" />\r
+ <ui-application appid="org.tizen.example.NUISample2.Tizen"\r
+ exec="NUISample2.Tizen.exe"\r
+ type="dotnet"\r
+ multiple="false"\r
+ taskmanage="true"\r
+ nodisplay="false"\r
+ launch_mode="single">\r
+ <label>NUISample2.Tizen</label>\r
+ <icon>NUISample2.Tizen.png</icon>\r
+ </ui-application>\r
+</manifest>\r
--- /dev/null
+\r
+Microsoft Visual Studio Solution File, Format Version 12.00\r
+# Visual Studio 14\r
+VisualStudioVersion = 14.0.25420.1\r
+MinimumVisualStudioVersion = 10.0.40219.1\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISamples-dummy", "NUISamples\NUISamples\NUISamples-dummy.csproj", "{56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}"\r
+EndProject\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUISamples.TizenTV", "NUISamples\NUISamples.TizenTV\NUISamples.TizenTV.csproj", "{7731BE98-0A68-49A9-877C-A30A0D30D9F6}"\r
+ ProjectSection(ProjectDependencies) = postProject\r
+ {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA} = {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}\r
+ EndProjectSection\r
+EndProject\r
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tizen.NUI", "..\Tizen.NUI\Tizen.NUI.csproj", "{F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}"\r
+EndProject\r
+Global\r
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
+ Debug|Any CPU = Debug|Any CPU\r
+ Release|Any CPU = Release|Any CPU\r
+ EndGlobalSection\r
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
+ {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {7731BE98-0A68-49A9-877C-A30A0D30D9F6}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU\r
+ {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Debug|Any CPU.Build.0 = Debug|Any CPU\r
+ {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Release|Any CPU.ActiveCfg = Release|Any CPU\r
+ {F03A3B48-9D9B-4BF3-92CE-BD63CADC3CD3}.Release|Any CPU.Build.0 = Release|Any CPU\r
+ EndGlobalSection\r
+ GlobalSection(SolutionProperties) = preSolution\r
+ HideSolutionNode = FALSE\r
+ EndGlobalSection\r
+EndGlobal\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <PropertyGroup>\r
+ <MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>\r
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+ <ProductVersion>8.0.30703</ProductVersion>\r
+ <SchemaVersion>2.0</SchemaVersion>\r
+ <ProjectTypeGuids>{2F98DAC9-6F16-457B-AED7-D43CAC379341};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
+ <ProjectGuid>{7731BE98-0A68-49A9-877C-A30A0D30D9F6}</ProjectGuid>\r
+ <OutputType>Exe</OutputType>\r
+ <AppDesignerFolder>Properties</AppDesignerFolder>\r
+ <RootNamespace>NUISamples.TizenTV</RootNamespace>\r
+ <AssemblyName>NUISamples.TizenTV</AssemblyName>\r
+ <FileAlignment>512</FileAlignment>\r
+ <DefaultLanguage>en-US</DefaultLanguage>\r
+ </PropertyGroup>\r
+ <PropertyGroup>\r
+ <TargetFrameworkIdentifier>DNXCore</TargetFrameworkIdentifier>\r
+ <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>\r
+ <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>\r
+ <NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>\r
+ <NoStdLib>true</NoStdLib>\r
+ <NoWarn>$(NoWarn);1701</NoWarn>\r
+ <UseVSHostingProcess>false</UseVSHostingProcess>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>false</Optimize>\r
+ <OutputPath>bin\Debug\</OutputPath>\r
+ <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>true</Optimize>\r
+ <OutputPath>bin\Release\</OutputPath>\r
+ <DefineConstants>TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <None Include="NUISamples.TizenTV.project.json" />\r
+ <None Include="res\json\control-dashboard.json" />\r
+ <None Include="res\json\date-picker-template.json" />\r
+ <None Include="res\json\date-picker-theme.json" />\r
+ <None Include="res\json\date-picker.json" />\r
+ <None Include="res\json\spin.json" />\r
+ <None Include="res\json\style-example-theme-one.json" />\r
+ <None Include="res\models\Dino.mtl" />\r
+ <None Include="res\models\Dino.obj" />\r
+ <None Include="tizen-manifest.xml" />\r
+ <None Include="shared\res\NUISamples.TizenTV.png" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Compile Include="examples\as-is-test-sample.cs" />\r
+ <Compile Include="examples\control-dashboard.cs" />\r
+ <Compile Include="examples\custom-control.cs" />\r
+ <Compile Include="examples\dali-test.cs" />\r
+ <Compile Include="examples\date-picker-using-json\date-picker-using-json.cs" />\r
+ <Compile Include="examples\date-picker.cs" />\r
+ <Compile Include="examples\flex-container.cs" />\r
+ <Compile Include="examples\gc-test.cs" />\r
+ <Compile Include="examples\hello-test.cs" />\r
+ <Compile Include="examples\hello-world.cs" />\r
+ <Compile Include="examples\image-view.cs" />\r
+ <Compile Include="examples\Main.cs" />\r
+ <Compile Include="examples\positionUsesAnchorPoint-test.cs" />\r
+ <Compile Include="examples\relative-vector.cs" />\r
+ <Compile Include="examples\scroll-view.cs" />\r
+ <Compile Include="examples\sibling-order-test.cs" />\r
+ <Compile Include="examples\test1.cs" />\r
+ <Compile Include="examples\text-test.cs" />\r
+ <Compile Include="examples\ttsplayer-test.cs" />\r
+ <Compile Include="examples\user-alphafunction.cs" />\r
+ <Compile Include="examples\view-navi-property.cs" />\r
+ <Compile Include="examples\date-picker-using-json\ViewRegistryHelper.cs" />\r
+ <Compile Include="examples\visual-animation-test.cs" />\r
+ <Compile Include="examples\visual-animation-test2.cs" />\r
+ <Compile Include="examples\visual-animation-test3.cs" />\r
+ <Compile Include="examples\visual-view-test2.cs" />\r
+ <Compile Include="examples\visual-view-test.cs" />\r
+ <Compile Include="examples\visual-view-test3.cs" />\r
+ <Compile Include="examples\visuals-using-custom-view\ContactData.cs" />\r
+ <Compile Include="examples\visuals-using-custom-view\ContactView.cs" />\r
+ <Compile Include="examples\visuals-using-custom-view\visuals-using-custom-view.cs" />\r
+ <Compile Include="Properties\AssemblyInfo.cs" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Folder Include="lib\" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <ProjectReference Include="..\..\..\Tizen.NUI\Tizen.NUI.csproj">\r
+ <Project>{f03a3b48-9d9b-4bf3-92ce-bd63cadc3cd3}</Project>\r
+ <Name>Tizen.NUI</Name>\r
+ </ProjectReference>\r
+ <ProjectReference Include="..\NUISamples\NUISamples-dummy.csproj">\r
+ <Project>{56ca3b27-c662-4ac8-93ca-7acef926b2aa}</Project>\r
+ <Name>NUISamples-dummy</Name>\r
+ </ProjectReference>\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Content Include="res\images\application-icon-0.png" />\r
+ <Content Include="res\images\background-blocks.jpg" />\r
+ <Content Include="res\images\dali-logo-anim.gif" />\r
+ <Content Include="res\images\dog-anim.gif" />\r
+ <Content Include="res\images\echo.gif" />\r
+ <Content Include="res\images\focuseffect\0-normal.png" />\r
+ <Content Include="res\images\focuseffect\1-normal.png" />\r
+ <Content Include="res\images\focuseffect\2-normal.png" />\r
+ <Content Include="res\images\arrow.png" />\r
+ <Content Include="res\images\focuseffect\background.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_color.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_gloss.png" />\r
+ <Content Include="res\images\Dino-Painted_lambert2SG_nmap.png" />\r
+ <Content Include="res\images\Dino2_lambert2SG_color.png" />\r
+ <Content Include="res\images\Dino2_lambert2SG_nmap.png" />\r
+ <Content Include="res\images\focuseffect\halo.png" />\r
+ <Content Include="res\images\focuseffect\horizontalFrame.png" />\r
+ <Content Include="res\images\focuseffect\verticalFrame.png" />\r
+ <Content Include="res\images\focuseffect\focus_grid.9.png" />\r
+ <Content Include="res\images\focuseffect\focus_launcher_shadow.9.png" />\r
+ <Content Include="res\images\focuseffect\focus_launcher_shadow_n.png" />\r
+ <Content Include="res\images\gallery-0.jpg" />\r
+ <Content Include="res\images\gallery-1.jpg" />\r
+ <Content Include="res\images\gallery-2.jpg" />\r
+ <Content Include="res\images\gallery-3.jpg" />\r
+ <Content Include="res\images\gallery-4.jpg" />\r
+ <Content Include="res\images\gallery-5.jpg" />\r
+ <Content Include="res\images\gallery-small-43.jpg" />\r
+ <Content Include="res\images\focuseffect\highlight_spot.png" />\r
+ <Content Include="res\images\focuseffect\highlight_stroke.9.png" />\r
+ <Content Include="res\images\image-1.jpg" />\r
+ <Content Include="res\images\image-2.jpg" />\r
+ <Content Include="res\images\image-3.jpg" />\r
+ <Content Include="res\images\Kid1.svg" />\r
+ <Content Include="res\images\Mail.svg" />\r
+ <Content Include="res\images\menu\0.png" />\r
+ <Content Include="res\images\menu\1.png" />\r
+ <Content Include="res\images\menu\2.png" />\r
+ <Content Include="res\images\menu\3.png" />\r
+ <Content Include="res\images\menu\4.png" />\r
+ <Content Include="res\images\menu\5.png" />\r
+ <Content Include="res\images\menu\6.png" />\r
+ <Content Include="res\images\not_yet_sign.png" />\r
+ <Content Include="res\images\poster0\0.jpg" />\r
+ <Content Include="res\images\poster0\1.jpg" />\r
+ <Content Include="res\images\poster0\10.jpg" />\r
+ <Content Include="res\images\poster0\11.jpg" />\r
+ <Content Include="res\images\poster0\12.jpg" />\r
+ <Content Include="res\images\poster0\13.jpg" />\r
+ <Content Include="res\images\poster0\2.jpg" />\r
+ <Content Include="res\images\poster0\3.jpg" />\r
+ <Content Include="res\images\poster0\4.jpg" />\r
+ <Content Include="res\images\poster0\5.jpg" />\r
+ <Content Include="res\images\poster0\6.jpg" />\r
+ <Content Include="res\images\poster0\7.jpg" />\r
+ <Content Include="res\images\poster0\8.jpg" />\r
+ <Content Include="res\images\poster0\9.jpg" />\r
+ <Content Include="res\images\poster1\0.jpg" />\r
+ <Content Include="res\images\poster1\1.jpg" />\r
+ <Content Include="res\images\poster1\2.jpg" />\r
+ <Content Include="res\images\poster1\3.jpg" />\r
+ <Content Include="res\images\poster1\4.jpg" />\r
+ <Content Include="res\images\poster1\5.jpg" />\r
+ <Content Include="res\images\star-dim.png" />\r
+ <Content Include="res\images\star-highlight.png" />\r
+ <Content Include="res\images\star-mod.png" />\r
+ <Content Include="res\images\focuseffect\thumbnail_shadow.9.png" />\r
+ <Content Include="res\images\focuseffect\white-pixel.png" />\r
+ <Content Include="res\images\World.svg" />\r
+ </ItemGroup>\r
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
+ Other similar extension points exist, see Microsoft.Common.targets.\r
+ <Target Name="BeforeBuild">\r
+ </Target>\r
+ <Target Name="AfterBuild">\r
+ </Target>\r
+ -->\r
+ <PropertyGroup>\r
+ <!-- https://github.com/dotnet/corefxlab/tree/master/samples/NetCoreSample and\r
+ https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/target-dotnetcore-with-msbuild\r
+ -->\r
+ <!-- We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two\r
+ properties to any folder that exists to skip the GetReferenceAssemblyPaths task (not target) and\r
+ to prevent it from outputting a warning (MSB3644).\r
+ -->\r
+ <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories>\r
+ <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths>\r
+ <AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences>\r
+ </PropertyGroup>\r
+ <ProjectExtensions>\r
+ <VisualStudio>\r
+ <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Debug|Any CPU">\r
+ <ProjectCorporateFlavorCfg />\r
+ </FlavorProperties>\r
+ <FlavorProperties GUID="{2F98DAC9-6F16-457B-AED7-D43CAC379341}" Configuration="Release|Any CPU">\r
+ <ProjectCorporateFlavorCfg />\r
+ </FlavorProperties>\r
+ </VisualStudio>\r
+ </ProjectExtensions>\r
+</Project>\r
--- /dev/null
+{\r
+ "buildOptions": {\r
+ "emitEntryPoint": true,\r
+ "debugType": "portable",\r
+ "platform": "AnyCPU",\r
+ "preserveCompilationContext": true\r
+ },\r
+ "dependencies": {\r
+ "Microsoft.NETCore.App": {\r
+ "version": "1.0.0"\r
+ },\r
+ "Tizen.Applications.Common": "1.5.8",\r
+ "Tizen.Applications.UI": "1.5.8",\r
+ "Tizen.Library": "1.0.0-pre2"\r
+ },\r
+ "runtimes": {\r
+ "win": {},\r
+ "linux": {}\r
+ },\r
+ "frameworks": {\r
+ "netcoreapp1.0": {\r
+ "imports": [\r
+ "portable-net45+wp80+win81+wpa81",\r
+ "netstandard1.6"\r
+ ]\r
+ }\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+using System.Reflection;\r
+using System.Runtime.CompilerServices;\r
+using System.Runtime.InteropServices;\r
+\r
+// General Information about an assembly is controlled through the following \r
+// set of attributes. Change these attribute values to modify the information\r
+// associated with an assembly.\r
+[assembly: AssemblyTitle("NUISamples.TizenTV")]\r
+[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyConfiguration("")]\r
+[assembly: AssemblyCompany("Microsoft")]\r
+[assembly: AssemblyProduct("NUISamples.TizenTV")]\r
+[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]\r
+[assembly: AssemblyTrademark("")]\r
+[assembly: AssemblyCulture("")]\r
+\r
+// Setting ComVisible to false makes the types in this assembly not visible \r
+// to COM components. If you need to access a type in this assembly from \r
+// COM, set the ComVisible attribute to true on that type.\r
+[assembly: ComVisible(false)]\r
+\r
+// The following GUID is for the ID of the typelib if this project is exposed to COM\r
+[assembly: Guid("7731be98-0a68-49a9-877c-a30a0d30d9f6")]\r
+\r
+// Version information for an assembly consists of the following four values:\r
+//\r
+// Major Version\r
+// Minor Version \r
+// Build Number\r
+// Revision\r
+//\r
+// You can specify all the values or you can default the Build and Revision Numbers \r
+// by using the '*' as shown below:\r
+// [assembly: AssemblyVersion("1.0.*")]\r
+[assembly: AssemblyVersion("1.0.0.0")]\r
+[assembly: AssemblyFileVersion("1.0.0.0")]\r
base.OnCreate();
myView = new View();
- myView.Size2D = new Size2D(100, 100);
+ myView.Size = new Size(100, 100, 0);
myView.Position = new Position(100, 100, 0);
myView.BackgroundColor = Color.Red;
myView.Name = "myView";
myTextLabel = new TextLabel();
myTextLabel.Position = new Position(100, 100, 0);
- myTextLabel.Size2D = new Size2D(100, 100);
+ myTextLabel.Size = new Size(100, 100, 0);
myTextLabel.Name = "myTextLabel";
myView.Add(myTextLabel);
private void ObjectDumpTrigger()
{
- for (int i = 0; i < Window.LayerCount; i++)
+ for (int i = 0; i < Window.GetLayerCount(); i++)
{
BFS(Window.GetLayer((uint)i), 1);
}
Tizen.Log.Fatal("NUI-APP", string.Format("it is not TextLaebl"));
}
- for (int i = 0; i < myView.ChildCount; i++)
+ for (int i = 0; i < myView.GetChildCount(); i++)
{
BFS(myView.GetChildAt((uint)i), depth + 1);
}
{
Layer myLayer = o as Layer;
- for (int i = 0; i < myLayer.ChildCount; i++)
+ for (int i = 0; i < myLayer.GetChildCount(); i++)
{
BFS(myLayer.GetChildAt((uint)i), depth + 1);
}
layer.Add(vi2);
layer.Add(tb3);
- Window.Instance.Add(layer);
+ Window.Instance.AddLayer(layer);
}
void ObjectDumpTrigger2()
{
- uint layerCnt = Window.LayerCount;
+ uint layerCnt = Window.GetLayerCount();
Tizen.Log.Fatal("NUI-APP", "layerCnt=" + layerCnt);
for (uint i = 0; i < layerCnt; i++)
Tizen.Log.Fatal("NUI-APP", "### layer is null! just return!");
return;
}
- uint childCnt = layer.ChildCount;
+ uint childCnt = layer.GetChildCount();
if (childCnt > 0)
{
for (uint i = 0; i < childCnt; i++)
{
if (view)
{
- uint childCnt = view.ChildCount;
+ uint childCnt = view.GetChildCount();
if (childCnt > 0)
{
depth = depth + 1;
{
// Make label for item
TextLabel itemLabel = new TextLabel(" " + item.name);
- itemLabel.Size2D = new Size2D((int)(_window.Size.Width * 0.2f), (int)(_window.Size.Height * 0.05f));
+ itemLabel.Size = new Vector3(_window.Size.Width * 0.2f, _window.Size.Height * 0.05f, 0.0f);
itemLabel.HorizontalAlignment = HorizontalAlignment.Begin;
itemLabel.VerticalAlignment = VerticalAlignment.Bottom;
//itemLabel.PointSize = 18.0f;
else
{
ImageView notSupportView = new ImageView(_resPath + "/images/not_yet_sign.png");
- notSupportView.Size2D = new Size2D((int)(_window.Size.Width * 0.2f), (int)(_window.Size.Height * 0.25f));
+ notSupportView.Size = new Vector3(_window.Size.Width * 0.2f, _window.Size.Height * 0.25f, 0.0f);
notSupportView.Focusable = (true);
_contentContainer.AddChild(notSupportView, new TableView.CellPosition(((uint)idx / 5) * 2 + 1, (uint)idx % 5));
}
footer.Name = ("Footer");
footer.WidthResizePolicy = ResizePolicyType.FillToParent;
footer.HeightResizePolicy = ResizePolicyType.Fixed;
- footer.Size2D = new Size2D(0, 80);
+ footer.Size = new Size(0.0f, 80.0f, 0.0f);
footer.PivotPoint = PivotPoint.Center;
PushButton okButton = CreateOKButton();
// Add the image view to the row
ImageView image = new ImageView(resources+"/images/gallery-" + i + ".jpg");
- image.Size2D = new Size2D(120, 120);
+ image.Size = new Vector3(120.0f, 120.0f, 0.0f);
image.WidthResizePolicy = ResizePolicyType.Fixed;
image.HeightResizePolicy = ResizePolicyType.Fixed;
image.AlignSelf = (int)FlexContainer.Alignment.AlignCenter;
// Add the rating control to the row
view.ParentOrigin = ParentOrigin.Center;
view.PivotPoint = PivotPoint.Center;
- view.Size2D = new Size2D(200, 40);
+ view.Size = new Vector3(200.0f, 40.0f, 0.0f);
view.Flex = 0.7f;
view.AlignSelf = (int)FlexContainer.Alignment.AlignCenter;
view.FlexMargin = new Vector4(30.0f, 0.0f, 0.0f, 0.0f);
handle.GetProperty(myPropertyIndex).Get(out myProperty);
Tizen.Log.Debug("NUI", "myProperty value: " + myProperty );
- int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new PropertyValue(new Size2D(5, 5)), PropertyAccessMode.ReadWrite);
- Size2D myProperty2 = new Size2D(0, 0);
+ int myPropertyIndex2 = handle.RegisterProperty("myProperty2", new PropertyValue(new Size(5.0f, 5.0f, 0.0f)), PropertyAccessMode.ReadWrite);
+ Size myProperty2 = new Size(0.0f, 0.0f, 0.0f);
handle.GetProperty(myPropertyIndex2).Get(myProperty2);
Tizen.Log.Debug("NUI", "myProperty2 value: " + myProperty2.Width + ", " + myProperty2.Height );
View view = new View();
- view.Size2D = new Size2D(200, 200);
+ view.Size = new Size(200.0f, 200.0f, 0.0f);
view.Name = "MyView";
//view.MixColor = new Color(1.0f, 0.0f, 1.0f, 0.8f);
- Tizen.Log.Debug("NUI", "View size: " + view.Size2D.Width + ", " + view.Size2D.Height);
+ Tizen.Log.Debug("NUI", "View size: " + view.Size.Width + ", " + view.Size.Height);
Tizen.Log.Debug("NUI", "View name: " + view.Name);
Window window = Window.Instance;
window.BackgroundColor = Color.White;
- Size2D windowSize = new Size2D(window.Size.Width, window.Size.Height);
+ Size windowSize = new Size(window.Size.Width, window.Size.Height, 0.0f);
Tizen.Log.Debug("NUI", "Window size: " + windowSize.Width + ", " + windowSize.Height);
window.Add(view);
RectanglePaddingClassTest();
Tizen.Log.Debug("NUI", " *************************" );
- Size2D Size = new Size2D(100, 50);
+ Size Size = new Size(100, 50, 0);
Tizen.Log.Debug("NUI", " Created " + Size );
Tizen.Log.Debug("NUI", " Size x = " + Size.Width + ", y = " + Size.Height );
- Size += new Size2D(20, 20);
+ Size += new Size(20, 20, 0);
Tizen.Log.Debug("NUI", " Size x = " + Size.Width + ", y = " + Size.Height );
Size.Width += 10;
Size.Height += 10;
private Spin _spinYear; // spin control for year
private Spin _spinMonth; // spin control for month
private Spin _spinDay; // spin control for day
- //private Builder _builder; // DALi Builder
+ private Builder _builder; // DALi Builder
public Example() : base()
{
//This is required for the Application which uses JSON theme and style of Dali builder
ViewRegistryHelper.Initialize();
-/*
+
// load date JSON template...
_builder = new Builder ();
keyboardFocusManager.FocusedViewActivated += OnFocusedViewActivated;
StyleManager.Get().ApplyTheme("/home/owner/apps_rw/NUISamples.TizenTV/res/json/date-picker-theme.json");
-*/
}
private View OnKeyboardPreFocusChange(object source, FocusManager.PreFocusChangeEventArgs e)
return nextFocusView;
}
-/*
+
private void OnFocusedViewActivated(object source, FocusManager.FocusedViewActivatedEventArgs e)
{
// Make the text field in the current focused spin to take the key input
}
}
}
-*/
+
/// <summary>
/// The main entry point for the application.
//_container.ParentOrigin = ParentOrigin.Center;
_container.PivotPoint = PivotPoint.Center;
_container.FlexDirection = FlexContainer.FlexDirectionType.Row;
- _container.Size2D = new Size2D(480, 150);
+ _container.Size = new Vector3(480.0f, 150.0f, 0.0f);
_container.Position2D = new Position2D(400, 400);
window.Add(_container);
Window.Instance.BackgroundColor = new Color(0.1f, 0.8f, 0.1f, 1.0f);
container = new FlexContainer();
- container.Size2D = new Size2D(Window.Instance.Size.Width, Window.Instance.Size.Height);
+ container.Size = new Size(Window.Instance.Size.Width, Window.Instance.Size.Height, 0);
container.PivotPoint = PivotPoint.TopLeft;
container.Padding = new Vector4(100, 100, 100, 100);
};
//added
- Window.Instance.Touch += (sender, e) =>
+ Window.Instance.Touched += (sender, e) =>
{
Tizen.Log.Debug("NUI", "Window Touch signal callback! To avoid crash, when losing key focus, set here again unless the NextView is null");
FocusManager.Instance.SetCurrentFocusView(label[3]);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.Text = "label " + i;
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.LabelText = "button " + i;
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.ResourceUrl = resources + "/images/gallery-3.jpg";
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.Text = "editor" + i;
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.Text = "field " + i;
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
v.LabelText = "check " + i;
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
myViewList.Add(v);
Window.Instance.GetDefaultLayer().Add(v);
}
-/*
+
for (int i = 350; i < 400; i++)
{
Slider v = new Slider();
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100, 0);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
myViewList.Add(v);
Window.Instance.GetDefaultLayer().Add(v);
}
-*/
+
for (int i = 400; i < 450; i++)
{
TableView v = new TableView(1, 1);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
myViewList.Add(v);
float intensity = myRandom.Next(0, 255) / 255.0f;
v.BackgroundColor = new Color(intensity, intensity, intensity, 1);
v.Position = new Position(myRandom.Next(0, 1820), myRandom.Next(0, 980), 0);
- v.PivotPoint = PivotPoint.TopLeft;
- v.Size2D = new Size2D(100, 100);
+ v.AnchorPoint = AnchorPoint.TopLeft;
+ v.Size = new Size(100, 100, 0);
myViewList.Add(v);
{
// Connect the signal callback for window touched signal
_window = Window.Instance;
- _window.Touch += OnWindowTouched;
+ _window.Touched += OnWindowTouched;
// Add a _text label to the window
_text = new TextLabel("Hello Mono World");
}
// Callback for window touched signal handling
- private void OnWindowTouched(object sender, Window.TouchEventArgs e)
+ private void OnWindowTouched(object sender, Window.TouchedEventArgs e)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.Down)
{
Window window = Window.Instance;
window.BackgroundColor = Color.White;
- window.Touch += OnWindowTouched;
- window.Key += OnWindowKeyEvent;
+ window.Touched += OnWindowTouched;
+ window.KeyPressed += OnWindowKeyEvent;
window.Resized += (obj, e) =>
{
Tizen.Log.Debug("NUI", "Height: " + e.Height);
window.Add(_text);
_view = new View();
- _view.Size2D = new Size2D(100, 100);
+ _view.Size = new Size(100, 100, 100);
_view.SizeWidth = 50;
Tizen.Log.Debug("NUI", "[1]_view SizeWidth=" + _view.SizeWidth);
}
}
- public void OnWindowTouched(object sender, Window.TouchEventArgs e)
+ public void OnWindowTouched(object sender, Window.TouchedEventArgs e)
{
if (e.Touch.GetState(0) == PointStateType.Down)
{
Log("Customized Application Initialize event handler");
window = Window.Instance;
window.BackgroundColor = Color.Cyan;
- window.Touch += OnWindowTouched;
- window.WheelRoll += OnWindowWheelMoved;
- window.Key += OnWindowKeyPressed;
+ window.Touched += OnWindowTouched;
+ window.WheelRolled += OnWindowWheelMoved;
+ window.KeyPressed += OnWindowKeyPressed;
//window.EventProcessingFinished += OnWindowEventProcessingFinished;
layer = window.GetDefaultLayer();
_imageView.PivotPoint = PivotPoint.TopLeft;
_imageView.Position = new Position(5.0f, 5.0f, 0.0f);
_imageView.PixelArea = new Vector4(0.0f, 0.0f, 0.5f, 0.5f);
- _imageView.Size2D = new Size2D(200, 80);
+ _imageView.Size = new Size(200.0f, 80.0f, 0.0f);
//_imageView.SetResizePolicy(ResizePolicyType.USE_NATURAL_SIZE, DimensionType.ALL_DIMENSIONS);
layer.Add(_imageView);
nPatchImage.ParentOrigin = ParentOrigin.BottomLeft;
nPatchImage.PivotPoint = PivotPoint.BottomLeft;
nPatchImage.PositionUsesAnchorPoint = true;
- nPatchImage.Size2D = new Size2D(300, 100);
+ nPatchImage.Size = new Size(300.0f, 100.0f, 0.0f);
nPatchImage.ImageMap = _map;
layer.Add(nPatchImage);
syncNineImage.PivotPoint = PivotPoint.CenterLeft;
syncNineImage.Position2D = new Position2D(0, 200);
syncNineImage.PositionUsesAnchorPoint = true;
- syncNineImage.Size2D = new Size2D(150, 150);
+ syncNineImage.Size = new Size(150.0f, 150.0f, 0.0f);
syncNineImage.ResourceUrl = resources+"/images/00_popup_bg.9.png";
syncNineImage.SynchronosLoading = true;
syncNineImage.Border = new Rectangle(0, 0, 0, 0);
_animation.AnimateTo(_imageView, "PixelArea", new Vector4(0.5f, 0.5f, 0.5f, 0.5f), 3000, 4000);
KeyFrames _keyFrames = new KeyFrames();
- _keyFrames.Add(0.0f, new Size2D(0, 0));
- _keyFrames.Add(0.3f, new Size2D((int)(window.Size.Width * 0.7f), (int)(window.Size.Height * 0.7f)));
- _keyFrames.Add(1.0f, new Size2D(window.Size.Width, window.Size.Height));
+ _keyFrames.Add(0.0f, new Size(0.0f, 0.0f, 0.0f));
+ _keyFrames.Add(0.3f, new Size(window.Size.Width * 0.7f, window.Size.Height * 0.7f, 0.0f));
+ _keyFrames.Add(1.0f, new Size(window.Size));
_animation.AnimateBetween(_imageView, "Size", _keyFrames, 4000, 6000, Animation.Interpolation.Linear);
_animation.EndAction = Animation.EndActions.Discard;
Log("state=" + e.Key.State);
}
- public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e)
+ public void OnWindowWheelMoved(object sender, Window.WheelRolledEventArgs e)
{
Log("OnWindowWheelEventOccured()!");
Log("direction=" + e.Wheel.Direction);
}
// Callback for window touched signal handling
- public void OnWindowTouched(object sender, Window.TouchEventArgs e)
+ public void OnWindowTouched(object sender, Window.TouchedEventArgs e)
{
Log("OnWindowTouched()! e.TouchData.GetState(0)=" + e.Touch.GetState(0));
}
private void Initialize()
{
_window = Window.Instance;
- _window.Touch += OnWindowTouched;
+ _window.Touched += OnWindowTouched;
_imageView = new ImageView();
_imageView.ResourceUrl = resources+"/images/gallery-3.jpg";
}
// Callback for window touched signal handling
- private void OnWindowTouched(object sender, Window.TouchEventArgs e)
+ private void OnWindowTouched(object sender, Window.TouchedEventArgs e)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.Down)
// Create a scroll view
_scrollView = new ScrollView();
- Size2D windowSize = new Size2D(window.Size.Width, window.Size.Height);
- _scrollView.Size2D = new Size2D((int)windowSize.Width, (int)windowSize.Height);
+ Size windowSize = new Size(window.Size.Width, window.Size.Height, 0.0f);
+ _scrollView.Size = new Size(windowSize.Width, windowSize.Height, 0.0f);
_scrollView.ParentOrigin = ParentOrigin.Center;
_scrollView.PivotPoint = PivotPoint.Center;
window.Add(_scrollView);
ImageView imageView = new ImageView(resources+"/images/image-" + imageId + ".jpg");
imageView.ParentOrigin = ParentOrigin.Center;
imageView.PivotPoint = PivotPoint.Center;
- imageView.Size2D = new Size2D((int)imageSize.X, (int)imageSize.Y);
+ imageView.Size = new Size(imageSize.X, imageSize.Y, imageSize.Z);
imageView.Position = new Position( margin * 0.5f + (imageSize.X + margin) * column - windowSize.Width * 0.5f + imageSize.X * 0.5f,
margin * 0.5f + (imageSize.Y + margin) * row - windowSize.Height * 0.5f + imageSize.Y * 0.5f, 0.0f );
pageActor.Add(imageView);
// Connect to the OnRelayout signal
_scrollView.Relayout += OnScrollViewRelayout;
//_scrollView.Touched += OnTouch;
- _scrollView.WheelRoll += Onwheel;
+ _scrollView.WheelRolled += Onwheel;
_scrollView.FocusGained += OnKey;
_text = new TextLabel("View Touch Event Handler Test");
_text.ParentOrigin = ParentOrigin.Center;
Tizen.Log.Debug("NUI", "View Keyevent EVENT callback....");
}
- private bool Onwheel(object source, View.WheelEventArgs e)
+ private bool Onwheel(object source, View.WheelRolledEventArgs e)
{
Tizen.Log.Debug("NUI", "View Wheel EVENT callback....");
return true;
}
- private bool OnTouch(object source, View.TouchEventArgs e)
+ private bool OnTouch(object source, View.TouchedEventArgs e)
{
Tizen.Log.Debug("NUI", "View TOUCH EVENT callback....");
Tizen.Log.Debug("NUI", "View OnRelayoutEventArgs EVENT callback....");
// Set the correct scroll bar size after size negotiation of scroll view is done
- _scrollBar.Size2D = new Size2D(0, (int)_scrollView.GetRelayoutSize(DimensionType.Width));
+ _scrollBar.Size = new Size(0.0f, _scrollView.GetRelayoutSize(DimensionType.Width), 0.0f);
}
/// <summary>
Log("Initialize() is called!");
Window window = Window.Instance;
window.BackgroundColor = Color.White;
- window.Touch += OnWindowTouched;
- window.Touch += OnWindowTouched2;
+ window.Touched += OnWindowTouched;
+ window.Touched += OnWindowTouched2;
//window.EventProcessingFinished += OnEventProcessingFinished;
- window.WheelRoll += OnWindowWheelEvent;
+ window.WheelRolled += OnWindowWheelEvent;
// Add a _text label to the window
_text = new TextLabel("Hello Mono World");
window.Add(_text);
_view1 = new View();
- _view1.Size2D = new Size2D(200, 200);
+ _view1.Size = new Vector3(200.0f, 200.0f, 0.0f);
_view1.BackgroundColor = Color.Green;
_view1.ParentOrigin = ParentOrigin.Center;
_view1.PivotPoint = PivotPoint.Center;
_view2 = new View();
_view2.BackgroundColor = Color.Red;
- _view2.Size2D = new Size2D(50, 50);
+ _view2.Size = new Vector3(50.0f, 50.0f, 0.0f);
_view2.ParentOrigin = ParentOrigin.TopLeft;
_view2.PivotPoint = PivotPoint.TopLeft;
_view2.WidthResizePolicy = ResizePolicyType.Fixed;
_view3 = new View();
_view3.BackgroundColor = Color.Blue;
- _view3.Size2D = new Size2D(50, 50);
+ _view3.Size = new Vector3(50.0f, 50.0f, 0.0f);
_view3.ParentOrigin = ParentOrigin.TopLeft;
_view3.PivotPoint = PivotPoint.TopLeft;
_view3.WidthResizePolicy = ResizePolicyType.Fixed;
}
// Callback for window touched signal handling
- public void OnWindowTouched(object source, Window.TouchEventArgs e)
+ public void OnWindowTouched(object source, Window.TouchedEventArgs e)
{
// Only animate the _text label when touch down happens
if (e.Touch.GetState(0) == PointStateType.Down)
}
// Callback for window touched signal handling
- public void OnWindowTouched2(object source, Window.TouchEventArgs e)
+ public void OnWindowTouched2(object source, Window.TouchedEventArgs e)
{
Log("OnWindowTouched2() is called!state=" + e.Touch.GetState(0));
}
Log("OnEventProcessingFinished() is called!");
}
- public void OnWindowWheelEvent(object source, Window.WheelEventArgs e)
+ public void OnWindowWheelEvent(object source, Window.WheelRolledEventArgs e)
{
Log("OnWindowWheelEvent() is called!");
//Log("OnWindowWheelEvent() is called!direction="+ e.WheelEvent.direction + " timeStamp=" + e.WheelEvent.timeStamp );
for (int i = 0; i < num; i++)
{
view[i] = new View();
- view[i].Size2D = new Size2D(200, 200);
+ view[i].Size = new Size(200, 200, 0);
view[i].BackgroundColor = Color.Blue;
view[i].Position = new Position(300 + i * 300, 300, 0);
view[i].Name = "MyView" + i;
FocusManager.Instance.SetCurrentFocusView(view[0]);
FocusManager.Instance.PreFocusChange += Instance_PreFocusChange;
- Window.Instance.Touch += Instance_Touch;
+ Window.Instance.Touched += Instance_Touch;
}
- private void Instance_Touch(object sender, Window.TouchEventArgs e)
+ private void Instance_Touch(object sender, Window.TouchedEventArgs e)
{
Tizen.Log.Debug("NUI", "window touched! set key focus as view[0]!");
FocusManager.Instance.SetCurrentFocusView(view[0]);
private bool _active1 = false;
private bool _active2 = false;
private bool _active3 = false;
- private const string _resPath = "/home/owner/apps_rw/NUISample2.Tizen/res";
+ private const string _resPath = "/home/owner/apps_rw/NUISamples.TizenTV/res";
private Animation _animation;
private ImageVisual _icon;
_visualView = new VisualView();
_visualView.ParentOrigin = ParentOrigin.TopLeft;
_visualView.PivotPoint = PivotPoint.TopLeft;
- _visualView.Size2D = new Size2D(window.Size.Width, window.Size.Height);
+ _visualView.Size = new Size(window.Size.Width, window.Size.Height, 0.0f);
/* color visual */
ColorVisual colorVisualMap1 = new ColorVisual();
borderVisualMap1.BorderSize = 1.0f + (float)cnt;
};
- /*
+
Tizen.Log.Debug("NUI", "[WindowFocusTest] is focus acceptable=" + _window.IsFocusAcceptable());
_window.SetAcceptFocus(false);
Tizen.Log.Debug("NUI", "[WindowFocusTest] set focus acceptable=false!!!");
_window.SetAcceptFocus(true);
Tizen.Log.Debug("NUI", "[WindowFocusTest] set focus acceptable=true!!!");
Tizen.Log.Debug("NUI", "[WindowFocusTest] is focus acceptable=" + _window.IsFocusAcceptable());
- */
+
}
for (int i = 0; i < num; i++)
{
view[i] = new VisualView();
- view[i].Size2D = new Size2D(600, 600);
+ view[i].Size = new Size(600, 600, 0);
view[i].BackgroundColor = Color.Blue;
view[i].Position = new Position(400 + i * 800, 600, 0);
view[i].Focusable = true;
"Enter - Change BG image\n";
Window.Instance.Add(guide);
- Window.Instance.Key += Instance_Key;
+ Window.Instance.KeyPressed += Instance_Key;
FocusManager.Instance.SetCurrentFocusView(view[0]);
- Window.Instance.Touch += Instance_Touch;
+ Window.Instance.Touched += Instance_Touch;
_window = Window.Instance;
_window.FocusChanged += _window_WindowFocusChanged;
Tizen.Log.Fatal("NUI", "window focus changed!() focus gained=" + e.FocusGained);
}
- private void Instance_Touch(object sender, Window.TouchEventArgs e)
+ private void Instance_Touch(object sender, Window.TouchedEventArgs e)
{
FocusManager.Instance.SetCurrentFocusView(view[0]);
}
_visualView = new VisualView();
_visualView.ParentOrigin = ParentOrigin.TopLeft;
_visualView.PivotPoint = PivotPoint.TopLeft;
- _visualView.Size2D = new Size2D(window.Size.Width, window.Size.Height);
+ _visualView.Size = new Size(window.Size.Width, window.Size.Height, 0.0f);
/* color visual */
ColorVisual colorVisualMap1 = new ColorVisual();
cnt++;
Tizen.Log.Debug("NUI", "[WindowFocusTest] WindowFocusChanged event comes! focus gained=" + ee.FocusGained);
};
- /*
+
Tizen.Log.Debug("NUI", "[WindowFocusTest] is focus acceptable=" + _window.IsFocusAcceptable());
_window.SetAcceptFocus(false);
Tizen.Log.Debug("NUI", "[WindowFocusTest] set focus acceptable=false!!!");
_window.SetAcceptFocus(true);
Tizen.Log.Debug("NUI", "[WindowFocusTest] set focus acceptable=true!!!");
Tizen.Log.Debug("NUI", "[WindowFocusTest] is focus acceptable=" + _window.IsFocusAcceptable());
- */
}
[STAThread]
// colorVisual.Add( Visual.Property.Type, new PropertyValue( (int)Visual.Type.Color ))
// .Add( ColorVisualProperty.MixColor, new PropertyValue( Color.Green ));
//colorView.Background = colorVisual;
- colorView.Size2D = new Size2D(500, 200);
+ colorView.Size = new Size(500.0f, 200.0f, 0.0f);
colorView.ResourceUrl = resources+"/images/00_popup_bg.9.png";
colorView.Border = new Rectangle(100, 100, 100, 100);
// colorView.
public class ContactView : CustomView
{
private const int PROPERTY_REGISTRATION_START_INDEX = 10001000;
- private const int ColorVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX + 1;
- private const int PrimitiveVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX + 2;
- private const int ImageVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX + 3;
- private const int TextVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX + 4;
+ private const int ColorVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX+1 ;
+ private const int PrimitiveVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX+2;
+ private const int ImageVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX+3;
+ private const int TextVisualPropertyIndex = PROPERTY_REGISTRATION_START_INDEX+4;
private VisualBase _imageVisual;
private VisualBase _colorVisual;
private VisualBase _primitiveVisual;
static ContactView()
{
- ViewRegistry.Instance.Register(CreateInstance, typeof(ContactView));
+ ViewRegistry.Instance.Register( CreateInstance, typeof(ContactView));
}
public ContactView() : base(typeof(ContactView).Name, CustomViewBehaviour.RequiresKeyboardNavigationSupport)
public string MaskURL
{
get { return _maskURL; }
- set { _maskURL = value; }
- }\r
-/*\r
- [ScriptableProperty()]\r
- public string ImageURL\r
- {\r
- get\r
- {\r
- return _imageURL;\r
- }\r
- set\r
- {\r
- _imageURL = value;\r
-\r
- // Create and Register Image Visual\r
- PropertyMap imageVisual = new PropertyMap();\r
- imageVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))\r
- .Add(ImageVisualProperty.URL, new PropertyValue(_imageURL))\r
- .Add(ImageVisualProperty.AlphaMaskURL, new PropertyValue(_maskURL));\r
- _imageVisual = VisualFactory.Get().CreateVisual(imageVisual);\r
-\r
- RegisterVisual(GetPropertyIndex("ImageURL"), _imageVisual);\r
-\r
- // Set the depth index for Image visual\r
- _imageVisual.DepthIndex = ImageVisualPropertyIndex;\r
- }\r
- }\r
-\r
- [ScriptableProperty()]\r
- public string Name\r
- {\r
- get\r
- {\r
- return _name;\r
- }\r
- set\r
- {\r
- _name = value;\r
-\r
- // Create and Register Text Visual\r
- PropertyMap textVisual = new PropertyMap();\r
- textVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text))\r
- .Add(TextVisualProperty.Text, new PropertyValue(_name))\r
- .Add(TextVisualProperty.TextColor, new PropertyValue(Color.White))\r
- .Add(TextVisualProperty.PointSize, new PropertyValue(7))\r
- .Add(TextVisualProperty.HorizontalAlignment, new PropertyValue("CENTER"))\r
- .Add(TextVisualProperty.VerticalAlignment, new PropertyValue("CENTER"));\r
- _textVisual = VisualFactory.Get().CreateVisual(textVisual);\r
-\r
- RegisterVisual(GetPropertyIndex("Name"), _textVisual);\r
-\r
- // Set the depth index for Text visual\r
- _textVisual.DepthIndex = TextVisualPropertyIndex;\r
- }\r
- }\r
-\r
- [ScriptableProperty()]\r
- public Color Color\r
- {\r
- get\r
- {\r
- return _color;\r
- }\r
- set\r
- {\r
- _color = value;\r
- BackgroundColor = value;\r
- }\r
- }\r
-\r
- [ScriptableProperty()]\r
- public int Shape\r
- {\r
- get\r
- {\r
- return _shape;\r
- }\r
- set\r
- {\r
- _shape = value;\r
-\r
- // Create and Register Primitive Visual\r
- PropertyMap primitiveVisual = new PropertyMap();\r
- primitiveVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Primitive))\r
- .Add(PrimitiveVisualProperty.Shape, new PropertyValue(_shape))\r
- .Add(PrimitiveVisualProperty.BevelPercentage, new PropertyValue(0.3f))\r
- .Add(PrimitiveVisualProperty.BevelSmoothness, new PropertyValue(0.0f))\r
- .Add(PrimitiveVisualProperty.ScaleDimensions, new PropertyValue(new Vector3(1.0f, 1.0f, 0.3f)))\r
- .Add(PrimitiveVisualProperty.MixColor, new PropertyValue(new Vector4((245.0f / 255.0f), (188.0f / 255.0f), (73.0f / 255.0f), 1.0f)));\r
- _primitiveVisual = VisualFactory.Get().CreateVisual(primitiveVisual);\r
- RegisterVisual(GetPropertyIndex("Shape"), _primitiveVisual);\r
-\r
- // Set the depth index for Primitive visual\r
- _primitiveVisual.DepthIndex = PrimitiveVisualPropertyIndex;\r
- }\r
- }\r
-*/
+ set { _maskURL=value; }
+ }
+
+ [ScriptableProperty()]
+ public string ImageURL
+ {
+ get
+ {
+ return _imageURL;
+ }
+ set
+ {
+ _imageURL = value;
+
+ // Create and Register Image Visual
+ PropertyMap imageVisual = new PropertyMap();
+ imageVisual.Add( Visual.Property.Type, new PropertyValue( (int)Visual.Type.Image ))
+ .Add( ImageVisualProperty.URL, new PropertyValue( _imageURL ) )
+ .Add( ImageVisualProperty.AlphaMaskURL, new PropertyValue( _maskURL ));
+ _imageVisual = VisualFactory.Get().CreateVisual( imageVisual );
+
+ RegisterVisual( GetPropertyIndex("ImageURL"), _imageVisual );
+
+ // Set the depth index for Image visual
+ _imageVisual.DepthIndex = ImageVisualPropertyIndex;
+ }
+ }
+
+ [ScriptableProperty()]
+ public string Name
+ {
+ get
+ {
+ return _name;
+ }
+ set
+ {
+ _name = value;
+
+ // Create and Register Text Visual
+ PropertyMap textVisual = new PropertyMap();
+ textVisual.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Text))
+ .Add(TextVisualProperty.Text, new PropertyValue(_name))
+ .Add(TextVisualProperty.TextColor, new PropertyValue(Color.White))
+ .Add(TextVisualProperty.PointSize, new PropertyValue(7))
+ .Add( TextVisualProperty.HorizontalAlignment, new PropertyValue("CENTER"))
+ .Add( TextVisualProperty.VerticalAlignment, new PropertyValue("CENTER"));
+ _textVisual = VisualFactory.Get().CreateVisual( textVisual );
+
+ RegisterVisual( GetPropertyIndex("Name"), _textVisual );
+
+ // Set the depth index for Text visual
+ _textVisual.DepthIndex = TextVisualPropertyIndex;
+ }
+ }
+
+ [ScriptableProperty()]
+ public Color Color
+ {
+ get
+ {
+ return _color;
+ }
+ set
+ {
+ _color = value;
+ BackgroundColor = value;
+ }
+ }
+
+ [ScriptableProperty()]
+ public int Shape
+ {
+ get
+ {
+ return _shape;
+ }
+ set
+ {
+ _shape = value;
+
+ // Create and Register Primitive Visual
+ PropertyMap primitiveVisual = new PropertyMap();
+ primitiveVisual.Add( Visual.Property.Type, new PropertyValue( (int)Visual.Type.Primitive ))
+ .Add( PrimitiveVisualProperty.Shape, new PropertyValue(_shape))
+ .Add( PrimitiveVisualProperty.BevelPercentage, new PropertyValue(0.3f))
+ .Add( PrimitiveVisualProperty.BevelSmoothness, new PropertyValue(0.0f))
+ .Add( PrimitiveVisualProperty.ScaleDimensions, new PropertyValue(new Vector3(1.0f,1.0f,0.3f)))
+ .Add( PrimitiveVisualProperty.MixColor, new PropertyValue(new Vector4((245.0f/255.0f), (188.0f/255.0f), (73.0f/255.0f), 1.0f)));
+ _primitiveVisual = VisualFactory.Get().CreateVisual( primitiveVisual );
+ RegisterVisual( GetPropertyIndex("Shape"), _primitiveVisual );
+
+ // Set the depth index for Primitive visual
+ _primitiveVisual.DepthIndex = PrimitiveVisualPropertyIndex;
+ }
+ }
+
public override void OnInitialize()
{
// Enable Tap gesture on ContactView
{
// Change the Color visual of ContactView with some random color
Random random = new Random();
- float nextRed = (random.Next(0, 256) / 255.0f);
+ float nextRed = (random.Next(0, 256) / 255.0f);
float nextGreen = (random.Next(0, 256) / 255.0f);
- float nextBlue = (random.Next(0, 256) / 255.0f);
- Animation anim = AnimateBackgroundColor(new Color(nextRed, nextGreen, nextBlue, 1.0f), 0, 2000);
+ float nextBlue = (random.Next(0, 256) / 255.0f);
+ Animation anim = AnimateBackgroundColor( new Color( nextRed, nextGreen, nextBlue, 1.0f), 0, 2000 );
anim.Play();
}
// Configure visuals of ContactView via properties
contactView.Name = contact.Name;
contactView.MaskURL = contact.MaskURL;
- //contactView.ImageURL = contact.ImageURL;
- //contactView.Color = contact.Color;
- //contactView.Shape = contact.Shape;
+ contactView.ImageURL = contact.ImageURL;
+ contactView.Color = contact.Color;
+ contactView.Shape = contact.Shape;
contentLayout.Add(contactView);
}
}
/// The main entry point for the application.
/// </summary>
[STAThread]
- static void _Main(string[] args)
+ static void Main(string[] args)
{
VisualsExample visualsExample = new VisualsExample();
visualsExample.Run(args);
--- /dev/null
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ *
+ * This file is part of Dali Toolkit
+ *
+ * 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.
+ */
+
+{
+ "styles":
+ {
+ "ProgressBar":
+ {
+ }
+ }
+}
--- /dev/null
+/*
+ * Copyright (c) 2014 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.
+ *
+ */
+{
+ // Data picker loaded directly on to the stage
+ //
+ "templates": {
+ "date-picker":
+ {
+ "type":"FlexContainer",
+ "name":"exampleDatePicker",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "flexDirection":"ROW",
+ "size":[480.0, 150, 0 ],
+ "actors": [
+ {
+
+ "type": "Spin",
+ "name": "Year",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "Value":2017,
+ "MinValue":1900,
+ "MaxValue":2100,
+ "Step":1,
+ "TextColor":[0.0,0.0,1.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+ },
+ {
+
+ "type": "Spin",
+ "name": "Month",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "parentOrigin": "CENTER",
+ "Value":10,
+ "Step":1,
+ "MinValue":1,
+ "MaxValue":12,
+ "TextColor":[1.0,1.0,1.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+
+ },
+ {
+
+ "type": "Spin",
+ "name": "Day",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "Value":1,
+ "MinValue":1,
+ "MaxValue":31,
+ "TextColor":[1.0,0.0,0.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+ }]
+
+ }
+}
+
+}
+
--- /dev/null
+/*
+ * Copyright (c) 2014 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.
+ *
+ */
+{
+ // Data picker loaded directly on to the stage
+ //
+ "stage": [{
+
+ "type":"FlexContainer",
+ "name":"exampleDatePicker",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "flexDirection":"ROW",
+ "size":[480.0, 150, 0 ],
+ "actors": [
+ {
+
+ "type": "Spin",
+ "name": "Year",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "MinValue":1900,
+ "MaxValue":2100,
+ "Value":2017,
+ "Step":1,
+ "TextColor":[0.0,0.0,1.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+ },
+ {
+
+ "type": "Spin",
+ "name": "Month",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "parentOrigin": "CENTER",
+ "Step":1,
+ "MinValue":1,
+ "MaxValue":12,
+ "Value":10,
+ "TextColor":[1.0,1.0,1.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+
+ },
+ {
+
+ "type": "Spin",
+ "name": "Day",
+ "parentOrigin": "CENTER",
+ "anchorPoint": "CENTER",
+ "MinValue":1,
+ "MaxValue":31,
+ "Value":1,
+ "TextColor":[1.0,0.0,0.0,1.0],
+ "properties": { // properties registered dynamically
+ "flex":0.3,
+ "flexMargin": [5.0,0.0,5.0,0.0]
+ }
+ }]
+
+}]
+
+}
+
--- /dev/null
+/*
+ * Copyright (c) 2014 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.
+ *
+ */
+{
+ // a tree of actors
+ "stage": [
+ // You can add an array of Actors / Views here
+ // Lets add a spin to the stage
+ {
+ "type":"Spin",
+ "parentOrigin":"CENTER",
+ "size":[120,120,0]
+ // now lets use the C# app json-loader.exe to load it
+ }
+
+ ]
+}
--- /dev/null
+{\r
+ "constants": {\r
+ "STYLE_DIR": "{APPLICATION_RESOURCE_PATH}/style"\r
+ },\r
+ "styles": {\r
+ "Title": {\r
+ "textColor": "#0000ff",\r
+ "background": {\r
+ "visualType": "COLOR",\r
+ "mixColor": [ 1.0, 1.0, 1.0, 1.0 ]\r
+ }\r
+ },\r
+ "TableView": {\r
+ "background": {\r
+ "visualType": "COLOR",\r
+ "mixColor": [ 1.0, 1.0, 1.0, 0.03 ]\r
+ }\r
+ },\r
+ "FlexContainer": {\r
+ "background": {\r
+ "visualType": "COLOR",\r
+ "mixColor": [ 1.0, 1.0, 1.0, 0.1 ]\r
+ }\r
+ },\r
+ "RadioButton": {\r
+ "label": {\r
+ "textColor": [ 1, 1, 1, 1 ]\r
+ }\r
+ },\r
+ "CheckBoxButton": {\r
+ "label": {\r
+ "textColor": [ 1, 1, 1, 1 ]\r
+ }\r
+ },\r
+ "ColorLabel1": {\r
+ "textColor": [ 1, 0, 0, 1 ]\r
+ },\r
+ "ColorLabel2": {\r
+ "textColor": [ 0, 1, 0, 1 ]\r
+ },\r
+ "ColorLabel3": {\r
+ "textColor": [ 0.3, 0.3, 1, 1 ]\r
+ },\r
+ "ThemeLabel": {\r
+ "textColor": [ 0, 1, 1, 1 ]\r
+ },\r
+ "PopupTitle": {\r
+ "textColor": [ 1, 1, 1, 1 ]\r
+ },\r
+ "PopupBody": {\r
+ "textColor": [ 1, 1, 0, 1 ]\r
+ },\r
+ "TextLabel": {\r
+ "textColor": [ 0, 0, 0, 1 ]\r
+ },\r
+ "ColorSlider1": {\r
+ "styles": [ "Slider" ]\r
+ },\r
+ "ColorSlider2": {\r
+ "styles": [ "slider" ]\r
+ },\r
+ "ColorSlider3": {\r
+ "styles": [ "slider" ]\r
+ },\r
+ "ImageChannelControl": {\r
+ "enableVisibilityTransition": [\r
+ {\r
+ "target": "imageVisual",\r
+ "property": "opacity",\r
+ "initialValue": 0,\r
+ "targetValue": 1,\r
+ "animator": {\r
+ "alphaFunction": "EASE_IN_OUT",\r
+ "timePeriod": {\r
+ "duration": 0.25,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "imageVisual",\r
+ "property": "size",\r
+ "targetValue": [ 1, 1 ]\r
+ }\r
+ ],\r
+ "disableVisibilityTransition": [\r
+ {\r
+ "target": "imageVisual",\r
+ "property": "opacity",\r
+ "targetValue": 0,\r
+ "animator": {\r
+ "alphaFunction": "EASE_IN_OUT",\r
+ "timePeriod": {\r
+ "duration": 0.25,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "imageVisual",\r
+ "property": "size",\r
+ "targetValue": [ 1, 1, 1 ]\r
+ }\r
+ ]\r
+ },\r
+ "ShadowButton": {\r
+ "backgroundVisual": {\r
+ "visualType": "IMAGE",\r
+ "url": "{STYLE_DIR}/images/shadowButtonBg.9.png",\r
+ "mixColor": [ 1, 1, 1, 0 ]\r
+ },\r
+ "checkboxBgVisual": {\r
+ "visualType": "IMAGE",\r
+ "url": "{STYLE_DIR}/images/CheckBg.png",\r
+ "transform": {\r
+ "size": [ 0.09, 0.28 ],\r
+ "offset": [ 30, 0 ],\r
+ "offsetSizeMode": [ 1, 1, 0, 0 ],\r
+ "origin": "CENTER_BEGIN",\r
+ "anchorPoint": "CENTER_BEGIN"\r
+ }\r
+ },\r
+ "checkboxFgVisual": {\r
+ "visualType": "IMAGE",\r
+ "url": "{STYLE_DIR}/images/Tick.png",\r
+ "transform": {\r
+ "size": [ 0.09, 0.28 ],\r
+ "offset": [ 30, 0 ],\r
+ "offsetSizeMode": [ 1, 1, 0, 0 ],\r
+ "origin": "CENTER_BEGIN",\r
+ "anchorPoint": "CENTER_BEGIN"\r
+ }\r
+ },\r
+ "labelVisual": {\r
+ "visualType": "TEXT",\r
+ "text": "Don't show again",\r
+ "pointSize": 20,\r
+ "horizontalAlignment": "END",\r
+ "verticalAlignment": "CENTER",\r
+ "textColor": [ 1, 1, 1, 1 ],\r
+ "mixColor": [ 0.3, 0.3, 0.3, 1 ],\r
+ "transform": {\r
+ "size": [ 0.9, 0.9 ],\r
+ "offset": [ -30, 0 ],\r
+ "offsetSizeMode": [ 1, 1, 0, 0 ],\r
+ "origin": "CENTER_END",\r
+ "anchorPoint": "CENTER_END"\r
+ }\r
+ },\r
+ "activeTransition": [\r
+ {\r
+ "target": "checkboxBgVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.09, 0.28 ],\r
+ "targetValue": [ 0.12, 0.37 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "backgroundVisual",\r
+ "property": "mixColor",\r
+ "initialValue": [ 1, 1, 1, 0 ],\r
+ "targetValue": [ 1, 1, 1, 1 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "backgroundVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.9, 0.9 ],\r
+ "targetValue": [ 1, 1 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.09, 0.28 ],\r
+ "targetValue": [ 0.12, 0.37 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "labelVisual",\r
+ "property": "mixColor",\r
+ "initialValue": [ 0.2, 0.2, 0.2, 1.0 ],\r
+ "targetValue": [ 0, 0, 0, 1 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "inactiveTransition": [\r
+ {\r
+ "target": "checkboxBgVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.12, 0.37 ],\r
+ "targetValue": [ 0.09, 0.28 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "backgroundVisual",\r
+ "property": "mixColor",\r
+ "targetValue": [ 1, 1, 1, 0 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.12, 0.37 ],\r
+ "targetValue": [ 0.09, 0.28 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "labelVisual",\r
+ "property": "mixColor",\r
+ "targetValue": [ 0.4, 0.4, 0.4, 1.0 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "backgroundVisual",\r
+ "property": "size",\r
+ "targetValue": [ 0.9, 0.9 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT_BACK",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "checkTransition": [\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "pixelArea",\r
+ "initialValue": [ 0.0, 0.0, 0.0, 1.0 ],\r
+ "targetValue": [ 0.0, 0.0, 1.0, 1.0 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_IN",\r
+ "timePeriod": {\r
+ "duration": 0.4,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.0, 0.37 ],\r
+ "targetValue": [ 0.12, 0.37 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_IN",\r
+ "timePeriod": {\r
+ "duration": 0.4,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+ "uncheckTransition": [\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "pixelArea",\r
+ "initialValue": [ 0.0, 0.0, 1.0, 1.0 ],\r
+ "targetValue": [ 0.0, 0.0, 0.0, 1.0 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT",\r
+ "timePeriod": {\r
+ "duration": 0.4,\r
+ "delay": 0\r
+ }\r
+ }\r
+ },\r
+ {\r
+ "target": "checkboxFgVisual",\r
+ "property": "size",\r
+ "targetValue": [ 0.0, 0.37 ],\r
+ "animator": {\r
+ "alphaFunction": "EASE_OUT",\r
+ "timePeriod": {\r
+ "duration": 0.4,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ]\r
+ },\r
+ "BeatControl": {\r
+ "beatVisual": {\r
+ "visualType": "IMAGE",\r
+ "url": "{APPLICATION_RESOURCE_PATH}/images/Logo-for-demo.png"\r
+ },\r
+\r
+ "bounceTransition": [\r
+ {\r
+ "target": "beatVisual",\r
+ "property": "size",\r
+ "initialValue": [ 0.5, 0.5 ],\r
+ "targetValue": [ 0.75, 0.75 ],\r
+ "animator": {\r
+ "alphaFunction": "BOUNCE",\r
+ "timePeriod": {\r
+ "duration": 0.5,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+\r
+ "leftTransition": [\r
+ {\r
+ "target": "beatVisual",\r
+ "property": "offset",\r
+ "initialValue": [ 0, 0 ],\r
+ "targetValue": [ 0.25, 0 ],\r
+ "animator": {\r
+ "alphaFunction": "BOUNCE",\r
+ "timePeriod": {\r
+ "duration": 0.5,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+\r
+ "upTransition": [\r
+ {\r
+ "target": "beatVisual",\r
+ "property": "offset",\r
+ "initialValue": [ 0, 0 ],\r
+ "targetValue": [ 0, 0.25 ],\r
+ "animator": {\r
+ "alphaFunction": "BOUNCE",\r
+ "timePeriod": {\r
+ "duration": 0.5,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ],\r
+\r
+ "fadeTransition": [\r
+ {\r
+ "target": "beatVisual",\r
+ "property": "opacity",\r
+ "targetValue": 0,\r
+ "animator": {\r
+ "alphaFunction": "BOUNCE",\r
+ "timePeriod": {\r
+ "duration": 0.8,\r
+ "delay": 0\r
+ }\r
+ }\r
+ }\r
+ ]\r
+ }\r
+ }\r
+}
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<manifest xmlns="http://tizen.org/ns/packages" api-version="3.0" package="NUISamples.TizenTV" version="1.0.0">\r
+ <profile name="common" />\r
+ <ui-application appid="org.tizen.example.NUISamples.TizenTV"\r
+ exec="NUISamples.TizenTV.exe"\r
+ type="dotnet"\r
+ multiple="false"\r
+ taskmanage="true"\r
+ nodisplay="false"\r
+ launch_mode="single">\r
+ <label>NUISamples.TizenTV</label>\r
+ <icon>NUISamples.TizenTV.png</icon>\r
+ </ui-application>\r
+</manifest>\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <PropertyGroup>\r
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+ <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>\r
+ <ProjectGuid>{56CA3B27-C662-4AC8-93CA-7ACEF926B2AA}</ProjectGuid>\r
+ <OutputType>Library</OutputType>\r
+ <RootNamespace>NUISamples</RootNamespace>\r
+ <AssemblyName>NUISamples</AssemblyName>\r
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>\r
+ <TargetFrameworkProfile>Profile259</TargetFrameworkProfile>\r
+ <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>\r
+ <NuGetPackageImportStamp>\r
+ </NuGetPackageImportStamp>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>false</Optimize>\r
+ <OutputPath>bin\Debug\</OutputPath>\r
+ <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ <ConsolePause>false</ConsolePause>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+ <DebugType>portable</DebugType>\r
+ <Optimize>true</Optimize>\r
+ <OutputPath>bin\Release\</OutputPath>\r
+ <DefineConstants>TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ <ConsolePause>false</ConsolePause>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <Compile Include="Properties\AssemblyInfo.cs" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <!-- <None Include="GettingStarted.Xamarin" /> -->\r
+ <None Include="packages.config">\r
+ <SubType>Designer</SubType>\r
+ </None>\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">\r
+ <HintPath>..\..\packages\Xamarin.Forms.2.3.4.192-pre2\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll</HintPath>\r
+ <Private>True</Private>\r
+ </Reference>\r
+ <Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">\r
+ <HintPath>..\..\packages\Xamarin.Forms.2.3.4.192-pre2\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll</HintPath>\r
+ <Private>True</Private>\r
+ </Reference>\r
+ <Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">\r
+ <HintPath>..\..\packages\Xamarin.Forms.2.3.4.192-pre2\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll</HintPath>\r
+ <Private>True</Private>\r
+ </Reference>\r
+ </ItemGroup>\r
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />\r
+ <Import Project="..\..\packages\Xamarin.Forms.2.3.4.192-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.192-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />\r
+ <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">\r
+ <PropertyGroup>\r
+ <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>\r
+ </PropertyGroup>\r
+ <Error Condition="!Exists('..\..\packages\Xamarin.Forms.2.3.4.192-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Forms.2.3.4.192-pre2\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" />\r
+ </Target>\r
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.\r
+ Other similar extension points exist, see Microsoft.Common.targets.\r
+ <Target Name="BeforeBuild">\r
+ </Target>\r
+ <Target Name="AfterBuild">\r
+ </Target>\r
+ -->\r
+</Project>
\ No newline at end of file
--- /dev/null
+using System.Resources;\r
+using System.Reflection;\r
+using System.Runtime.CompilerServices;\r
+using System.Runtime.InteropServices;\r
+\r
+// General Information about an assembly is controlled through the following\r
+// set of attributes. Change these attribute values to modify the information\r
+// associated with an assembly.\r
+[assembly: AssemblyTitle("NUISamples")]\r
+[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyConfiguration("")]\r
+[assembly: AssemblyCompany("Microsoft")]\r
+[assembly: AssemblyProduct("NUISamples")]\r
+[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]\r
+[assembly: AssemblyTrademark("")]\r
+[assembly: AssemblyCulture("")]\r
+\r
+// Version information for an assembly consists of the following four values:\r
+//\r
+// Major Version\r
+// Minor Version\r
+// Build Number\r
+// Revision\r
+//\r
+// You can specify all the values or you can default the Build and Revision Numbers\r
+// by using the '*' as shown below:\r
+// [assembly: AssemblyVersion("1.0.*")]\r
+[assembly: AssemblyVersion("1.0.0.0")]\r
+[assembly: AssemblyFileVersion("1.0.0.0")]\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<packages>\r
+ <package id="Xamarin.Forms" version="2.3.4.192-pre2" targetFramework="portable45-net45+win8+wp8+wpa81" />\r
+</packages>\r
--- /dev/null
+\r
+using System;\r
+//using Tizen;\r
+using Tizen.NUI;\r
+\r
+namespace Tizen.NUI.Extension.Test\r
+{\r
+ public class ActorTest : Actor\r
+ {\r
+ public Actor CreateActor()\r
+ {\r
+ Actor _actor = new Actor();\r
+ //Tizen.Log.Debug("NUI-EXT", "_actor id=" + _actor.GetId());\r
+ _actor.SetName("actor-extension-test id:" + _actor.GetId());\r
+ //Tizen.Log.Debug("NUI-EXT", "_actor name=" + _actor.GetName());\r
+ return _actor;\r
+ }\r
+ }\r
+}\r
--- /dev/null
+using System.Reflection;\r
+using System.Runtime.CompilerServices;\r
+using System.Runtime.InteropServices;\r
+\r
+// General Information about an assembly is controlled through the following \r
+// set of attributes. Change these attribute values to modify the information\r
+// associated with an assembly.\r
+[assembly: AssemblyTitle("Tizen.NUI.Extension.Test")]\r
+[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyConfiguration("")]\r
+[assembly: AssemblyCompany("Microsoft")]\r
+[assembly: AssemblyProduct("Tizen.NUI.Extension.Test")]\r
+[assembly: AssemblyCopyright("Copyright © Microsoft 2017")]\r
+[assembly: AssemblyTrademark("")]\r
+[assembly: AssemblyCulture("")]\r
+\r
+// Setting ComVisible to false makes the types in this assembly not visible \r
+// to COM components. If you need to access a type in this assembly from \r
+// COM, set the ComVisible attribute to true on that type.\r
+[assembly: ComVisible(false)]\r
+\r
+// The following GUID is for the ID of the typelib if this project is exposed to COM\r
+[assembly: Guid("2def21e8-80d1-43b6-9e93-aef1d1be169b")]\r
+\r
+// Version information for an assembly consists of the following four values:\r
+//\r
+// Major Version\r
+// Minor Version \r
+// Build Number\r
+// Revision\r
+//\r
+// You can specify all the values or you can default the Build and Revision Numbers \r
+// by using the '*' as shown below:\r
+// [assembly: AssemblyVersion("1.0.*")]\r
+[assembly: AssemblyVersion("1.0.0.0")]\r
+[assembly: AssemblyFileVersion("1.0.0.0")]\r
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />\r
+ <PropertyGroup>\r
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+ <ProjectGuid>{2DEF21E8-80D1-43B6-9E93-AEF1D1BE169B}</ProjectGuid>\r
+ <OutputType>Library</OutputType>\r
+ <AppDesignerFolder>Properties</AppDesignerFolder>\r
+ <RootNamespace>Tizen.NUI.Extension.Test</RootNamespace>\r
+ <AssemblyName>Tizen.NUI.Extension.Test</AssemblyName>\r
+ <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>\r
+ <FileAlignment>512</FileAlignment>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+ <DebugSymbols>true</DebugSymbols>\r
+ <DebugType>full</DebugType>\r
+ <Optimize>false</Optimize>\r
+ <OutputPath>bin\Debug\</OutputPath>\r
+ <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+ <DebugType>pdbonly</DebugType>\r
+ <Optimize>true</Optimize>\r
+ <OutputPath>bin\Release\</OutputPath>\r
+ <DefineConstants>TRACE</DefineConstants>\r
+ <ErrorReport>prompt</ErrorReport>\r
+ <WarningLevel>4</WarningLevel>\r
+ </PropertyGroup>\r
+ <PropertyGroup>\r
+ <SignAssembly>true</SignAssembly>\r
+ </PropertyGroup>\r
+ <PropertyGroup>\r
+ <AssemblyOriginatorKeyFile>test-key-will-be-replaced.snk</AssemblyOriginatorKeyFile>\r
+ </PropertyGroup>\r
+ <ItemGroup>\r
+ <Reference Include="System" />\r
+ <Reference Include="Microsoft.CSharp" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <Compile Include="Properties\AssemblyInfo.cs" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <None Include="test-key-will-be-replaced.snk" />\r
+ </ItemGroup>\r
+ <ItemGroup>\r
+ <ProjectReference Include="..\..\Tizen.NUI\Tizen.NUI.csproj">\r
+ <Project>{f03a3b48-9d9b-4bf3-92ce-bd63cadc3cd3}</Project>\r
+ <Name>Tizen.NUI</Name>\r
+ </ProjectReference>\r
+ </ItemGroup>\r
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
+ Other similar extension points exist, see Microsoft.Common.targets.\r
+ <Target Name="BeforeBuild">\r
+ </Target>\r
+ <Target Name="AfterBuild">\r
+ </Target>\r
+ -->\r
+</Project>
\ No newline at end of file
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
<DefineConstants>$(DefineConstants);DEBUG_ON;DOT_NET_CORE</DefineConstants>
- <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
- <SignAssembly>True</SignAssembly>
+ <SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>TizenTVNUI.snk</AssemblyOriginatorKeyFile>
- <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>
</PropertyGroup>
<ItemGroup>
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
protected bool disposed = false;
-
+
~Degree()
{
if(!isDisposeQueued)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
}\r
\r
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam) \r
+\r
//A Flag to check who called Dispose(). (By User or DisposeQueue)\r
private bool isDisposeQueued = false;\r
//A Flat to check if it is already disposed.\r
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.
//Release your own unmanaged resources here.
//You should not access any managed member here except static instance.
//because the execution order of Finalizes is non-deterministic.
+
+ //Unreference this from if a static instance refer to this.
+ ViewRegistry.UnregisterView(this);
+
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //NUI Dispose Pattern written by Jinwoo Nam(jjw.nam)
+
//A Flag to check who called Dispose(). (By User or DisposeQueue)
private bool isDisposeQueued = false;
//A Flat to check if it is already disposed.