<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Xamarin.in.th - Medium]]></title>
        <description><![CDATA[รวมบทความวิธีเขียน Xamarin และเทคนิคต่าง ๆ กว่า 180 บทความ และรับเขียนแอปโทร 083–086–8640 - Medium]]></description>
        <link>https://medium.com/crossdev-in-th?source=rss----8bad346962e4---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Xamarin.in.th - Medium</title>
            <link>https://medium.com/crossdev-in-th?source=rss----8bad346962e4---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 12:40:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/crossdev-in-th" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[การแจ้ง Message (DisplayAlert) จากจุดไหนก็ได้ใน App (ใน Xamarin.Forms)]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%81%E0%B8%88%E0%B9%89%E0%B8%87-message-displayalert-%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%88%E0%B8%B8%E0%B8%94%E0%B9%84%E0%B8%AB%E0%B8%99%E0%B8%81%E0%B9%87%E0%B9%84%E0%B8%94%E0%B9%89%E0%B9%83%E0%B8%99-app-%E0%B9%83%E0%B8%99-xamarin-forms-f7b6b619a194?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/f7b6b619a194</guid>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[tips-and-tricks]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Thu, 27 Oct 2022 07:39:54 GMT</pubDate>
            <atom:updated>2022-10-27T07:39:22.104Z</atom:updated>
            <content:encoded><![CDATA[<p>บางครั้ง โค้ดที่เราจะแจ้ง Alert เราไม่ได้อยู่ที่ Page แต่อาจจะอยู่ใน Model หรือที่ใด ๆ ก็ตาม เรามีวิธีง่าย ๆ ในการใช้ฟังก์ชัน DisplayAlert ,DisplayActionSheet ,DisplayPrompt จากตรงไหนก็ได้ ดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cu1yyN_pTZy9M8Bv6eg-cQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@freegraphictoday?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">AbsolutVision</a> on <a href="https://unsplash.com/s/photos/message?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>ให้เรียก App.Current.MainPage แล้วตามด้วยฟังก์ชันที่ต้องการใช้ ดังนี้</p><p>App.Current.MainPage.DisplayAlert(“Success”,”AnyWhere”,”OK”);</p><p>ขอบคุณที่ติดตามอ่านนะครับ : ) , ^_^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7b6b619a194" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%81%E0%B8%88%E0%B9%89%E0%B8%87-message-displayalert-%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%88%E0%B8%B8%E0%B8%94%E0%B9%84%E0%B8%AB%E0%B8%99%E0%B8%81%E0%B9%87%E0%B9%84%E0%B8%94%E0%B9%89%E0%B9%83%E0%B8%99-app-%E0%B9%83%E0%B8%99-xamarin-forms-f7b6b619a194">การแจ้ง Message (DisplayAlert) จากจุดไหนก็ได้ใน App (ใน Xamarin.Forms)</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำ List แบบแนวนอนด้วย CollectionView ใน Xamarin Forms]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3-list-%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B9%81%E0%B8%99%E0%B8%A7%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-collectionview-%E0%B9%83%E0%B8%99-xamarin-forms-64fb7de3439?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/64fb7de3439</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[xaml]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[dotnet]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 13:15:20 GMT</pubDate>
            <atom:updated>2022-07-02T13:15:20.110Z</atom:updated>
            <content:encoded><![CDATA[<p>สรุปเทคนิคการ List ที่เลื่อนซ้ายขวาได้ง่าย ๆ ด้วย CollectionView</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R2b-9thBRYTNj6hStk6ymw.jpeg" /><figcaption>Photo by Bernard Hermant</figcaption></figure><p>CollectionView จะคล้าย ๆ กับ ListView แต่มีความสามารถที่เพิ่มเข้ามา</p><pre>&lt;CollectionView<br>    ItemsSource=&quot;{Binding List1}&quot;</pre><pre>/&gt;</pre><p>ItemsSource = List ของข้อมูลที่เราจะแสดง</p><p>BindingContext = this หมายถึงเวลาที่เรา Binding เราจะเชื่อมกับคลาสตเพจตัวเอง</p><p>ใน .CS เราเขียนอย่างนี้</p><pre>public partial class MainPage : ContentPage<br>    {<br>        public List&lt;string&gt; List1 { get; set; } = new List&lt;string&gt;<br>            {<br>               &quot;one&quot;,<br>               &quot;two&quot;,<br>               &quot;three&quot;,<br>               &quot;four&quot;,<br>               &quot;five&quot;,<br>               &quot;six&quot;<br>            };<br>        public MainPage()<br>        {<br>            InitializeComponent();<br>            BindingContext = this;<br>        }<br>    }</pre><p>เราจะมาดูเพิ่ม คือ การจัดข้อมูลให้แสดง ตามแนวนอน ด้วยการใส่ ItemsLayout เป็น</p><p>แบบ LinearItemsLayout</p><p>โดย Orientation เป็นแนวนอน = “Horizontal”</p><p>(หากต้องการเป็นแนวตั้ง หรือแนวอื่น ให้เป็นค่านี้)</p><pre>&lt;CollectionView<br>                ItemsSource=&quot;{Binding List1}&quot;<br>                &gt;<br>                 &lt;CollectionView.ItemsLayout&gt;<br>                     &lt;LinearItemsLayout<br>                         Orientation=&quot;Horizontal&quot;                          <br>                         ItemSpacing=&quot;10&quot;/&gt;<br>                 &lt;/CollectionView.ItemsLayout&gt;<br>&lt;/CollectionView&gt;</pre><p>ItemSpacing คือ ระยะห่างระหว่าง Item แต่ละอัน</p><p>ตอนนี้เราจะแสดงหน้าตาที่เราต้องการในแต่ละช่อง</p><pre>&lt;CollectionView<br>                ItemsSource=&quot;{Binding List1}&quot;<br>                &gt;<br>                 &lt;CollectionView.ItemsLayout&gt;<br>                     &lt;LinearItemsLayout<br>                         Orientation=&quot;Horizontal&quot;                          <br>                         ItemSpacing=&quot;10&quot;/&gt;<br>                 &lt;/CollectionView.ItemsLayout&gt;</pre><pre>                 &lt;CollectionView.ItemTemplate&gt;<br>                    &lt;DataTemplate&gt;<br>                        &lt;Button<br>                            WidthRequest=&quot;80&quot;     //ปุ่มกว้าง 80<br>                            BackgroundColor=&quot;Red&quot; //พื้นสีปุ่มเป็นสีแดง<br>                            TextColor=&quot;White&quot;     //ตัวอักษรเป็นสีขาว<br>                            Text=&quot;{Binding .}&quot;/&gt;  //เชื่อมกับข้อมูลในลิส<br>                                                  //โดยตรง</pre><pre>                    &lt;/DataTemplate&gt;</pre><pre>                 &lt;/CollectionView.ItemTemplate&gt;    </pre><pre>&lt;/CollectionView&gt;</pre><p>ให้เพิ่มระยะท้ายด้วย footer ดังนี้</p><pre>                 &lt;CollectionView.Footer&gt;<br>                     &lt;BoxView<br>                         WidthRequest=&quot;60&quot;<br>                         Color=&quot;Transparent&quot;<br>                              /&gt;<br>                 &lt;/CollectionView.Footer&gt;</pre><p>สรุปรวมโค้ด .xaml ได้ดังนี้</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br>&lt;ContentPage xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>             xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>             x:Class=&quot;TestHorizontalCollectionView.MainPage&quot;&gt;</pre><pre>&lt;Grid<br>        ColumnDefinitions=&quot;*,20*,*&quot; //แบ่งพื้นที่ซ้ายขวา<br>        RowDefinitions=&quot;*,8*&quot;  //แบ่งพื้นที่เป็น 1 ต่อ 8 ส่วน<br>        &gt;<br>        &lt;CollectionView<br>             Grid.Column=&quot;1&quot;<br>                ItemsSource=&quot;{Binding List1}&quot;<br>                &gt;<br>                     &lt;CollectionView.Footer&gt;<br>                         &lt;BoxView<br>                             WidthRequest=&quot;60&quot;<br>                             Color=&quot;Transparent&quot;<br>                                  /&gt;<br>                     &lt;/CollectionView.Footer&gt;<br>                 &lt;CollectionView.ItemsLayout&gt;<br>                     &lt;LinearItemsLayout<br>                         Orientation=&quot;Horizontal&quot;                          <br>                         ItemSpacing=&quot;10&quot;/&gt;<br>                 &lt;/CollectionView.ItemsLayout&gt;<br>                 &lt;CollectionView.ItemTemplate&gt;<br>                    &lt;DataTemplate&gt;<br>                        &lt;Button<br>                            WidthRequest=&quot;80&quot;<br>                            BackgroundColor=&quot;Red&quot;<br>                            TextColor=&quot;White&quot;<br>                            Text=&quot;{Binding .}&quot;/&gt;</pre><pre>                    &lt;/DataTemplate&gt;<br>                 &lt;/CollectionView.ItemTemplate&gt;    <br>        &lt;/CollectionView&gt;</pre><pre>&lt;/Grid&gt;</pre><pre>&lt;/ContentPage&gt;</pre><p>ใน .cs</p><pre>using System.Collections.Generic;<br>using Xamarin.Forms;</pre><pre>namespace TestHorizontalCollectionView<br>{<br>    public partial class MainPage : ContentPage<br>    {<br>        public List&lt;string&gt; List1 { get; set; } = new List&lt;string&gt;<br>            {<br>               &quot;one&quot;,<br>               &quot;two&quot;,<br>               &quot;three&quot;,<br>               &quot;four&quot;,<br>               &quot;five&quot;,<br>               &quot;six&quot;<br>            };<br>        public MainPage()<br>        {<br>            InitializeComponent();<br>            BindingContext = this;<br>        }<br>    }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*ht8hEouNxHtVkZX4jvloig.png" /></figure><p>เสร็จแล้วครับ อาจจะดูยากนิดนึง ใช้บ่อย ๆ ก็ชินครับ</p><p>โปรดติดตามผมด้วยนะครับ : ) ^_^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64fb7de3439" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3-list-%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B9%81%E0%B8%99%E0%B8%A7%E0%B8%99%E0%B8%AD%E0%B8%99%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-collectionview-%E0%B9%83%E0%B8%99-xamarin-forms-64fb7de3439">ทำ List แบบแนวนอนด้วย CollectionView ใน Xamarin Forms</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำปุ่มสีนูน ๆ ด้วย Gradient ใน Xamarin.Forms]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3%E0%B8%9B%E0%B8%B8%E0%B9%88%E0%B8%A1%E0%B8%AA%E0%B8%B5%E0%B8%99%E0%B8%B9%E0%B8%99-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-gradient-%E0%B9%83%E0%B8%99-xamarin-forms-55a48e4bc315?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/55a48e4bc315</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Sun, 04 Jul 2021 08:20:22 GMT</pubDate>
            <atom:updated>2021-07-04T08:20:22.512Z</atom:updated>
            <content:encoded><![CDATA[<p>บางทีปุ่มสีธรรมดา มันก็ดูธรรมดาไป เราอยากให้ปุ่มมันดูนูน ๆ น่ากด ทำอย่างไรเรามาดูกัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lQmVRpemjP6hbvCljYR9Zw.jpeg" /></figure><p>วิธีการคือ เราจะไล่เฉดสีตั้งแต่สีที่ค่อนข้างสว่าง ไปยังสีที่มืด โดยใช้ Gradient ดังนี้</p><pre>            &lt;Button<br>                WidthRequest=&quot;100&quot;<br>                HeightRequest=&quot;50&quot;<br>                CornerRadius=&quot;10&quot;<br>                Text=&quot;Test&quot;<br>                TextColor=&quot;White&quot;<br>                &gt;<br>                &lt;Button.Background&gt;<br>                    &lt;LinearGradientBrush<br>                        StartPoint=&quot;0.5,0&quot;<br>                        EndPoint=&quot;0.5,1&quot;<br>                        &gt;<br>                        &lt;GradientStop<br>                            Color=&quot;LightBlue&quot;<br>                            Offset=&quot;0&quot;<br>                            /&gt;<br>                        &lt;GradientStop<br>                            Color=&quot;DarkBlue&quot;<br>                            Offset=&quot;1&quot;<br>                            /&gt;<br>                    &lt;/LinearGradientBrush&gt;<br>                &lt;/Button.Background&gt;<br>            &lt;/Button&gt;</pre><p>Background เรากำหนดให้เป็น LinearGradientBrush</p><p>โดยสีแรกคือสีน้ำเงินอ่อน</p><p>สีที่สองเป็นสีนำ้เงินเข้ม</p><p>Offset คือ จุดเริ่มต้น 0 หมายถึงเริ่มต้นที่จุดแรก</p><p>Offset 1 คือจุดสิ้นสุด</p><p>จะได้ผลดังนี้ครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*Qxw-ftdIi9ZSYtYUaJZztw.png" /></figure><p>ถ้าเห็นว่าบล็อกนี้ พอมีประโยชน์อยู่บ้าง ช่วย Follow ,<br>ปรบมือหรือแชร์ต่อด้วยนะครับ ขอบคุณครับ ^_^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55a48e4bc315" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3%E0%B8%9B%E0%B8%B8%E0%B9%88%E0%B8%A1%E0%B8%AA%E0%B8%B5%E0%B8%99%E0%B8%B9%E0%B8%99-%E0%B9%86-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-gradient-%E0%B9%83%E0%B8%99-xamarin-forms-55a48e4bc315">ทำปุ่มสีนูน ๆ ด้วย Gradient ใน Xamarin.Forms</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ทำ List แบบหลาย Column ด้วย Xamarin Form CollectionView]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3-list-%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2-column-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-form-collectionview-f61ac698cf8a?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/f61ac698cf8a</guid>
            <category><![CDATA[new-features]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[views]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[xamarin]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Sat, 19 Jun 2021 05:52:31 GMT</pubDate>
            <atom:updated>2021-06-19T06:00:31.337Z</atom:updated>
            <content:encoded><![CDATA[<p>ListView ปกติไม่สามารถทำ List ที่มีหลายคอลัมภ์ได้ แต่ตอนนี้มี CollectionView ทำแบบนั้นได้ เรามาดูกันว่าทำยังไง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fx6tLGLhlwZ8g1sXamdFXA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@macphoto?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mauricio Artieda</a> on <a href="https://unsplash.com/s/photos/columns?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br>&lt;ContentPage xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>             xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>             x:Class=&quot;TestMultiColumnList.MainPage&quot;&gt;</pre><pre>&lt;CollectionView<br>        &gt;<br>        &lt;CollectionView.ItemsLayout&gt;<br>            &lt;GridItemsLayout Orientation=&quot;Vertical&quot; Span=&quot;3&quot;/&gt;<br>        &lt;/CollectionView.ItemsLayout&gt;<br>        &lt;CollectionView.ItemTemplate&gt;<br>            &lt;DataTemplate&gt;<br>                &lt;Image<br>                    Source=&quot;{Binding .}&quot;<br>                    Aspect=&quot;AspectFill&quot;<br>                    VerticalOptions=&quot;Fill&quot;<br>                    HorizontalOptions=&quot;Fill&quot;<br>                    /&gt;<br>            &lt;/DataTemplate&gt;<br>        &lt;/CollectionView.ItemTemplate&gt;<br>        &lt;CollectionView.ItemsSource&gt;<br>            &lt;x:Array Type=&quot;{x:Type x:String}&quot;&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>                &lt;x:String&gt;<a href="https://picsum.photos/200/300">https://picsum.photos/200/300</a>&lt;/x:String&gt;<br>            &lt;/x:Array&gt;<br>        &lt;/CollectionView.ItemsSource&gt;<br>    &lt;/CollectionView&gt;</pre><pre>&lt;/ContentPage&gt;</pre><p>สำคัญตรงนี้ครับ</p><pre>        &lt;CollectionView.ItemsLayout&gt;<br>            &lt;GridItemsLayout Orientation=&quot;Vertical&quot; Span=&quot;3&quot;/&gt;<br>        &lt;/CollectionView.ItemsLayout&gt;</pre><p>Orientation คือแนวตั้ง(Vertical) หรือแนวนอน (Horizontal)</p><p>Span คือ จำนวน Column</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*_01BZSWlp48DoyC2rXy3Rg.png" /></figure><p>ลองดูนะครับ</p><p>ถ้าชอบช่วยกด Like , Share , Follow ให้ผมด้วยนะครับ ^_^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f61ac698cf8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%97%E0%B8%B3-list-%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AB%E0%B8%A5%E0%B8%B2%E0%B8%A2-column-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-form-collectionview-f61ac698cf8a">ทำ List แบบหลาย Column ด้วย Xamarin Form CollectionView</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ขึ้นบรรทัดใหม่ใน Label ของ Xamarin Forms (New Line)]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%97%E0%B8%B1%E0%B8%94%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88%E0%B9%83%E0%B8%99-label-%E0%B8%82%E0%B8%AD%E0%B8%87-xamarin-forms-new-line-abcc9a97dab0?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/abcc9a97dab0</guid>
            <category><![CDATA[labels]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[xaml]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Tue, 15 Jun 2021 07:27:12 GMT</pubDate>
            <atom:updated>2021-06-15T07:27:11.980Z</atom:updated>
            <content:encoded><![CDATA[<p>เคยไหมที่เราจะใส่ข้อความลงไปใน Label โดยจะให้ขึ้นบรรทัดใหม่เป็น 2 บรรทัด แต่ทำไม่ได้ เราจะมาดูวิธีแก้กัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmnjHMAjhe2n1Y4aFGlqSw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@christianperner?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christian Perner</a> on <a href="https://unsplash.com/s/photos/new-line?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>กรณีนี้ต้องแยกเป็น 2 กรณี คือ</p><ol><li>ใน Xaml เราจะใช้ ‘&amp;#10;’ แทนเครื่องหมายขึ้นบรรทัดใหม่</li><li>ใน cs เราจะแทนที่ \n ด้วย System.Environment.NewLine</li></ol><p>ดังนี้</p><p>ใน XAML</p><pre>&lt;ContentPage xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>             xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>             x:Class=&quot;TestNewLine.MainPage&quot;&gt;</pre><pre>    &lt;StackLayout<br>        Margin=&quot;20&quot;<br>        &gt;<br>        &lt;Label<br>            Text=&quot;One&amp;#10;Two&amp;#10;Three&quot;<br>            /&gt;<br>        &lt;Label<br>            x:Name=&quot;CS&quot;<br>            /&gt;<br>    &lt;/StackLayout&gt;</pre><pre>&lt;/ContentPage&gt;</pre><p>ใน CS</p><pre>public partial class MainPage : ContentPage<br>    {<br>        public MainPage()<br>        {<br>            InitializeComponent();<br>            CS.Text = &quot;First\nSecond\nThird&quot;.Replace(&quot;\n&quot;, System.Environment.NewLine);<br>        }<br>    }</pre><p>(Replace เป็นเมธอดที่จะเปลี่ยนข้อความนึงไปเป็นอีกข้อความนึง)</p><p>ได้ผลดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/99/1*Nn0ju5qKjFc7zyXkjj9mRg.png" /><figcaption>New Line in Label.Text</figcaption></figure><p>ถ้าหากเห็นว่าบล้อกนี้ พอมีประโยชน์อยู่บ้าง ช่วยแชร์ไปเฟสบุ๊ค หรือกด Follow ด้วยนะครับ ขอบคุณครับ ^_^</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abcc9a97dab0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%97%E0%B8%B1%E0%B8%94%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88%E0%B9%83%E0%B8%99-label-%E0%B8%82%E0%B8%AD%E0%B8%87-xamarin-forms-new-line-abcc9a97dab0">ขึ้นบรรทัดใหม่ใน Label ของ Xamarin Forms (New Line)</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ปรับขนาดของ View ได้ทุกชนิดด้วย Xamarin Forms Scale (Resize Any View using Scale)]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B8%99%E0%B8%B2%E0%B8%94%E0%B8%82%E0%B8%AD%E0%B8%87-view-%E0%B9%84%E0%B8%94%E0%B9%89%E0%B8%97%E0%B8%B8%E0%B8%81%E0%B8%8A%E0%B8%99%E0%B8%B4%E0%B8%94%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-scale-resize-any-view-using-scale-3faa8f0984fd?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/3faa8f0984fd</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[essentials]]></category>
            <category><![CDATA[xamarin]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Sat, 12 Jun 2021 15:26:22 GMT</pubDate>
            <atom:updated>2021-06-12T15:26:22.443Z</atom:updated>
            <content:encoded><![CDATA[<p>เคยไหมที่เวลาที่เราใช้ View บางชนิด (เช่น Switch) แล้วเราปรับขนาดมันด้วย WidthRequest กับ HeightRequest ไม่ได้ เรามีวิธีแก้ คือ Scale</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ijgmj2FFNLTVtLcg1sXLfw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@agphotos?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ag PIC</a> on <a href="https://unsplash.com/s/photos/scale?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Scale เป็น property ที่มีอยู่ในทุก View แม้กระทั่ง Switch</p><p>โดย Scale ปกติจะมีค่าเท่ากับ 1.0</p><p>ถ้าเราต้องการให้ขนาดใหญ่ขึ้น 10% เราก็ใส่ค่า Scale = 1.1</p><p>ถ้าเราต้องการให้ขนาดเล็กลง 10% เราก็ใส่ค่า Scale = 0.9</p><p>เช่น</p><pre>&lt;ContentPage xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>             xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>             x:Class=&quot;TestScale.MainPage&quot;&gt;</pre><pre>&lt;StackLayout VerticalOptions=&quot;Center&quot;&gt;<br>        &lt;Switch Scale=&quot;1.5&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;1.4&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;1.3&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;1.2&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;1.1&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;1.0&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;0.9&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;0.8&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;0.7&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;0.6&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>        &lt;Switch Scale=&quot;0.5&quot; HorizontalOptions=&quot;Center&quot;/&gt;<br>    &lt;/StackLayout&gt;</pre><pre>&lt;/ContentPage&gt;</pre><p>ได้ผลดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UY56LSxsg_T79nx1lxqLGg.png" /><figcaption>ค่า Scale ที่ต่างกัน</figcaption></figure><p>ช่วยกด Follow หรือ ปรบมือให้ผมด้วยนะครับ : )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3faa8f0984fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%9B%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B8%99%E0%B8%B2%E0%B8%94%E0%B8%82%E0%B8%AD%E0%B8%87-view-%E0%B9%84%E0%B8%94%E0%B9%89%E0%B8%97%E0%B8%B8%E0%B8%81%E0%B8%8A%E0%B8%99%E0%B8%B4%E0%B8%94%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-scale-resize-any-view-using-scale-3faa8f0984fd">ปรับขนาดของ View ได้ทุกชนิดด้วย Xamarin Forms Scale (Resize Any View using Scale)</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[การทำรูปแบบวงกลมหรือที่เรียกว่า Avatar ด้วย Xamarin.Forms 5]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A7%E0%B8%87%E0%B8%81%E0%B8%A5%E0%B8%A1%E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%80%E0%B8%A3%E0%B8%B5%E0%B8%A2%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2-avatar-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-5-b0c9b36888be?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/b0c9b36888be</guid>
            <category><![CDATA[essentials]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[whats-new]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Tue, 08 Jun 2021 03:43:59 GMT</pubDate>
            <atom:updated>2021-06-08T03:43:58.955Z</atom:updated>
            <content:encoded><![CDATA[<p>เคยไหมที่เราอยากแสดงรูป(ซึ่งเป็นสี่เหลี่ยม)ให้รูปเราเป็นวงกลม(เอาแบบกลมสมบูรณ์ ไม่ใช่โค้งที่ขอบ)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_FCvFoTYbiyRTfgj59zGNA.jpeg" /></figure><p>ใน Xamarin.Forms เวอร์ชันมีฟีเจอร์ใหม่ เรียกว่า Clip และ​​ ​Geometry ซึ่งใช้ได้กับทุก View</p><p>TLDR; ดูตัวอย่างโค้ดกันดีกว่า</p><pre>&lt;Image<br>    Aspect=&quot;AspectFill&quot;<br>    Source=&quot;girl.png&quot;<br>    &gt;<br>    &lt;Image.Clip&gt;<br>        &lt;EllipseGeometry<br>            RadiusX=&quot;25&quot;<br>            RadiusY=&quot;25&quot;<br>            Center=&quot;25,25&quot;<br>            /&gt;<br>    &lt;/Image.Clip&gt;<br>&lt;/Image&gt;</pre><p>ทุก View สามารถคลิปได้ และมี Geometry ให้เลือกมากมายหลายแบบ เช่น</p><ul><li>EllipseGeometry, สำหรับ วงรี หรือ วงกลม (วงกลม คือ วงรีที่มีรัศมีทาง RadiusX เท่ากับ RadiusY)</li><li>GeometryGroup, ใช้กรณีที่จะรวมหลาย Geometry เข้าด้วยกัน</li><li>LineGeometry, แบบเส้น</li><li>PathGeometry, กำหนดโดยใช้ Path (เดี๋ยวจะอธิบายในตอนถัด ๆ ไปครับ)</li><li>RectangleGeometry, สำหรับสี่เหลี่ยม</li></ul><p>ง่ายไหม (แต่ก่อนจะทำแบบนี้ยากเหลือเกิน)</p><p>ช่วยกด Follow หรือ ปรบมือให้ผมด้วยนะครับ : )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0c9b36888be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%97%E0%B8%B3%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%A7%E0%B8%87%E0%B8%81%E0%B8%A5%E0%B8%A1%E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B9%80%E0%B8%A3%E0%B8%B5%E0%B8%A2%E0%B8%81%E0%B8%A7%E0%B9%88%E0%B8%B2-avatar-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-5-b0c9b36888be">การทำรูปแบบวงกลมหรือที่เรียกว่า Avatar ด้วย Xamarin.Forms 5</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ถามคำถามง่าย ๆ ให้ user ตอบ ด้วย Xamarin Forms (Display Prompt)]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%84%E0%B8%B3%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B9%83%E0%B8%AB%E0%B9%89-user-%E0%B8%95%E0%B8%AD%E0%B8%9A-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-display-prompt-e2f1dba0f096?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/e2f1dba0f096</guid>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[popups]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[essentials]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Thu, 06 May 2021 06:17:39 GMT</pubDate>
            <atom:updated>2021-05-06T06:17:39.162Z</atom:updated>
            <content:encoded><![CDATA[<p>เวลาจะถามคำถามง่าย ๆ กับผู้ใช้ซักคำถามนึง เขียนอย่างไรให้ง่ายที่สุด เรามาดูกัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtGPv9t0aPKs9J2tX3XBJw.png" /></figure><p>ให้ใช้เมธอด DisplayPromptAsync เช่น</p><pre>string result = await DisplayPromptAsync(&quot;Question 1&quot;, &quot;What&#39;s your name?&quot;);</pre><p>คำตอบก็จะอยู่ที่ result ครับ</p><p>ง่ายไหมครับ</p><p>ช่วยกด Follow หรือ ปรบมือให้ผมด้วยนะครับ : )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2f1dba0f096" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%84%E0%B8%B3%E0%B8%96%E0%B8%B2%E0%B8%A1%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2-%E0%B9%86-%E0%B9%83%E0%B8%AB%E0%B9%89-user-%E0%B8%95%E0%B8%AD%E0%B8%9A-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-display-prompt-e2f1dba0f096">ถามคำถามง่าย ๆ ให้ user ตอบ ด้วย Xamarin Forms (Display Prompt)</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เทคนิคลับในการย่อแอป Xamarinให้ขนาดเล็กลง โดยไม่ Hang]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B9%80%E0%B8%97%E0%B8%84%E0%B8%99%E0%B8%B4%E0%B8%84%E0%B8%A5%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A2%E0%B9%88%E0%B8%AD%E0%B9%81%E0%B8%AD%E0%B8%9B-xamarin%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%82%E0%B8%99%E0%B8%B2%E0%B8%94%E0%B9%80%E0%B8%A5%E0%B9%87%E0%B8%81%E0%B8%A5%E0%B8%87-%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%84%E0%B8%A1%E0%B9%88-hang-aed564c47fc0?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/aed564c47fc0</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[essentials]]></category>
            <category><![CDATA[thai]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Tue, 04 May 2021 06:43:57 GMT</pubDate>
            <atom:updated>2021-05-04T06:43:57.710Z</atom:updated>
            <content:encoded><![CDATA[<p>การลดขนาดของแอป ใช้วิธีปรับ Link ให้เป็น Link Framework SDK Only แต่บางครั้งมันทำให้แอปเด้ง เราต้องแก้อย่างไร มาดูกัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3AuihBg8uChPeqKrkzVB0w.jpeg" /></figure><p>เริ่มแรกให้ปรับ Link ก่อน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFG7_1XuwqdFkFglpLqWVw.png" /></figure><p>พอปรับเสร็จแล้วให้เพิ่มโค้ดนี้ เข้าไปในเมธอด FinishedLaunching ใน ไฟล์ AppDelegate.cs</p><pre>new System.Globalization.ThaiBuddhistCalendar();</pre><p>มันจะทำให้แอปไม่แครช เวลารัน</p><p>เหตุผลเบื้องหลัง คือ การ Link มันจะพยายามดึงโค้ดที่ไม่เกี่ยวข้องออก โดยมันเข้าใจว่าเราไม่ใช้ปฏิทินพุทธศักราช (ซึ่งมันเข้าใจผิด) มันเลยดึงโค้ดออก พอเราแก้โดยใส่บรรทัดนี้เข้าไป มันจะเข้าใจได้ว่า เราใช้พุทธศักราชด้วย ทำให้แอปไม่แครช</p><p>ขอบคุณมากครับที่ติดตามครับ กรุณากด Follow หรือ ปรบมือ ให้ผมด้วยนะครับ :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aed564c47fc0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B9%80%E0%B8%97%E0%B8%84%E0%B8%99%E0%B8%B4%E0%B8%84%E0%B8%A5%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%99%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A2%E0%B9%88%E0%B8%AD%E0%B9%81%E0%B8%AD%E0%B8%9B-xamarin%E0%B9%83%E0%B8%AB%E0%B9%89%E0%B8%82%E0%B8%99%E0%B8%B2%E0%B8%94%E0%B9%80%E0%B8%A5%E0%B9%87%E0%B8%81%E0%B8%A5%E0%B8%87-%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%84%E0%B8%A1%E0%B9%88-hang-aed564c47fc0">เทคนิคลับในการย่อแอป Xamarinให้ขนาดเล็กลง โดยไม่ Hang</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[แสดงหน้าต่าง ๆ ที่ Push ซ้อนกันอยู่ ในบรรทัดเดียวกัน ด้วย Xamarin Forms Breadcrumb (ตอนที่ 1)]]></title>
            <link>https://medium.com/crossdev-in-th/%E0%B9%81%E0%B8%AA%E0%B8%94%E0%B8%87%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B8%95%E0%B9%88%E0%B8%B2%E0%B8%87-%E0%B9%86-%E0%B8%97%E0%B8%B5%E0%B9%88-push-%E0%B8%8B%E0%B9%89%E0%B8%AD%E0%B8%99%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B8%B9%E0%B9%88-%E0%B9%83%E0%B8%99%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%97%E0%B8%B1%E0%B8%94%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%81%E0%B8%B1%E0%B8%99-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-breadcrumb-%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88-1-26b9dcd04e87?source=rss----8bad346962e4---4</link>
            <guid isPermaLink="false">https://medium.com/p/26b9dcd04e87</guid>
            <category><![CDATA[xamarin-forms]]></category>
            <category><![CDATA[xamarin]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Pranart Dechpokket]]></dc:creator>
            <pubDate>Wed, 13 Jan 2021 04:32:06 GMT</pubDate>
            <atom:updated>2021-01-13T04:32:06.112Z</atom:updated>
            <content:encoded><![CDATA[<p>เคยไหมที่แอปเราซับซ้อน มีการ Push หน้าซ้อน ๆ กันหลาย ๆ ชั้น จนผู้ใช้ไม่รู้ว่าอยู่ ณ ตรงไหน วันนี้มีทางแก้ครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGZqPL0RYZBtlXrescdfMg.jpeg" /></figure><p>เริ่มจากให้ Add Nuget Package ชื่อ Xamarin.Forms.BreadCrumb ทั้งในโปรเจ็กระดับบน,iOS,Android</p><p>ในหน้า XAML</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br>&lt;ContentPage xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>             xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>             xmlns:breadcrumb=&quot;clr-namespace:Breadcrumb;assembly=Xamarin.Forms.Breadcrumb&quot;<br>             Title=&quot;First&quot;<br>             x:Class=&quot;TestBreadcrumb.MainPage&quot;&gt;<br>    &lt;StackLayout&gt;<br>        &lt;breadcrumb:Breadcrumb<br>            HeightRequest=&quot;50&quot;<br>            Padding=&quot;5&quot;<br>            VerticalOptions=&quot;Start&quot;<br>            /&gt;<br>        &lt;Button<br>            Text=&quot;NextPage&quot;<br>            HeightRequest=&quot;100&quot;<br>            WidthRequest=&quot;250&quot;<br>            Clicked=&quot;Button_Clicked&quot;<br>            VerticalOptions=&quot;Center&quot;<br>            HorizontalOptions=&quot;Center&quot;<br>            /&gt;<br>    &lt;/StackLayout&gt;</pre><pre>&lt;/ContentPage&gt;</pre><p>หน้า MainPage.cs</p><pre>using Xamarin.Forms;</pre><pre>namespace TestBreadcrumb<br>{<br>    public partial class MainPage : ContentPage<br>    {<br>        public MainPage()<br>        {<br>            InitializeComponent();<br>        }</pre><pre>void Button_Clicked(System.Object sender, System.EventArgs e)<br>        {<br>            Navigation.PushAsync(new SecondPage());<br>        }<br>    }<br>}</pre><p>หน้า SecondPage.xaml</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;ContentPage<br>    xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>    xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>    xmlns:breadcrumb=&quot;clr-namespace:Breadcrumb;assembly=Xamarin.Forms.Breadcrumb&quot;<br>    Title=&quot;Second&quot;<br>    x:Class=&quot;TestBreadcrumb.SecondPage&quot;&gt;<br>    &lt;StackLayout&gt;<br>        &lt;breadcrumb:Breadcrumb<br>            HeightRequest=&quot;50&quot;<br>            Padding=&quot;5&quot;<br>            VerticalOptions=&quot;Start&quot;<br>            /&gt;<br>        &lt;Button<br>            Text=&quot;NextPage&quot;<br>            HeightRequest=&quot;100&quot;<br>            WidthRequest=&quot;250&quot;<br>            Clicked=&quot;Button_Clicked&quot;<br>            VerticalOptions=&quot;Center&quot;<br>            HorizontalOptions=&quot;Center&quot;<br>            /&gt;<br>    &lt;/StackLayout&gt;<br>&lt;/ContentPage&gt;</pre><p>SecondPage.cs</p><pre>using System;<br>using System.Collections.Generic;</pre><pre>using Xamarin.Forms;</pre><pre>namespace TestBreadcrumb<br>{<br>    public partial class SecondPage : ContentPage<br>    {<br>        public SecondPage()<br>        {<br>            InitializeComponent();</pre><pre>}</pre><pre>void Button_Clicked(System.Object sender, System.EventArgs e)<br>        {<br>            Navigation.PushAsync(new ThirdPage());<br>        }<br>    }<br>}</pre><p>ThirdPage.xaml</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;ContentPage<br>    xmlns=&quot;<a href="http://xamarin.com/schemas/2014/forms">http://xamarin.com/schemas/2014/forms</a>&quot;<br>    xmlns:x=&quot;<a href="http://schemas.microsoft.com/winfx/2009/xaml">http://schemas.microsoft.com/winfx/2009/xaml</a>&quot;<br>    xmlns:breadcrumb=&quot;clr-namespace:Breadcrumb;assembly=Xamarin.Forms.Breadcrumb&quot;<br>    Title=&quot;Third&quot;<br>    x:Class=&quot;TestBreadcrumb.ThirdPage&quot;&gt;<br>    &lt;StackLayout&gt;<br>        &lt;breadcrumb:Breadcrumb<br>            HeightRequest=&quot;50&quot;<br>            Padding=&quot;5&quot;<br>            VerticalOptions=&quot;Start&quot;<br>            /&gt;<br>        &lt;Button<br>            Text=&quot;Back to root&quot;<br>            HeightRequest=&quot;100&quot;<br>            WidthRequest=&quot;250&quot;<br>            Clicked=&quot;Button_Clicked&quot;<br>            VerticalOptions=&quot;Center&quot;<br>            HorizontalOptions=&quot;Center&quot;<br>            /&gt;<br>    &lt;/StackLayout&gt;<br>&lt;/ContentPage&gt;</pre><p>ThirdPage.cs</p><pre>using Xamarin.Forms;</pre><pre>namespace TestBreadcrumb<br>{<br>    public partial class ThirdPage : ContentPage<br>    {<br>        public ThirdPage()<br>        {<br>            InitializeComponent();<br>        }</pre><pre>void Button_Clicked(System.Object sender, System.EventArgs e)<br>        {<br>            Navigation.PopToRootAsync();<br>        }<br>    }<br>}</pre><p>ผลที่ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*Vlby1hWoeZB_hde2fELB_g.gif" /></figure><p>เสร็จแล้วครับ</p><p>อย่าลืมกด Follow ผม ด้วยนะครับ ขอบคุณมากครับ :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26b9dcd04e87" width="1" height="1" alt=""><hr><p><a href="https://medium.com/crossdev-in-th/%E0%B9%81%E0%B8%AA%E0%B8%94%E0%B8%87%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B8%95%E0%B9%88%E0%B8%B2%E0%B8%87-%E0%B9%86-%E0%B8%97%E0%B8%B5%E0%B9%88-push-%E0%B8%8B%E0%B9%89%E0%B8%AD%E0%B8%99%E0%B8%81%E0%B8%B1%E0%B8%99%E0%B8%AD%E0%B8%A2%E0%B8%B9%E0%B9%88-%E0%B9%83%E0%B8%99%E0%B8%9A%E0%B8%A3%E0%B8%A3%E0%B8%97%E0%B8%B1%E0%B8%94%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B8%A2%E0%B8%A7%E0%B8%81%E0%B8%B1%E0%B8%99-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-xamarin-forms-breadcrumb-%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B5%E0%B9%88-1-26b9dcd04e87">แสดงหน้าต่าง ๆ ที่ Push ซ้อนกันอยู่ ในบรรทัดเดียวกัน ด้วย Xamarin Forms Breadcrumb (ตอนที่ 1)</a> was originally published in <a href="https://medium.com/crossdev-in-th">Xamarin.in.th</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>