public ViewSamplePage(ViewSample sample)
 {
     Title = sample.Name;
     sample.View.HorizontalOptions = LayoutOptions.FillAndExpand;
     Content = new StackLayout {
         Padding = 20,
         Orientation = StackOrientation.Vertical,
         Children = { sample.View }
     };
 }
예제 #2
0
 public static void Main( String [] args )
 {
     try
     {
         using ( ViewSample aSample = new ViewSample( args ) )
         {
             aSample.doSampleFunction();
         }
         Console.WriteLine( "\nSamples done." );
     }
     catch (Exception ex)
     {
         Console.WriteLine( "Sample caught exception! " + ex );
     }
 }
예제 #3
0
 public static void Main(String [] args)
 {
     try
     {
         using (ViewSample aSample = new ViewSample(args))
         {
             aSample.doSampleFunction();
         }
         Console.WriteLine("\nSamples done.");
     }
     catch (Exception ex)
     {
         Console.WriteLine("Sample caught exception! " + ex);
     }
 }