2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using Tizen.NUI.BaseComponents;
19 using System.ComponentModel;
21 namespace Tizen.NUI.Components
24 /// SelectButton is base class of CheckBox and RadioButton.
25 /// It can be used as selector and add into group for single-choice or multiple-choice .
26 /// User can handle Navigation by adding/inserting/deleting NavigationItem.
28 /// <since_tizen> 6 </since_tizen>
29 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public class SelectButton : Button
34 /// Item group which is used to manager all SelectButton in it.
36 /// <since_tizen> 6 </since_tizen>
37 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
38 [EditorBrowsable(EditorBrowsableState.Never)]
39 protected SelectGroup itemGroup = null;
41 private ImageView checkShadowImage;
42 private ImageView checkBackgroundImage;
43 private ImageView checkImage;
45 private SelectButtonAttributes selectButtonAttributes;
48 /// Creates a new instance of a SelectButton.
50 /// <since_tizen> 6 </since_tizen>
51 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
52 [EditorBrowsable(EditorBrowsableState.Never)]
53 public SelectButton() : base()
58 /// Creates a new instance of a SelectButton with style.
60 /// <param name="style">Create SelectButton by special style defined in UX.</param>
61 /// <since_tizen> 6 </since_tizen>
62 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
63 [EditorBrowsable(EditorBrowsableState.Never)]
64 public SelectButton(string style) : base(style)
70 /// Creates a new instance of a SelectButton with attributes.
72 /// <param name="attributes">Create SelectButton by attributes customized by user.</param>
73 /// <since_tizen> 6 </since_tizen>
74 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
75 [EditorBrowsable(EditorBrowsableState.Never)]
76 public SelectButton(SelectButtonAttributes attributes) : base(attributes)
82 /// An event for the item selected signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
84 /// <since_tizen> 6 </since_tizen>
85 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
86 [EditorBrowsable(EditorBrowsableState.Never)]
87 public event EventHandler<SelectEventArgs> SelectedEvent;
90 /// Index of selection in selection group. If selection is not in the group, return -1;
92 /// <since_tizen> 6 </since_tizen>
93 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
94 [EditorBrowsable(EditorBrowsableState.Never)]
99 if (itemGroup != null)
101 return itemGroup.GetIndex(this);
109 /// Check image's resource url in SelectButton.
111 /// <since_tizen> 6 </since_tizen>
112 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
113 [EditorBrowsable(EditorBrowsableState.Never)]
114 public string CheckImageURL
118 return selectButtonAttributes?.CheckImageAttributes?.ResourceURL?.All;
124 CreateCheckImageAttributes();
125 if (selectButtonAttributes.CheckImageAttributes.ResourceURL == null)
127 selectButtonAttributes.CheckImageAttributes.ResourceURL = new StringSelector();
129 selectButtonAttributes.CheckImageAttributes.ResourceURL.All = value;
136 /// Check image's resource url selector in SelectButton.
138 /// <since_tizen> 6 </since_tizen>
139 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
140 [EditorBrowsable(EditorBrowsableState.Never)]
141 public StringSelector CheckImageURLSelector
145 return selectButtonAttributes?.CheckImageAttributes?.ResourceURL;
151 CreateCheckImageAttributes();
152 selectButtonAttributes.CheckImageAttributes.ResourceURL = value.Clone() as StringSelector;
159 /// Check image's opacity in SelectButton.
161 /// <since_tizen> 6 </since_tizen>
162 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
163 [EditorBrowsable(EditorBrowsableState.Never)]
164 public float CheckImageOpacity
168 return selectButtonAttributes?.CheckImageAttributes?.Opacity?.All ?? 0;
172 CreateCheckImageAttributes();
173 if (selectButtonAttributes.CheckImageAttributes.Opacity == null)
175 selectButtonAttributes.CheckImageAttributes.Opacity = new FloatSelector();
177 selectButtonAttributes.CheckImageAttributes.Opacity.All = value;
183 /// Check image's opacity selector in SelectButton.
185 /// <since_tizen> 6 </since_tizen>
186 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
187 [EditorBrowsable(EditorBrowsableState.Never)]
188 public FloatSelector CheckImageOpacitySelector
192 return selectButtonAttributes?.CheckImageAttributes?.Opacity;
198 CreateCheckImageAttributes();
199 selectButtonAttributes.CheckImageAttributes.Opacity = value.Clone() as FloatSelector;
206 /// Check image's size in SelectButton.
208 /// <since_tizen> 6 </since_tizen>
209 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
210 [EditorBrowsable(EditorBrowsableState.Never)]
211 public Size2D CheckImageSize2D
215 return selectButtonAttributes?.CheckImageAttributes?.Size2D ?? new Size2D(0, 0);
219 CreateCheckImageAttributes();
220 selectButtonAttributes.CheckImageAttributes.Size2D = value;
226 /// Background image's resource url in SelectButton.
228 /// <since_tizen> 6 </since_tizen>
229 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
230 [EditorBrowsable(EditorBrowsableState.Never)]
231 public string CheckBackgroundImageURL
235 return selectButtonAttributes?.CheckBackgroundImageAttributes?.ResourceURL?.All;
241 CreateCheckBackgroundImageAttributes();
242 if (selectButtonAttributes.CheckBackgroundImageAttributes.ResourceURL == null)
244 selectButtonAttributes.CheckBackgroundImageAttributes.ResourceURL = new StringSelector();
246 selectButtonAttributes.CheckBackgroundImageAttributes.ResourceURL.All = value;
253 /// Background image's resource url selector in SelectButton.
255 /// <since_tizen> 6 </since_tizen>
256 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
257 [EditorBrowsable(EditorBrowsableState.Never)]
258 public StringSelector CheckBackgroundImageURLSelector
262 return selectButtonAttributes?.CheckBackgroundImageAttributes?.ResourceURL;
268 CreateCheckBackgroundImageAttributes();
269 selectButtonAttributes.CheckBackgroundImageAttributes.ResourceURL = value.Clone() as StringSelector;
276 /// Background image's opacity in SelectButton.
278 /// <since_tizen> 6 </since_tizen>
279 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
280 [EditorBrowsable(EditorBrowsableState.Never)]
281 public float CheckBackgroundImageOpacity
285 return selectButtonAttributes?.CheckBackgroundImageAttributes?.Opacity?.All ?? 0;
289 CreateCheckBackgroundImageAttributes();
290 if (selectButtonAttributes.CheckBackgroundImageAttributes.Opacity == null)
292 selectButtonAttributes.CheckBackgroundImageAttributes.Opacity = new FloatSelector();
294 selectButtonAttributes.CheckBackgroundImageAttributes.Opacity.All = value;
300 /// Background image's opacity selector in SelectButton.
302 /// <since_tizen> 6 </since_tizen>
303 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
304 [EditorBrowsable(EditorBrowsableState.Never)]
305 public FloatSelector CheckBackgroundImageOpacitySelector
309 return selectButtonAttributes?.CheckBackgroundImageAttributes?.Opacity;
315 CreateCheckBackgroundImageAttributes();
316 selectButtonAttributes.CheckBackgroundImageAttributes.Opacity = value.Clone() as FloatSelector;
323 /// Shadow image's resource url in SelectButton.
325 /// <since_tizen> 6 </since_tizen>
326 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
327 [EditorBrowsable(EditorBrowsableState.Never)]
328 public string CheckShadowImageURL
332 return selectButtonAttributes?.CheckShadowImageAttributes?.ResourceURL?.All;
338 CreateCheckShadowImageAttributes();
339 if (selectButtonAttributes.CheckShadowImageAttributes.ResourceURL == null)
341 selectButtonAttributes.CheckShadowImageAttributes.ResourceURL = new StringSelector();
343 selectButtonAttributes.CheckShadowImageAttributes.ResourceURL.All = value;
350 /// Shadow image's resource url selector in SelectButton.
352 /// <since_tizen> 6 </since_tizen>
353 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
354 [EditorBrowsable(EditorBrowsableState.Never)]
355 public StringSelector CheckShadowImageURLSelector
359 return selectButtonAttributes?.CheckShadowImageAttributes?.ResourceURL;
365 CreateCheckShadowImageAttributes();
366 selectButtonAttributes.CheckShadowImageAttributes.ResourceURL = value.Clone() as StringSelector;
373 /// Shadow image's opacity in SelectButton.
375 /// <since_tizen> 6 </since_tizen>
376 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
377 [EditorBrowsable(EditorBrowsableState.Never)]
378 public float CheckShadowImageOpacity
382 return selectButtonAttributes?.CheckShadowImageAttributes?.Opacity?.All ?? 0;
386 CreateCheckShadowImageAttributes();
387 if (selectButtonAttributes.CheckShadowImageAttributes.Opacity == null)
389 selectButtonAttributes.CheckShadowImageAttributes.Opacity = new FloatSelector();
391 selectButtonAttributes.CheckShadowImageAttributes.Opacity.All = value;
397 /// Shadow image's opacity selector in SelectButton.
399 /// <since_tizen> 6 </since_tizen>
400 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
401 [EditorBrowsable(EditorBrowsableState.Never)]
402 public FloatSelector CheckShadowImageOpacitySelector
406 return selectButtonAttributes?.CheckShadowImageAttributes?.Opacity;
412 CreateCheckShadowImageAttributes();
413 selectButtonAttributes.CheckShadowImageAttributes.Opacity = value.Clone() as FloatSelector;
420 /// CheckImage left padding in SelectButton.
422 /// <since_tizen> 6 </since_tizen>
423 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
424 [EditorBrowsable(EditorBrowsableState.Never)]
425 public int CheckImagePaddingLeft
429 return selectButtonAttributes?.CheckImageAttributes?.PaddingLeft ?? 0;
433 CreateCheckImageAttributes();
434 CreateCheckBackgroundImageAttributes();
435 CreateCheckShadowImageAttributes();
436 selectButtonAttributes.CheckImageAttributes.PaddingLeft = value;
437 selectButtonAttributes.CheckBackgroundImageAttributes.PaddingLeft = value;
438 selectButtonAttributes.CheckShadowImageAttributes.PaddingLeft = value;
444 /// CheckImage right padding in SelectButton.
446 /// <since_tizen> 6 </since_tizen>
447 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
448 [EditorBrowsable(EditorBrowsableState.Never)]
449 public int CheckImagePaddingRight
453 return selectButtonAttributes?.CheckImageAttributes?.PaddingRight ?? 0;
457 CreateCheckImageAttributes();
458 CreateCheckBackgroundImageAttributes();
459 CreateCheckShadowImageAttributes();
460 selectButtonAttributes.CheckImageAttributes.PaddingRight = value;
461 selectButtonAttributes.CheckBackgroundImageAttributes.PaddingRight = value;
462 selectButtonAttributes.CheckShadowImageAttributes.PaddingRight = value;
468 /// CheckImage top padding in SelectButton.
470 /// <since_tizen> 6 </since_tizen>
471 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
472 [EditorBrowsable(EditorBrowsableState.Never)]
473 public int CheckImagePaddingTop
477 return selectButtonAttributes?.CheckImageAttributes?.PaddingTop ?? 0;
481 CreateCheckImageAttributes();
482 CreateCheckBackgroundImageAttributes();
483 CreateCheckShadowImageAttributes();
484 selectButtonAttributes.CheckImageAttributes.PaddingTop = value;
485 selectButtonAttributes.CheckBackgroundImageAttributes.PaddingTop = value;
486 selectButtonAttributes.CheckShadowImageAttributes.PaddingTop = value;
492 /// CheckImage bottom padding in SelectButton.
494 /// <since_tizen> 6 </since_tizen>
495 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public int CheckImagePaddingBottom
501 return selectButtonAttributes?.CheckImageAttributes?.PaddingBottom ?? 0;
505 CreateCheckImageAttributes();
506 CreateCheckBackgroundImageAttributes();
507 CreateCheckShadowImageAttributes();
508 selectButtonAttributes.CheckImageAttributes.PaddingBottom = value;
509 selectButtonAttributes.CheckBackgroundImageAttributes.PaddingBottom = value;
510 selectButtonAttributes.CheckShadowImageAttributes.PaddingBottom = value;
516 /// Theme change callback when theme is changed, this callback will be trigger.
518 /// <since_tizen> 6 </since_tizen>
519 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
520 [EditorBrowsable(EditorBrowsableState.Never)]
521 protected override void OnThemeChangedEvent(object sender, StyleManager.ThemeChangeEventArgs e)
523 SelectButtonAttributes tempAttributes = StyleManager.Instance.GetAttributes(style) as SelectButtonAttributes;
524 if (tempAttributes != null)
526 attributes = selectButtonAttributes = tempAttributes;
532 /// Dispose SelectButton and all children on it.
534 /// <param name="type">Dispose type.</param>
535 /// <since_tizen> 6 </since_tizen>
536 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
537 [EditorBrowsable(EditorBrowsableState.Never)]
538 protected override void Dispose(DisposeTypes type)
545 if (type == DisposeTypes.Explicit)
547 if (checkShadowImage != null)
549 Remove(checkShadowImage);
550 checkShadowImage.Dispose();
551 checkShadowImage = null;
553 if (checkBackgroundImage != null)
555 Remove(checkBackgroundImage);
556 checkBackgroundImage.Dispose();
557 checkBackgroundImage = null;
559 if (checkImage != null)
562 checkImage.Dispose();
571 /// Update SelectButton by attributes.
573 /// <since_tizen> 6 </since_tizen>
574 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
575 [EditorBrowsable(EditorBrowsableState.Never)]
576 protected override void OnUpdate()
578 if (selectButtonAttributes.CheckImageAttributes != null)
580 if (checkImage == null)
582 checkImage = new ImageView();
583 checkImage.Name = "CheckImage";
586 ApplyAttributes(checkImage, selectButtonAttributes.CheckImageAttributes);
590 if (checkImage != null)
593 checkImage.Dispose();
598 if (selectButtonAttributes.CheckShadowImageAttributes != null)
600 if (checkShadowImage == null)
602 checkShadowImage = new ImageView();
603 checkShadowImage.Name = "CheckShadowImage";
604 Add(checkShadowImage);
606 ApplyAttributes(checkShadowImage, selectButtonAttributes.CheckShadowImageAttributes);
610 if (checkShadowImage != null)
612 Remove(checkShadowImage);
613 checkShadowImage.Dispose();
614 checkShadowImage = null;
618 if (selectButtonAttributes.CheckBackgroundImageAttributes != null)
620 if (checkBackgroundImage == null)
622 checkBackgroundImage = new ImageView();
623 checkBackgroundImage.Name = "CheckBackgroundImage";
624 Add(checkBackgroundImage);
626 ApplyAttributes(checkBackgroundImage, selectButtonAttributes.CheckBackgroundImageAttributes);
630 if (checkBackgroundImage != null)
632 Remove(checkBackgroundImage);
633 checkBackgroundImage.Dispose();
634 checkBackgroundImage = null;
638 UpdateTextAttributes();
641 checkShadowImage?.RaiseToTop();
642 checkBackgroundImage?.RaiseToTop();
643 checkImage?.RaiseToTop();
647 /// Called after a key event is received by the view that has had its focus set.
649 /// <param name="key">The key event.</param>
650 /// <returns>True if the key event should be consumed.</returns>
651 /// <since_tizen> 6 </since_tizen>
652 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
653 [EditorBrowsable(EditorBrowsableState.Never)]
654 public override bool OnKey(Key key)
656 if (IsEnabled == false)
660 bool ret = base.OnKey(key);
661 if (key.State == Key.StateType.Up)
663 if (key.KeyPressedName == "Return")
673 /// Called after a touch event is received by the owning view.<br />
674 /// CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).<br />
676 /// <param name="touch">The touch event.</param>
677 /// <returns>True if the event should be consumed.</returns>
678 /// <since_tizen> 6 </since_tizen>
679 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
680 [EditorBrowsable(EditorBrowsableState.Never)]
681 public override bool OnTouch(Touch touch)
683 if (IsEnabled == false)
687 PointStateType state = touch.GetState(0);
688 bool ret = base.OnTouch(touch);
691 case PointStateType.Up:
701 /// Get SelectButton attribues.
703 /// <since_tizen> 6 </since_tizen>
704 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 protected override Attributes GetAttributes()
708 return new SelectButtonAttributes();
712 /// Overrides this method if want to handle behavior after pressing return key by user.
714 /// <since_tizen> 6 </since_tizen>
715 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
716 [EditorBrowsable(EditorBrowsableState.Never)]
717 protected virtual void OnSelected()
721 private void Initialize()
723 selectButtonAttributes = attributes as SelectButtonAttributes;
724 if (selectButtonAttributes == null)
726 throw new Exception("SelectButton attribute parse error.");
729 selectButtonAttributes.IsSelectable = true;
730 LayoutDirectionChanged += SelectButtonLayoutDirectionChanged;
733 private void UpdateTextAttributes()
735 if (selectButtonAttributes.TextAttributes != null)
737 selectButtonAttributes.TextAttributes.PositionUsesPivotPoint = true;
738 selectButtonAttributes.TextAttributes.ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft;
739 selectButtonAttributes.TextAttributes.PivotPoint = Tizen.NUI.PivotPoint.TopLeft;
740 selectButtonAttributes.TextAttributes.WidthResizePolicy = ResizePolicyType.Fixed;
741 selectButtonAttributes.TextAttributes.HeightResizePolicy = ResizePolicyType.Fixed;
743 int iconWidth = CheckImageSize2D.Width;
745 int textPaddingLeft = selectButtonAttributes.TextAttributes.PaddingLeft;
746 int textPaddingRight = selectButtonAttributes.TextAttributes.PaddingRight;
748 if(selectButtonAttributes.TextAttributes.Size2D == null)
750 selectButtonAttributes.TextAttributes.Size2D = new Size2D(Size2D.Width - iconWidth - CheckImagePaddingLeft - CheckImagePaddingRight - textPaddingLeft - textPaddingRight, Size2D.Height);
753 if(selectButtonAttributes.TextAttributes.Position2D == null)
755 selectButtonAttributes.TextAttributes.Position2D = new Position2D(CheckImagePaddingLeft + iconWidth + CheckImagePaddingRight + textPaddingLeft, 0);
758 selectButtonAttributes.TextAttributes.VerticalAlignment = VerticalAlignment.Center;
762 private void SelectButtonLayoutDirectionChanged(object sender, LayoutDirectionChangedEventArgs e)
764 if (selectButtonAttributes == null || selectButtonAttributes.TextAttributes == null)
769 UpdateTextAttributes();
771 int iconWidth = CheckImageSize2D.Width;
773 int textPaddingLeft = selectButtonAttributes.TextAttributes.PaddingLeft;
774 int textPaddingRight = selectButtonAttributes.TextAttributes.PaddingRight;
776 if (LayoutDirection == ViewLayoutDirectionType.RTL)
778 selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.End;
779 selectButtonAttributes.TextAttributes.Position2D.X = textPaddingRight;
780 checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = selectButtonAttributes.TextAttributes.Size2D.Width + textPaddingLeft + textPaddingRight + IconPaddingRight;
783 else if (LayoutDirection == ViewLayoutDirectionType.LTR)
785 selectButtonAttributes.TextAttributes.HorizontalAlignment = HorizontalAlignment.Begin;
786 selectButtonAttributes.TextAttributes.Position2D.X = IconPaddingLeft + iconWidth + IconPaddingRight + textPaddingLeft;
787 checkShadowImage.Position2D.X = checkBackgroundImage.Position2D.X = checkImage.Position2D.X = IconPaddingLeft;
792 private void OnSelect()
796 if (SelectedEvent != null)
798 SelectEventArgs eventArgs = new SelectEventArgs();
799 eventArgs.IsSelected = IsSelected;
800 SelectedEvent(this, eventArgs);
804 private void CreateCheckImageAttributes()
806 if (selectButtonAttributes.CheckImageAttributes == null)
808 selectButtonAttributes.CheckImageAttributes = new ImageAttributes()
810 PositionUsesPivotPoint = true,
811 ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
812 PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
817 private void CreateCheckBackgroundImageAttributes()
819 if (selectButtonAttributes.CheckBackgroundImageAttributes == null)
821 selectButtonAttributes.CheckBackgroundImageAttributes = new ImageAttributes()
823 PositionUsesPivotPoint = true,
824 ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
825 PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
830 private void CreateCheckShadowImageAttributes()
832 if (selectButtonAttributes.CheckShadowImageAttributes == null)
834 selectButtonAttributes.CheckShadowImageAttributes = new ImageAttributes()
836 PositionUsesPivotPoint = true,
837 ParentOrigin = Tizen.NUI.ParentOrigin.TopLeft,
838 PivotPoint = Tizen.NUI.PivotPoint.TopLeft,
844 /// SelectEventArgs is a class to record item selected arguments which will sent to user.
846 /// <since_tizen> 6 </since_tizen>
847 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
848 [EditorBrowsable(EditorBrowsableState.Never)]
849 public class SelectEventArgs : EventArgs
851 /// <summary> Select state of SelectButton </summary>
852 /// <since_tizen> 6 </since_tizen>
853 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
854 [EditorBrowsable(EditorBrowsableState.Never)]
855 public bool IsSelected;