2
我想創建一個對話框來編輯一些字段,我需要爲對話框製作自定義內容,並從它獲得響應來重新加載數據。所以,我讀到的鏈接對話框,彈出下面如何使用Xamarin的Zebble中的android等自定義內容創建對話框?
http://zebble.net/docs/alerts-and-dialogs
所有內容,然後我測試此代碼:
在另一頁我想顯示彈出:
await Nav.ShowPopUp<CustomeDialogPage>();
我的自定義Zebble頁面:
<z-Component z-type="CustomeDialogPage"
z-base="Page"
z-namespace="UI.Pages"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../.zebble-schema.xml">
<Stack CssClass="customedialog">
<Button Text="OK" />
</Stack>
</z-Component>
然後我創建s tylesheet爲
.customedialog {
width: 300px;
height: 100px;
background: #ffffff;
border: 2px;
padding: 5px;
margin-top: 100px;
}
,但是,我能不能夠關閉彈出窗口或添加標題部分它,我不知道我怎樣才能得到它的結果。 它是一個樣本對話我想用它象下面這樣:
你可以添加你希望看到彈出一個什麼形象草案? – Paymon