This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AIPage : ContentPage | |
{ | |
public AIPage() | |
{ | |
StackLayout mainStack = new StackLayout(); | |
StackLayout textStack = new StackLayout | |
{ | |
Padding = new Thickness(5), | |
Spacing = 10 | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Text; | |
using Xamarin.Forms; | |
namespace App1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FramedText : ContentPage | |
{ | |
public FramedText() | |
{ | |
BackgroundColor = Color.Aqua; | |
Content = new Frame | |
{ | |
OutlineColor = Color.Black, | |
BackgroundColor = Color.Yellow, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FramedText : ContentPage | |
{ | |
public FramedText() | |
{ | |
Padding = new Thickness(20); | |
Content = new Frame | |
{ | |
OutlineColor = Color.Accent, | |
Content = new Label | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ReflectedRenkler : ContentPage | |
{ | |
public ReflectedRenkler() | |
{ | |
StackLayout stackLayout = new StackLayout(); | |
// Döngü sayesinde renk yapısı alanları. | |
foreach (FieldInfo info in typeof(Color).GetRuntimeFields()) | |
{ | |
// Eski (yani hatalı yazıldı) renkleri atlayın. | |
if (info.GetCustomAttribute<ObsoleteAttribute>() != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RenkDongusu : ContentPage | |
{ | |
public RenkDongusu() | |
{ | |
var colors = new[] | |
{ | |
new { value = Color.White, name = "White" }, | |
new { value = Color.Silver, name = "Silver" }, | |
new { value = Color.Gray, name = "Gray" }, | |
new { value = Color.Black, name = "Black" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public NamedFontSizes() | |
{ | |
FormattedString formattedString = new FormattedString(); | |
NamedSize[] namedSizes = | |
{ | |
NamedSize.Default, NamedSize.Micro, NamedSize.Small, | |
NamedSize.Medium, NamedSize.Large | |
}; | |
foreach (NamedSize namedSize in namedSizes) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content = new Label | |
{ | |
FormattedText = new FormattedString | |
{ | |
Spans = | |
{ | |
new Span | |
{ | |
Text = "Ben ve " | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FormattedString formattedString = new FormattedString(); | |
formattedString.Spans.Add(new Span | |
{ | |
Text = "Ben ve " | |
}); | |
formattedString.Spans.Add(new Span | |
{ | |
Text = "Xamarin", | |
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), | |
FontAttributes = FontAttributes.Bold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class formis : ContentPage | |
{ | |
public formis() | |
{ | |
Content = new Label | |
{ | |
Text = "Selam, Xamarin.Forms!", | |
HorizontalOptions = LayoutOptions.Center, | |
VerticalOptions = LayoutOptions.Center, | |
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), |
NewerOlder