diff --git a/CrossPlatformModules.csproj b/CrossPlatformModules.csproj index 165dce381..ab4c7e502 100644 --- a/CrossPlatformModules.csproj +++ b/CrossPlatformModules.csproj @@ -198,6 +198,12 @@ + + + + + + @@ -628,6 +634,11 @@ Designer + + + + + diff --git a/apps/ui-tests-app/layouts/absolute.ts b/apps/ui-tests-app/layouts/absolute.ts new file mode 100644 index 000000000..6c867680a --- /dev/null +++ b/apps/ui-tests-app/layouts/absolute.ts @@ -0,0 +1,22 @@ +import pageModule = require("ui/page"); +import absoluteLayout = require("ui/layouts/absolute-layout"); +import model = require("./myview"); + +var count = 0; + +export function onLoaded(args: { eventName: string, object: any }) { + var page = args.object; + page.bindingContext = new model.ViewModel(); +} + +export function onSetLeftSetTop(args: { eventName: string, object: any }) { + var layout = args.object.parent; + var child = layout.getViewById("setLeftSetTop"); + if(++count % 2 === 1) { + absoluteLayout.AbsoluteLayout.setLeft(child, 175); + absoluteLayout.AbsoluteLayout.setTop(child, 375); + } else { + absoluteLayout.AbsoluteLayout.setLeft(child, 0); + absoluteLayout.AbsoluteLayout.setTop(child, 400); + } +} \ No newline at end of file diff --git a/apps/ui-tests-app/layouts/absolute.xml b/apps/ui-tests-app/layouts/absolute.xml new file mode 100644 index 000000000..01f911b37 --- /dev/null +++ b/apps/ui-tests-app/layouts/absolute.xml @@ -0,0 +1,15 @@ + + + +