.net - How to create a dialog with custom content like android in Zebble for Xamarin? -


i want create dialog editing field , need make custom content dialog , response reload data. so, read content dialog , popup in link below

http://zebble.net/docs/alerts-and-dialogs

and test code:

in page want show popup:

await nav.showpopup<customedialogpage>(); 

my custom zebble page:

<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> 

and create stylesheet that

.customedialog {     width: 300px;     height: 100px;     background: #ffffff;     border: 2px;     padding: 5px;     margin-top: 100px; } 

but, not able close popup or add title section , not know how can result of it. , sample dialog want use below:

enter image description here

zebble provides other overloads of nav pop-up methods achieve that.

host page:

var result = await nav.showpopup<targetpage, sometype>(); // can use "result". 

pop-up page's close button:

... await nav.hidepopup(someresultvalue); 

notes:

  • "sometype" can simple type such boolean or string, or can complex class.

  • the type of object returned pop-up must match 1 expected host parent page.

you can check out full spec here: http://zebble.net/docs/showing-popup-pages


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -