Skip to content

Instantly share code, notes, and snippets.

View jesusdesantos's full-sized avatar

Jesus de Santos Garcia jesusdesantos

View GitHub Profile
<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"/>
@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>
@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: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: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:02
Right-To-Left TextBlock
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<StackPanel>
<TextBlock Background="DarkBlue" Foreground="LightBlue" FontSize="20" FlowDirection="LeftToRight">
This is a Left-To-Right TextBlock
</TextBlock>
<TextBlock Background="LightBlue" Foreground="DarkBlue" FontSize="20" FlowDirection="RightToLeft">
هذا كتلة نصية من اليمين إلى اليسار
</TextBlock>
</StackPanel>
</Page>
@jesusdesantos
jesusdesantos / Main.xaml
Last active December 23, 2021 10:40 — forked from s-fernandez-v/Main.xaml
Christmas '21
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
Background="White">
<Viewbox>
<Canvas Width="1480" Height="1480" Background="Transparent" Margin="0,0,0,-200">
<Canvas.Resources>
<Storyboard x:Key="AnimLogo">
@jesusdesantos
jesusdesantos / Main.xaml
Created February 21, 2020 18:50
HelloWorld
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HelloWorld"
mc:Ignorable="d"
FontSize="24"
Background="#FF124C7A">
@jesusdesantos
jesusdesantos / Main.xaml
Last active February 21, 2020 19:00
Coding Ape
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
Background="Black"
d:DesignWidth="758" d:DesignHeight="460">
<Grid.Resources>
<Storyboard x:Key="anim" Duration="0:0:2.48">
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="RenderTransform.Y" Storyboard.TargetName="Layer20">