Skip to content

Instantly share code, notes, and snippets.

View jesusdesantos's full-sized avatar

Jesus de Santos Garcia jesusdesantos

View GitHub Profile
@jesusdesantos
jesusdesantos / Main.xaml
Created November 3, 2022 10:09
Right-To-Left Span
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<StackPanel Margin="1">
<StackPanel Background="DarkBlue">
<TextBlock FontSize="20" FlowDirection="RightToLeft">
<Run FlowDirection="LeftToRight" Foreground="LightBlue">العالم</Run>
<Run FlowDirection="LeftToRight" Foreground="Red">فى سلام</Run>
</TextBlock>
<TextBlock FontSize="20" FlowDirection="LeftToRight">
<Run FlowDirection="RightToLeft" Foreground="LightBlue">العالم</Run>
<Run FlowDirection="RightToLeft" Foreground="Red">فى سلام</Run>
@jesusdesantos
jesusdesantos / Main.xaml
Created November 3, 2022 10:12
Right-To-Left ToolBar
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<ToolBar FlowDirection="RightToLeft" Height="50" DockPanel.Dock="Top">
<ToolBar.Background>
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,1">
<LinearGradientBrush.GradientStops>
<GradientStop Color="DarkRed" Offset="0" />
<GradientStop Color="DarkBlue" Offset="0.3" />
<GradientStop Color="LightBlue" Offset="0.6" />
<GradientStop Color="White" Offset="1" />
</LinearGradientBrush.GradientStops>
@jesusdesantos
jesusdesantos / Main.xaml
Created November 3, 2022 10:14
Right-To-Left UniformGrid
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<UniformGrid Rows="2" Columns="4" FlowDirection="RightToLeft">
<Label Content="1" Background="Black"/>
<Label Content="2" Background="DarkGray"/>
<Label Content="3" Background="Teal"/>
<Label Content="4" Background="Navy"/>
<Label Content="5" Background="DarkOrchid"/>
<Label Content="6" Background="Maroon"/>
<Label Content="7" Background="DodgerBlue"/>
<Label Content="8" Background="IndianRed"/>
@jesusdesantos
jesusdesantos / Main.xaml
Created November 3, 2022 10:26
Right-To-Left Path
<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
FlowDirection="RightToLeft">
<Path Stroke="Blue" StrokeThickness="4"
Data="M300,10L350,30M10,30L352,30M300,50L350,30"/>
<Path Stroke="Red" StrokeThickness="4"
Data="M300,10L350,30M10,30L352,30M300,50L350,30"
FlowDirection="RightToLeft"/>
@jesusdesantos
jesusdesantos / Main.xaml
Created November 3, 2022 10:20
Right-to-left Image
<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Orientation="Horizontal" FlowDirection="RightToLeft">
<Image Source="House.jpg" Margin="5"/>
<Image Source="House.jpg" Margin="5" FlowDirection="RightToLeft"/>
</StackPanel>
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Border Width="400" VerticalAlignment="Center" Background="SkyBlue" Padding="8">
<Grid Background="LightBlue">
<Grid HorizontalAlignment="Left">
<TextBlock Text="Team Name" VerticalAlignment="Top" FontSize="18"/>
<TextBlock Text="11 / 11 Alive players" VerticalAlignment="Bottom"/>
</Grid>
<TextBlock Text="24" HorizontalAlignment="Right" FontSize="70" Margin="0,-20,0,-18"/>