Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Grid Name="parent" Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="465,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeOne" Visibility="{Binding Strikes[0], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
- <Grid Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="543,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeTwo" Visibility="{Binding Strikes[1], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
- <Grid Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="621,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeThree" Visibility="{Binding Strikes[2], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
- <Grid Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="699,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeFour" Visibility="{Binding Strikes[3], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
- <Grid Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="777,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeFive" Visibility="{Binding Strikes[4], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
- <Grid Background="#FFF4F4F5" HorizontalAlignment="Left" Height="60" Margin="855,170,0,0" VerticalAlignment="Top" Width="60">
- <Border BorderBrush="Black" BorderThickness="1" />
- <Grid Name="strikeSix" Visibility="{Binding Strikes[5], UpdateSourceTrigger=PropertyChanged}">
- <Line X1="0" Y1="0" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="{Binding ElementName='parent', Path='ActualHeight'}" Stroke="Red" StrokeThickness="4" />
- <Line X1="0" Y1="{Binding ElementName='parent', Path='ActualHeight'}" X2="{Binding ElementName='parent', Path='ActualWidth'}" Y2="0" Stroke="Red" StrokeThickness="4" />
- </Grid>
- </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement