目前分類:Xamarin (19)

瀏覽方式: 標題列表 簡短摘要

undefined

小賢 發表在 痞客邦 留言(0) 人氣()

undefined

Nuget:

小賢 發表在 痞客邦 留言(0) 人氣()

用Xamarin with Visual Studio 使用Ad-hoc iPhone Device Build的ipa會有個問題,就是缺少167x167的Icon及LaunchScreen的錯誤。

解決方法:

小賢 發表在 痞客邦 留言(0) 人氣()

undefined

ViewModel

小賢 發表在 痞客邦 留言(0) 人氣()

快速Demo:

小賢 發表在 痞客邦 留言(0) 人氣()

1.Forms Preview 在"檢視" -> "其它視窗" -> "Forms Previewer"

2.Remoted iOS Simulator 需要Visual Studio 2017 Enterprise版本才能使用 (一樣是需要一台Mac當作Remote Build Server)

小賢 發表在 痞客邦 留言(0) 人氣()

最近在研究Xamarin.Forms,發現如果要將Picker Control的文字置中或置右的話...,需要使用CustomRender再搭配條件式編譯的方式(假設要放在Share library裡)。

#if __IOS__

        using UIKit;
        using Xamarin.Forms.Platform.iOS;

#elif __ANDROID__

        using Xamarin.Forms.Platform.Android;
        using Android.Views;

#endif

[assembly: ExportRenderer(typeof(Picker), typeof(CustomPickerRenderer))]
namespace MilitaryCountdown
{
        public class CustomPickerRenderer : PickerRenderer
        {
                protected override void OnElementChanged(ElementChangedEventArgs e)
                {
                        base.OnElementChanged(e);

                        if (Control != null)
                        {
#if __IOS__
                                Control.TextAlignment = UITextAlignment.Center;
#elif __ANDROID__
                                Control.Gravity = GravityFlags.CenterHorizontal;
#endif
                        }
                }

        }
}

 

小賢 發表在 痞客邦 留言(0) 人氣()

 

Xamarin native shared project for iOS 測試0.0

小賢 發表在 痞客邦 留言(0) 人氣()

已解決的問題

不同解析度置中縮放

小賢 發表在 痞客邦 留言(0) 人氣()

這是因為缺少Apple WWDR intermediate certificate 的關係,需要到Apple 開發者中心 下載

小賢 發表在 痞客邦 留言(0) 人氣()


小賢 發表在 痞客邦 留言(0) 人氣()

   使用 Visual Studio 2015 + C# + Xamarin + MonoGame , 將既有的XNA來快速Porting 到 iOS。

小賢 發表在 痞客邦 留言(0) 人氣()

 在方案總管中:

1.Assets資料夾內建立一個"Content"資料夾

小賢 發表在 痞客邦 留言(0) 人氣()

  更新到iOS9後,出現"System.EntryPointNotFoundException: alcMacOSXMixerOutputRate",

未命名 

小賢 發表在 痞客邦 留言(0) 人氣()

 

小賢 發表在 痞客邦 留言(0) 人氣()

Xamarin似乎是根據"啟動畫面",來決定支援的解析度,只要有放置該解析度圖片即可支援。

 

小賢 發表在 痞客邦 留言(0) 人氣()

解決 GamePad 出現 SharpDX 找不到dll的問題(Desktop Runtime OK,Mobile Runtime Error)

GamePadState.Default 取代原本的寫法 GamePad.GetState(PlayerIndex.One) 

小賢 發表在 痞客邦 留言(0) 人氣()

螢幕快照 2015-09-11 上午3.11.33  

(刪除 Custom Entitlements)

小賢 發表在 痞客邦 留言(0) 人氣()

 

修改前:

小賢 發表在 痞客邦 留言(0) 人氣()