Skip to content

Instantly share code, notes, and snippets.

View SamedBll's full-sized avatar

Samed SamedBll

  • Türkiye
View GitHub Profile
public class EmpiricalFontSizePage : ContentPage
{
Label label;
public EmpiricalFontSizePage()
{
label = new Label();
Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);
ContentView contentView = new ContentView
{
Content = label
struct FontCalc
{
public FontCalc(Label label, double fontSize, double containerWidth)
: this()
{
// Yazı tipi boyutunu kaydedin.
FontSize = fontSize;
// Label yüksekliğini yeniden hesaplayın.
label.FontSize = fontSize;
SizeRequest sizeRequest =
public class ErişebilirlikTestPage : ContentPage
{
public ErişebilirlikTestPage()
{
Label testLabel = new Label
{
Text = "FontSize 20" + Environment.NewLine + "20 karakter arasında",
FontSize = 20,
HorizontalTextAlignment = TextAlignment.Center,
HorizontalOptions = LayoutOptions.Center,
@SamedBll
SamedBll / FitClock.cs
Created September 19, 2017 16:20
B(C) - 24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using Xamarin.Forms;
namespace Clock
{
public class TahminiFontSizePage : ContentPage
{
Label label;
public TahminiFontSizePage()
{
label = new Label();
Padding = new Thickness(0, Device.OnPlatform(20, 0, 0), 0, 0);
ContentView contentView = new ContentView
{
Content = label
@SamedBll
SamedBll / Main.axml
Created August 27, 2017 17:29
Face Detection M-D v1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/topLayout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true">
<VisionSample.CameraSourcePreview
android:id="@+id/preview"
android:layout_width="match_parent"
@SamedBll
SamedBll / MainActivity.cs
Created August 27, 2017 17:21
Face Detection M-D v1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
@SamedBll
SamedBll / FontSizesPage.cs
Created August 24, 2017 03:33
B(C) - 22 (2)
public class FontSizesPage : ContentPage
{
public FontSizesPage()
{
BackgroundColor = Color.White;
StackLayout stackLayout = new StackLayout
{
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center
};
@SamedBll
SamedBll / MetricBoxViewPage.cs
Last active August 24, 2017 03:28
B(C) - 22
public class MetricBoxViewPage : ContentPage
{
public MetricBoxViewPage()
{
Content = new BoxView
{
Color = Color.Accent,
WidthRequest = 64,
HeightRequest = 160,
HorizontalOptions = LayoutOptions.Center,
@SamedBll
SamedBll / BoyutuNe.cs
Created August 19, 2017 10:52
B(C) 21
public class BoyutuNePage : ContentPage
{
Label label;
public BoyutuNePage()
{
label = new Label
{
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)),
HorizontalOptions = LayoutOptions.Center,
VerticalOptions = LayoutOptions.Center