XAML
<TextBlock x:Name="textBlock" Margin="10,10,10,10"/>
C# Code
textBlock.Margin = new Thickness(10, 10, 10, 10);
Foreground
XAML
<TextBlock x:Name="textBlock" Foreground="#FF00FF"/>
C# code
textBlock.Foreground = new SolidColorBrush(Color.FromArgb(100, 255, 0, 255));
XAML
<TextBlock x:Name="textBlock" Foreground="#FF00FF"/>
C# code
textBlock.Foreground = new SolidColorBrush(Color.FromArgb(100, 255, 0, 255));
沒有留言:
張貼留言