diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index ab4c7e502..6e711aca5 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -440,7 +440,19 @@ wrap-layout.d.ts - + + css-selector.d.ts + + + font.d.ts + + + font.d.ts + + + + font.d.ts + @@ -604,6 +616,7 @@ + Designer @@ -611,6 +624,7 @@ Designer + @@ -1594,7 +1608,7 @@ False - + \ No newline at end of file diff --git a/apps/tests/pages/fonts-test.ts b/apps/tests/pages/fonts-test.ts new file mode 100644 index 000000000..94eaf662d --- /dev/null +++ b/apps/tests/pages/fonts-test.ts @@ -0,0 +1,15 @@ +import stack = require("ui/layouts/stack-layout"); +import style = require("ui/styling/style"); + +export function buttonTap(args) { + var stackLayout = args.object.parent; + + for (var i = 0; i < stackLayout.getChildrenCount(); i++){ + var v = stackLayout.getChildAt(i); + v.style._resetValue(style.fontFamilyProperty); + v.style._resetValue(style.fontSizeProperty); + v.style._resetValue(style.fontStyleProperty); + v.style._resetValue(style.fontWeightProperty); + v.style._resetValue(style.fontProperty); + } +} diff --git a/apps/tests/pages/fonts-test.xml b/apps/tests/pages/fonts-test.xml new file mode 100644 index 000000000..d9fd65d20 --- /dev/null +++ b/apps/tests/pages/fonts-test.xml @@ -0,0 +1,41 @@ + + + +