저는 메인 컴퓨터로 라즈베리 파이를 사용합니다. MonoDevelop를 사용하여 C# 프로그램과 모노를 실행합니다. 내 GUI 용 System.Windows.Forms를 사용합니다. 끝나면 Raspberry Pi 또는 Windows에서 실행할 수있는 .exe 파일이 있습니다. 런타임에 양식에 컨트롤을 추가하는 데 도움이되는 클래스가 있습니다.
public static class ControlCreator
{
public static void Add(this Control.ControlCollection collection
,out GroupBox box,string id, string text, int left, int top
, int width, int height)
{
box = new GroupBox();
box.Text = text;
AddControl (collection,box,id,left,top,width,height);
return;
}
public static void Add(this Control.ControlCollection collection
,out Button box,string id, string text, int left, int top
, int width, int height)
{
box = new Button();
box.Text = text;
AddControl (collection,box,id,left,top,width,height);
return;
}
public static void Add(this Control.ControlCollection collection
,out Label box,string id, string text, int left, int top
, int width, int height)
{
box = new Label();
box.Text = text;
AddControl (collection,box,id,left,top,width,height);
return;
}
private static void AddControl(
Control.ControlCollection collection,Control box,string id, int left
, int top, int width, int height)
{
box.Name = id;
box.Left = left;
box.Top = top;
box.Width = width;
box.Height = height;
collection.Add(box);
return;
}
}
XF는 Android 및 iOS 용 UI 레이어입니다. RPi에서는 실행되지 않습니다. PI에서 실행되는 모든 언어로 웹 서비스를 작성하고 Android/iOS에서 실행되는 XF 앱과 통신 할 수 있습니다. – Jason
저는 Xamarin Forms가 UI 레이어이고, Xamarin, IOS 및 Xamarin.Android가 Mono 위에 구축되어 있다는 것을 알고 있습니다. Xamarin Forms에서도 마찬가지입니까? – Andy
XF는 X.iOS 및 X.Android의 상단에서 실행됩니다. – Jason