_popup.TitleText = "Popup Title";
_popup.BackgroundImage = _resourcePath + "/images/popup_background.png";
- _popup.BackgroundBorder = new Rectangle(0, 0, 81, 81);
-
- _popup.ButtonBackgroundImageURL = _resourcePath + "/images/rectangle_btn_normal.png";
- _popup.ButtonBackgroundImageBorder = new Rectangle(5, 5, 5, 5);
_popup.ButtonOverLayBackgroundColorSelector = new ColorSelector
{
Normal = new Color(1.0f, 1.0f, 1.0f, 1.0f),
};
_popup.ButtonTextColor = new Color(0.05f, 0.63f, 0.9f, 1);
_popup.ButtonHeight = 132;
- _popup.ButtonCount = 2;
_popup.SetButtonText(0, "Yes");
_popup.SetButtonText(1, "Exit");
Assert.IsNotNull(_switch, "Should be not null");
Assert.IsInstanceOf<Components.Switch>(_switch, "Should be equal!");
_switch.Size2D = new Size2D(96, 60);
- _switch.SwitchHandlerImageSize = new Size(60, 60);
- _switch.SwitchBackgroundImageURLSelector = new StringSelector
+ _switch.Style.Thumb.Size = new Size(60, 60);
+ _switch.Style.Track.ResourceUrl = new Selector<string>
{
Normal = _resourcePath + "/images/controller_switch_bg_off.png",
Selected = _resourcePath + "/images/controller_switch_bg_on.png",
};
- _switch.SwitchHandlerImageURLSelector = new StringSelector
+ _switch.Style.Thumb.ResourceUrl = new Selector<string>
{
Normal = _resourcePath + "/images/controller_switch_handler.png",
Selected = _resourcePath + "/images/controller_switch_handler.png",
public void OnTouchEventGetState(object sender, Window.TouchEventArgs e)
{
PointStateType type = e.Touch.GetState(0);
- if (type == PointStateType.Motion)
+ if (type == PointStateType.Motion || type == PointStateType.Finished)
{
ManualTest.Confirm();
}