投稿

6月, 2018の投稿を表示しています

misc (3)

Keywords: Xamarin.Forms, Borderline of Entry, Borderline of Editor, Align Button.Text to the left Erase Entry borderline: As coded in MainPage.xaml.cs  (42-60 line) in the previous post, Command Prompt (1) , place a Button on the Entry, and set the Button's properties as below: BorderColor: the same color as the background color of your App BorderWidth: a little bit thick so as to hide the Entry's border line BackgroundColor: Transparent InputTransparent: true Let me give you another Border Line topic.  If you want to display borderline around Editor, as coded in MainPage.xaml  (126-146 line)  in the previous post, PCL Storage (2) , set the Editor on a layout such as Grid, and set the layout's BackgroundColor the different color from the Editor's one. And also set the layout's padding.  The padding would be the thickness of the border line. Align Button.Text to the left: I tried to align Button.Text to the left, but I couldn't find it out. So I mad

Inverted Pendulum Simulation

イメージ
Keywords:  Xamarin.Forms, Inverted Pendulum, PID Control, Runge=Kutta method, Ziegler-Nichols' Ultimate Gain method, BoxView, Slider, Device.StartTimer I developed an Xamarin.Forms App simulating an inverted pendulum balanced by PID-Control.  I know that this is very common.  You can find a lot of sample programs everywhere.  But it's OK, just training for me! The screen shot just after launching the App and MainPage.xaml. MainPage.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 "                 x : Class = " Pendulum.MainPage " >      < Grid   RowSpacing = " 0 " >          < Grid.RowDefinitions >              < RowDefinition   Height = " Auto "   />              < RowDefinition   Height = " Auto &qu