-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathZoomWindow.xaml
More file actions
15 lines (14 loc) · 1.28 KB
/
ZoomWindow.xaml
File metadata and controls
15 lines (14 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<Window x:Class="WpfDemo.ZoomWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Height="120" Width="260" Title="ZoomImage" WindowStartupLocation="CenterOwner" ResizeMode="CanMinimize">
<Grid>
<Label Margin="25,10,0,0" Name="label1" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left">Zoom Ratio:</Label>
<TextBox Margin="100,13,0,0" Name="tbRatio" Height="22" VerticalAlignment="Top" HorizontalAlignment="Left" Width="40" TextAlignment="Center"/>
<Label Margin="140,10,0,0" Name="label2" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left">%</Label>
<Label Margin="160,10,0,0" Name="label3" Content="(2%~6500%)" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left"/>
<Button Margin="35,0,0,15" Name="button1" Click="OK_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="74">OK</Button>
<Button Margin="0,0,31,15" Name="button2" Click="Cancel_Click" Height="23" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="74">Cancel</Button>
<Label Margin="0,30,0,28" Name="lbHint" FontSize="11" Foreground="Red" VerticalAlignment="Top" HorizontalAlignment="Center"/>
</Grid>
</Window>