3
显示的图像中的视图中我想建立这样的形象视图(集图像页面的中间)我怎样才能在Zebble
我使用此代码
<TextView Id="HeaderIntro" Text="Your device heading from North is:" CssClass="header-intro" />
<TextView Id="Label" Text="waiting for compass..." />
<z-place inside="this" CssClass="CompassViewP">
<ImageView Id="BackgroundImage" Path="Images/GeeksWhiteLogo.png" />
<ImageView Id="PointerImage" Path="Images/CompassPointer.png" Style.Visible="false" />
</z-place>
我写CSS
.CompassViewP {
height: calc("(view.Parent.ActualHeight)");
}
#BackgroundImage {
background-position: center;
}
我试过其他的CSS像
position:absolute;
top: 50%;
和
vertical-align: middle;
最后,下面查看它
它的工作原理,但我不得不将我的代码“z-place”更改为“Stack” –