2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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 System.Collections.Generic;
21 namespace ElmSharp.Test
23 class MultiButtonEntryTest3 : TestCaseBase
25 public override string TestName => "MultiButtonEntryTest3";
26 public override string TestDescription => "To test basic operation of MultiButtonEntry";
28 public override void Run(Window window)
30 Background bg = new Background(window);
31 bg.Color = Color.White;
33 bg.Resize(window.ScreenSize.Width, window.ScreenSize.Height);
36 MultiButtonEntry mbe = new MultiButtonEntry(window)
42 mbe.Append("Append1");
43 mbe.Append("Append2");
44 mbe.Append("Append3");
45 mbe.Append("Append4");
46 mbe.Append("Append5");
47 mbe.Append("Append6");
48 mbe.Append("Append7");
49 mbe.Append("Append8");
50 mbe.Append("Append9");
51 mbe.Append("Append10");
52 mbe.Append("Append11");
53 mbe.Append("Append12");
55 Label label1 = new Label(window)
57 Text = "MultiButtonEntry Test",
61 var createButton = new Button(window)
63 Text = "Change the status of IsExpanded",
68 var deleteButton = new Button(window)
75 createButton.Clicked += (sender, e) =>
77 mbe.IsExpanded = !mbe.IsExpanded;
80 deleteButton.Clicked += (sender, e) =>
85 label1.Resize(600, 100);
93 createButton.Resize(200, 100);
94 createButton.Move(50, 700);
97 deleteButton.Resize(200, 100);
98 deleteButton.Move(300, 700);