private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MaskBlurExperimentPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); blurStylePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "blurStylePicker"); sigmaSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "sigmaSlider"); }
public MainPage() { const float y = 40; const float canvasInvert = -1; InitializeComponent(); var canvas = new global::SkiaSharp.Views.Forms.SKCanvasView(); var painter = new SkiaSharp.MathPainter { LaTeX = @"999999" }; canvas.PaintSurface += (sender, e) => { var c = e.Surface.Canvas; c.Scale(10, 10); painter.Draw(c, 0, y); for (int i = 0; i < painter.Display.To <Display.ListDisplay <Fonts, Glyph> >().Displays[0].To <Display.TextLineDisplay <Fonts, Glyph> >().Runs[0].Run.Length; i++) { if (painter.Display.PointForIndex(TypesettingContext.Instance, MathListIndex.Level0Index(i)) is System.Drawing.PointF p) { c.DrawCircle(p.X, canvasInvert * p.Y, 1, new global::SkiaSharp.SKPaint { Color = global::SkiaSharp.SKColors.Red }); } else { System.Diagnostics.Debugger.Break(); } } }; Content = canvas; }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(JitterExperimentPage)); segLengthSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "segLengthSlider"); deviationSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "deviationSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(AngleArcPage)); startAngleSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "startAngleSlider"); sweepAngleSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "sweepAngleSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MainPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); LightText = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "LightText"); btnStop = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Button>(this, "btnStop"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(DotsAndDashesPage)); strokeCapPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "strokeCapPicker"); dashArrayPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "dashArrayPicker"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(BitmapTileFlipModesPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); xModePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "xModePicker"); yModePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "yModePicker"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(SkewExperimentPage)); xSkewSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "xSkewSlider"); ySkewSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "ySkewSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MultipleLinesPage)); pointModePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "pointModePicker"); strokeCapPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "strokeCapPicker"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(DaysPage)); Test = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "Test"); lvDays = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.ListView>(this, "lvDays"); view2 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "view2"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(CameraPage)); cameraPreview = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::WasteApp.CameraPreview>(this, "cameraPreview"); scanCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "scanCanvasView"); cornersCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "cornersCanvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(FivePointedStarPage)); fillTypePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "fillTypePicker"); drawingModePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "drawingModePicker"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(GradientTransitionsPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); progressSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "progressSlider"); transitionPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "transitionPicker"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(EllipticalArcPage)); xRadiusSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "xRadiusSlider"); yRadiusSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "yRadiusSlider"); rotationSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "rotationSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(YearsPage)); outerLayout = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.StackLayout>(this, "outerLayout"); test = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "test"); lvYears = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.ListView>(this, "lvYears"); view2 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "view2"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(TaperTransformPage)); taperSidePicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "taperSidePicker"); taperCornerPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "taperCornerPicker"); taperFractionSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "taperFractionSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(TabBarView)); clipCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "clipCanvasView"); leftBoxCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "leftBoxCanvasView"); rightBoxCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "rightBoxCanvasView"); stack = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.StackLayout>(this, "stack"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(DistantLightExperimentPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); zSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "zSlider"); surfaceScaleSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "surfaceScaleSlider"); lightConstantSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "lightConstantSlider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(LightenAndDarkenPage)); lightenCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "lightenCanvasView"); lightenSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "lightenSlider"); darkenCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "darkenCanvasView"); darkenSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "darkenSlider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(DodgeAndBurnPage)); dodgeCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "dodgeCanvasView"); dodgeSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "dodgeSlider"); burnCanvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "burnCanvasView"); burnSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "burnSlider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(PlayPage)); draw = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "draw"); explain = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "explain"); error = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "error"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(RectangleSubsetPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); stretchPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "stretchPicker"); horizontalPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "horizontalPicker"); verticalPicker = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Picker>(this, "verticalPicker"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(RadialProgress)); canvas = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvas"); sw_listToggle = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Switch>(this, "sw_listToggle"); lstView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.ListView>(this, "lstView"); sweepAngleSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "sweepAngleSlider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(PortraitView)); ImageSkiaCanvas = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "ImageSkiaCanvas"); Heading1 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "Heading1"); Body1 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "Body1"); Heading2 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "Heading2"); Body2 = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "Body2"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(TestPerspectivePage)); persp0Slider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "persp0Slider"); persp0Label = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "persp0Label"); persp1Slider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "persp1Slider"); persp1Label = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "persp1Label"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(Rotation3DPage)); xRotateSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "xRotateSlider"); yRotateSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "yRotateSlider"); zRotateSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "zRotateSlider"); depthSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "depthSlider"); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(DropShadowExperimentPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); dxSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "dxSlider"); dySlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "dySlider"); sigmaXSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "sigmaXSlider"); sigmaYSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "sigmaYSlider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(ComposedPerlinNoisePage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); baseFrequencyXSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "baseFrequencyXSlider"); baseFrequencyXText = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "baseFrequencyXText"); baseFrequencyYSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "baseFrequencyYSlider"); baseFrequencyYText = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "baseFrequencyYText"); octavesStepper = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Stepper>(this, "octavesStepper"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MainPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); secondsTxt = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "secondsTxt"); timeTxt = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "timeTxt"); periodTxt = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "periodTxt"); alarmTxt = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "alarmTxt"); slider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.PancakeView.PancakeView>(this, "slider"); }
private void InitializeComponent() { global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(ColorAdjustmentPage)); canvasView = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::SkiaSharp.Views.Forms.SKCanvasView>(this, "canvasView"); hueSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "hueSlider"); hueLabel = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "hueLabel"); saturationSlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "saturationSlider"); saturationLabel = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "saturationLabel"); luminositySlider = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Slider>(this, "luminositySlider"); luminosityLabel = global::Xamarin.Forms.NameScopeExtensions.FindByName <global::Xamarin.Forms.Label>(this, "luminosityLabel"); }