Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.cs コーディングで stackPanels を作成する方法を教えてください。コーディングによって複数のスタック パネルを作成する必要があります。これに関して誰か助けてもらえますか?
メインページにスタックパネルへのコンテナが必要です。
Xaml
<Grid x:Name="LayoutRoot" Background="White" Width="500" Height="500"> </Grid>
コード
StackPanel sp = new StackPanel(); sp.Orientation = Orientation.Horizontal; //add something in your stack panel LayoutRoot.Children.Add(sp);