Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

Silverlight WrapPanelで要素を折り返しレイアウトする

WrapPanelで要素を折り返しレイアウトするサンプルです。

ソースコード

MainPage.xaml
<UserControl xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  x:Class="SilverlightApplication1.MainPage"
    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"
    d:DesignHeight="300" d:DesignWidth="400">

    <toolkit:WrapPanel>
        <CheckBox Content="チェックボックス1" />
        <CheckBox Content="チェックボックス2" />
        <CheckBox Content="チェックボックス3" />
        <CheckBox Content="チェックボックス4" />
        <CheckBox Content="チェックボックス5" />
        <CheckBox Content="チェックボックス6" />
        <CheckBox Content="チェックボックス7" />
        <CheckBox Content="チェックボックス8" />
        <CheckBox Content="チェックボックス9" />
        <CheckBox Content="チェックボックス10" />
    </toolkit:WrapPanel>
</UserControl>

レンダリング

関連エントリー

Silverlightエントリーのまとめ - プログラマーな日々
Silverlight関連のエントリーのまとめです。 ...