diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj
index a06447a17..9dd48b89d 100644
--- a/CrossPlatformModules.csproj
+++ b/CrossPlatformModules.csproj
@@ -205,6 +205,9 @@
Designer
+
+
+
Designer
@@ -276,6 +279,7 @@
color.xml
+
html-view.xml
diff --git a/apps/ui-tests-app/css/decoration-transform-formattedtext.xml b/apps/ui-tests-app/css/decoration-transform-formattedtext.xml
index 4be69385d..d8eb2c6bf 100644
--- a/apps/ui-tests-app/css/decoration-transform-formattedtext.xml
+++ b/apps/ui-tests-app/css/decoration-transform-formattedtext.xml
@@ -1,27 +1,53 @@
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/text-decoration.ts b/apps/ui-tests-app/css/text-decoration.ts
index 1697df70c..737f4c465 100644
--- a/apps/ui-tests-app/css/text-decoration.ts
+++ b/apps/ui-tests-app/css/text-decoration.ts
@@ -1,18 +1,41 @@
import view = require("ui/core/view");
import observable = require("data/observable");
import label = require("ui/label");
+import button = require("ui/button");
+import textField = require("ui/text-field");
+import textView = require("ui/text-view");
export function butonTap(args) {
- var btn = args.object;
- var lbl = btn.parent.getViewById("Label1");
+ var btnChange = args.object;
+ var lbl = btnChange.parent.getViewById("Label");
+ var btn = btnChange.parent.getViewById("Button");
+ var textField = btnChange.parent.getViewById("TextField");
+ var textView = btnChange.parent.getViewById("TextView");
- if (lbl.style.textDecoration === "underline") {
+ if (lbl.style.textDecoration === "none") {
+ lbl.style.textDecoration = "underline";
+ btn.style.textDecoration = "underline";
+ textField.style.textDecoration = "underline";
+ textView.style.textDecoration = "underline";
+ } else if (lbl.style.textDecoration === "underline") {
lbl.style.textDecoration = "line-through";
+ btn.style.textDecoration = "line-through";
+ textField.style.textDecoration = "line-through";
+ textView.style.textDecoration = "line-through";
} else if (lbl.style.textDecoration === "line-through") {
lbl.style.textDecoration = "line-through underline";
+ btn.style.textDecoration = "line-through underline";
+ textField.style.textDecoration = "line-through underline";
+ textView.style.textDecoration = "line-through underline";
} else if (lbl.style.textDecoration === "line-through underline") {
+ lbl.style.textDecoration = "line-through underline none";
+ btn.style.textDecoration = "line-through underline none";
+ textField.style.textDecoration = "line-through underline none";
+ textView.style.textDecoration = "line-through underline none";
+ } else if (lbl.style.textDecoration === "line-through underline none") {
lbl.style.textDecoration = "none";
- } else if (lbl.style.textDecoration === "none") {
- lbl.style.textDecoration = "underline";
+ btn.style.textDecoration = "none";
+ textField.style.textDecoration = "none";
+ textView.style.textDecoration = "none";
}
}
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/text-decoration.xml b/apps/ui-tests-app/css/text-decoration.xml
index 4e71c619b..f4b50cc9e 100644
--- a/apps/ui-tests-app/css/text-decoration.xml
+++ b/apps/ui-tests-app/css/text-decoration.xml
@@ -1,32 +1,35 @@
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/text-transform.ts b/apps/ui-tests-app/css/text-transform.ts
index b11603348..ab88263d9 100644
--- a/apps/ui-tests-app/css/text-transform.ts
+++ b/apps/ui-tests-app/css/text-transform.ts
@@ -1,18 +1,51 @@
import view = require("ui/core/view");
import observable = require("data/observable");
import label = require("ui/label");
+import button = require("ui/button");
+import textField = require("ui/text-field");
+import textView = require("ui/text-view");
export function butonTap(args) {
- var btn = args.object;
- var lbl = btn.parent.getViewById("Label1");
+ var btnChange = args.object;
+ var lbl = btnChange.parent.getViewById("Label");
+ var btn = btnChange.parent.getViewById("Button");
+ var textField = btnChange.parent.getViewById("TextField");
+ var textView = btnChange.parent.getViewById("TextView");
if (lbl.style.textTransform === "none") {
- lbl.style.textTransform = "uppercase";
- } else if (lbl.style.textTransform === "uppercase") {
- lbl.style.textTransform = "lowercase";
- } else if (lbl.style.textTransform === "lowercase") {
lbl.style.textTransform = "capitalize";
+ btn.style.textTransform = "capitalize";
+ textField.style.textTransform = "capitalize";
+ textView.style.textTransform = "capitalize";
} else if (lbl.style.textTransform === "capitalize") {
+ lbl.style.textTransform = "uppercase";
+ btn.style.textTransform = "uppercase";
+ textField.style.textTransform = "uppercase";
+ textView.style.textTransform = "uppercase";
+ } else if (lbl.style.textTransform === "uppercase" && lbl.style.textDecoration !== "line-through underline") {
+ lbl.style.textTransform = "lowercase";
+ btn.style.textTransform = "lowercase";
+ textField.style.textTransform = "lowercase";
+ textView.style.textTransform = "lowercase";
+ } else if (lbl.style.textTransform === "lowercase") {
+ // lbl.style.textTransform = "uppercase";
+ // btn.style.textTransform = "uppercase";
+ // textField.style.textTransform = "uppercase";
+ // textView.style.textTransform = "uppercase";
+
+ // lbl.style.textDecoration = "line-through underline";
+ // btn.style.textDecoration = "line-through underline";
+ // textField.style.textDecoration = "line-through underline";
+ // textView.style.textDecoration = "line-through underline";
+ //} else if (lbl.style.textTransform === "uppercase" && lbl.style.textDecoration === "line-through underline") {
lbl.style.textTransform = "none";
+ btn.style.textTransform = "none";
+ textField.style.textTransform = "none";
+ textView.style.textTransform = "none";
+
+ lbl.style.textDecoration = "none";
+ btn.style.textDecoration = "none";
+ textField.style.textDecoration = "none";
+ textView.style.textDecoration = "none";
}
}
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/text-transform.xml b/apps/ui-tests-app/css/text-transform.xml
index 107cbea09..6b5a14d99 100644
--- a/apps/ui-tests-app/css/text-transform.xml
+++ b/apps/ui-tests-app/css/text-transform.xml
@@ -1,54 +1,35 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
+
-
-
-
-
+
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/white-space.ts b/apps/ui-tests-app/css/white-space.ts
index d1f3a85c1..56b230dde 100644
--- a/apps/ui-tests-app/css/white-space.ts
+++ b/apps/ui-tests-app/css/white-space.ts
@@ -1,14 +1,26 @@
import view = require("ui/core/view");
import observable = require("data/observable");
import label = require("ui/label");
+import button = require("ui/button");
+import textField = require("ui/text-field");
+import textView = require("ui/text-view");
export function butonTap(args: observable.EventData) {
- var btn = args.object;
- var lbl = btn.parent.getViewById("Label1");
+ var btnChange = args.object;
+ var lbl = btnChange.parent.getViewById("Label");
+ var btn = btnChange.parent.getViewById("Button");
+ var textField = btnChange.parent.getViewById("TextField");
+ var textView = btnChange.parent.getViewById("TextView");
if (lbl.style.whiteSpace === "normal") {
lbl.style.whiteSpace = "nowrap";
+ btn.style.whiteSpace = "nowrap";
+ textField.style.whiteSpace = "nowrap";
+ textView.style.whiteSpace = "nowrap";
} else if (lbl.style.whiteSpace === "nowrap") {
lbl.style.whiteSpace = "normal";
+ btn.style.whiteSpace = "normal";
+ textField.style.whiteSpace = "normal";
+ textView.style.whiteSpace = "normal";
}
}
\ No newline at end of file
diff --git a/apps/ui-tests-app/css/white-space.xml b/apps/ui-tests-app/css/white-space.xml
index 869c5a988..89ffb21a1 100644
--- a/apps/ui-tests-app/css/white-space.xml
+++ b/apps/ui-tests-app/css/white-space.xml
@@ -1,9 +1,13 @@
-
-
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/ui-tests-app/mainPage.ts b/apps/ui-tests-app/mainPage.ts
index 5cf913413..bb92b0205 100644
--- a/apps/ui-tests-app/mainPage.ts
+++ b/apps/ui-tests-app/mainPage.ts
@@ -35,11 +35,6 @@ export function selectExample() {
examples.set("basics", "bindings/basics");
examples.set("xmlbasics", "bindings/xmlbasics");
-examples.set("fontbtn", "font/button");
-examples.set("fontlbl", "font/label");
-examples.set("fontfield", "font/text-field");
-examples.set("fontview", "font/text-view");
-
examples.set("console", "pages/console");
examples.set("gestures", "pages/gestures");
examples.set("handlers", "pages/handlers");
@@ -52,10 +47,6 @@ examples.set("switch", "pages/switchandprogress"); // TODO: Update this test pag
examples.set("textfield", "text-field/text-field");
-examples.set("decoration", "css/text-decoration");
-examples.set("whitespace", "css/white-space");
-examples.set("transform", "css/text-transform");
-
// ---
examples.set("actColor", "action-bar/color");
@@ -66,9 +57,18 @@ examples.set("actIcons", "action-bar/system-icons");
examples.set("background", "css/background");
examples.set("radius", "css/radius");
examples.set("styles", "css/styles");
+examples.set("formatted", "css/decoration-transform-formattedtext");
+examples.set("decoration", "css/text-decoration");
+examples.set("transform", "css/text-transform");
+examples.set("whitespace", "css/white-space");
examples.set("dialogs", "dialogs/dialogs");
+examples.set("fontbtn", "font/button");
+examples.set("fontlbl", "font/label");
+examples.set("fontfield", "font/text-field");
+examples.set("fontview", "font/text-view");
+
examples.set("htmlview", "html-view/html-view");
examples.set("absolute", "layouts/absolute");