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.
StackPanelに表示される子の順序を逆にしようとしています。(アプリの実行中に)新しい子をリストの下部ではなく上部に追加できるようにしたい。さまざまなXAMLコードを使用してみましたが、何も機能しませんでした。
これを行う最も簡単な方法は何ですか?
使用する:
stackPanel.Children.Insert(0, uiElement);
これにより、リストの先頭に要素が挿入されます。
ソース