<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Haill_Xamarin.MainPage">
<ContentPage.Content>
<StackLayout>
<local:page1 /> // error this code in xamarin.forms
</StackLayout>
</ContentPage.Content>
</ContentPage>
-1
A
回答
0
你應該聲明你的XAML文件的頂部地方。
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Haill_Xamarin;assembly=Haill_Xamarin"
x:Class="Haill_Xamarin.MainPage">
<ContentPage.Content>
<StackLayout>
<local:page1 />
</StackLayout>
</ContentPage.Content>
</ContentPage>
相關問題
- 1. 使用>>,>,> |,||,| <,<,<<,<<
- 2. 使<b></b><i></i><u>在文本框</u>和<br>
- 3. 什麼` 「</p> <pre><code>__m_uvm_status_container.scope.set_arg_element(`"ARG`",i); </code></pre> <p>什麼的<code>"ARG</code>在宏SV
- 4. 什麼是什麼是一個使用</p> <p><code>javac -cp classes helloworld.java</code></p> <p>和</p> <p><code>javac -classpath classes helloworld.java</code></p> 在CMD <p>的區別-cp和-classpath
- 5. 浮動元素<br /><br /><br /><br /><br /\><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
- 6. 爲什麼<< 256 :: size(16)>>目前爲<<1, 0>>?
- 7. <a>標籤裏面的span屬性是什麼意思?</p> <pre><code><div id="div-1"> <a href="next" span id="next">hidfoli</a> </div> </code></pre> <p>我想知道什麼呢<code>span</code>內<code>a</code>標籤的意思是:
- 8. C#XMLReader ReadString如何讀取所有包含元素中嵌套的xml?如下</p> <pre><code><FRUIT> <HTML><B>1.</B> Apple</HTML> <HTML><B>2.</B> Banana</HTML> </FRUIT> </code></pre> <p>和我的代碼樣本數據
- 9. expect:java.lang.Long <1>但是:java.lang.Integer <1>
- 10. 左右括號 - 爲什麼?</p> <pre><code>const Todos = ({todos}) => ( <div> <h1>Todos</h1> {todos.map(todo => <p key={todo}>{todo}</p>)} </div> ) </code></pre> <p>爲什麼參數周圍有括號:
- 11. 如</p> <p><code><p>This is text </p></code>或<code><div></code>或<code>This is text</code></p> <p>使用<code>XmlPullParser</code>檢索URL
- 12. 通配符搜索<pre><code>IsCurrent </code></pre> <p>換句話說找到</p> <pre><code>get_XXXX(); </code></pre> <p>與</p> <pre><code>XXXX; </code></pre> <p>我試圖做到這一點是較大的文件</p>
- 13. 爲什麼<textarea>顯示<>而不是< >?
- 14. 什麼是<script type =「text/javascript」><!--mce:0--></script>?
- 15. 人<Person>,什麼是<Person>?
- 16. IIf(<condition>, <value>,ElseIf <condition>, <value>, <value>, <value>)表達無效
- 17. 多的螺紋和多進程池在<code>multiprocessing</code></p> <pre><code>pool = Pool() result = pool.map(func, arg) pool.close() pool.join() </code></pre> <p>爲什麼<code>close</code>和<code>join</code>多處理
- 18. 的Grails:前</p> <pre><code><g:if test="${foo.bar}"> </code></pre> <p>和</p> <pre><code><g:if test="\${foo.bar}"> </code></pre> <p>使用 「\」 的真正爲例:\ $ {}和$ {}
- 19. <%# %> VS <%= %>
- 20. <a><button> ...</button></a>和<button><a> ...</a></button>有什麼區別?
- 21. ExtJS的 - <em>ID</em>,<em>名</em>,<em>文本</em> - 網格
- 22. 的MySQL/PHP:<code>id</code>,<code>name</code>,<code>category</code>和一個<code>ratings</code>表列:<code>id</code>,<code>item</code>,<code>rating</code>如何使用JOIN語句
- 23. 使用</p> <pre><code>$programItem[0]->Name </code></pre> <p>在名稱
- 24. <ContentControl><ContentPresenter /></ ContentControl>?
- 25. ArrayList <Object <ArrayList <Object> >>
- 26. 在<c:if><c:if>
- 27. <TextView /> OR <TextView></TextView>
- 28. <script></script> or <script />?
- 29. <asp:XXXX > vs <%# %>/<%@ %>
- 30. <textview></textview>與<textview />
您是否有在XAML中定義的本地名稱空間?如果您收到錯誤消息,通常會告訴我們錯誤是什麼。 – Jason
錯誤\t \t'local'是一個未聲明的前綴。第20行,第18位。 – Abdullah