<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="550" Width="419">
<Window.Resources>
<Style TargetType="Image">
<Setter Property="Width" Value="120" />
<Setter Property="Margin" Value="5" />
</Style>
<Style TargetType="ListBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ListBox">
<Border BorderThickness="1" BorderBrush="Black">
<ScrollViewer>
<StackPanel IsItemsHost="True" Orientation="Vertical"/>
</ScrollViewer>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Grid>
<StackPanel Margin="93,32,98,0" Height="441" VerticalAlignment="Top">
<Label FontSize="30" HorizontalAlignment="Center">Image List</Label>
<ListBox Width="155" HorizontalAlignment="Center" Height="385">
<Image Source="Humpback Whale.jpg" />
<Label FontSize="12" HorizontalAlignment="Center">Humpback Whale</Label>
<Image Source="Oryx Antelope.jpg" />
<Label FontSize="12" HorizontalAlignment="Center">Oryx Antelope</Label>
<Image Source="Toco Toucan.jpg" />
<Label FontSize="12" HorizontalAlignment="Center">Toco Toucan</Label>
<Image Source="Green Sea Turtle.jpg" />
<Label FontSize="12" HorizontalAlignment="Center">Green Sea Turtle</Label>
</ListBox>
</StackPanel>
</Grid>
</Window>
標籤雲
visual basic 2008
(157)
訊息分享
(111)
Visual Studio 2008
(64)
wpf
(37)
每日一句
(35)
cpp
(30)
python
(26)
Silverlight
(22)
C++
(18)
Network Security
(15)
全國技藝競竇
(14)
好文分享
(11)
.Net
(10)
Blogger
(10)
名詞解釋
(10)
研討會
(10)
Excel
(9)
書籍介紹
(9)
每日一小品
(9)
電腦黑白講
(8)
Visual Studio 201X
(7)
分享
(7)
網頁設計
(7)
CSS
(5)
Algorithm
(4)
Network
(3)
PHP
(3)
Access
(2)
SA
(2)
VB.Net
(2)
VBA
(2)
WireShark
(2)
Word
(2)
php html
(2)
其他好東東
(2)
分類整理
(2)
Asp.Net
(1)
Batch
(1)
Blockly
(1)
IT News
(1)
OpenAI
(1)
SE
(1)
W7
(1)
Writer
(1)
app inv2
(1)
dfs
(1)
vex vr sample
(1)
影像處理練習
(1)
黑白講
(1)
2008年12月6日 星期六
wpf程式設計--圖形版的List
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言