|
<Window x:Class="SmallWPF.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="SmallWPF" Height="339" Width="454" xmlns:my="clr-namespace:System;assembly=mscorlib">
<Grid>
<Border BorderBrush="White" BorderThickness="5" HorizontalAlignment="Center"
VerticalAlignment="Top">
<ListBox Width="200" Height="200" Name="listBox1" >
<ListBoxItem>Hello,</ListBoxItem>
<ListBoxItem IsSelected="True">how are you?</ListBoxItem>
<ListBoxItem>This</ListBoxItem>
<ListBoxItem>is</ListBoxItem>
<ListBoxItem>a</ListBoxItem>
<ListBoxItem>3D</ListBoxItem>
<ListBoxItem>ListBox!</ListBoxItem>
</ListBox>
<Border.BitmapEffect>
<BitmapEffectGroup>
<DropShadowBitmapEffect Color="Black"
Direction="{Binding ElementName=MySlider4, Path=Value}"
ShadowDepth="{Binding ElementName=MySlider5, Path=Value}"
Softness="1" Opacity="0.5"/>
</BitmapEffectGroup>
</Border.BitmapEffect>
<Border.RenderTransform>
<TransformGroup>
<SkewTransform CenterX="0" CenterY="0"
AngleX="{Binding ElementName=MySlider1, Path=Value}"
AngleY="{Binding ElementName=MySlider2, Path=Value}" />
<RotateTransform Angle="{Binding ElementName=MySlider3, Path=Value}" />
</TransformGroup>
</Border.RenderTransform>
</Border>
<Slider Height="21" Margin="42,0,0,43" Name="MySlider1" VerticalAlignment="Bottom"
HorizontalAlignment="Left" Width="104" Minimum="0" Maximum="50" />
<Slider Height="21" Margin="184,0,158,43" Name="MySlider2" VerticalAlignment="Bottom"
Width="104" Minimum="0" Maximum="50" />
<Slider Height="21" Margin="0,0,33,43" Name="MySlider3" VerticalAlignment="Bottom"
HorizontalAlignment="Right" Width="104" Minimum="0" Maximum="50" />
<Slider Height="21" Margin="42,0,0,15" Name="MySlider4" VerticalAlignment="Bottom"
Width="104" Minimum="0" Maximum="200" HorizontalAlignment="Left" />
<Slider Height="21" Margin="184,0,158,13" Name="MySlider5" VerticalAlignment="Bottom"
Width="104" Minimum="0" Maximum="100" />
</Grid>
</Window>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
The languages I know best are: C, C++, C#, Assembly (x86, x64, ARM), MSIL, Python, Lua. The environments I frequently use are: Qt, Win32, MFC, .NET, WDK. I'm a developer and a reverse engineer and I like playing around with internals.
You can find most of my work at
http://ntcore.com.