この手順では、最初に Visual Studio で TreeView for UWP を使用する アプリケーションを作成します。
次の手順に従います。
<Grid>
タグと <Grid>
タグの間にカーソルを置き、1回クリックします。マークアップ |
コードのコピー
|
---|---|
<Page xmlns:Xaml="using:C1.Xaml" x:Class="C1TreeViewQuickStart.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:C1TreeViewQuickStart" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"> <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"> <Xaml:C1TreeView /> </Grid> </Page> |
<Xaml:C1TreeView>
タグがプロジェクトに追加されています。
x:Name="Tree"
を <Xaml:C1TreeView>
タグに追加してグリッドに名前を付けてから終了タグを追加します。次のようになります。
マークアップ |
コードのコピー
|
---|---|
<Xaml:C1TreeView x:Name="Tree"></Xaml:C1TreeView> |
これで、C1TreeView コントロールを含む Windows Store アプリケーションが作成されました。次の手順では、C1TreeView コントロールの外観と動作をカスタマイズします。