निम्न कोड शीर्ष पर दो टेक्स्ट तत्व डालता है, भले ही दूसरा को "नीचे" चिह्नित किया गया हो। पृष्ठभूमि का रंग नीचे तक जाता है ताकि डॉकपैनल नीचे तक फैलता प्रतीत होता है।डॉकपैनेल.डॉक = "नीचे" शीर्ष पर तत्व क्यों डालता है?
मुझे डॉकपैनेल के बारे में क्या समझ नहीं रहा है?
<Window x:Class="TestIndexer934.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:c="clr-namespace:TestIndexer934.Commands"
Title="Main Window" Height="400" Width="800">
<DockPanel HorizontalAlignment="Left" Background="Beige">
<TextBlock DockPanel.Dock="Top" Text="Testing top"/>
<TextBlock DockPanel.Dock="Bottom" Text="Testing bottom"/>
</DockPanel>
</Window>
यहां मामला काफी संभावना है। देखें: http://msdn.microsoft.com/en-us/library/system.windows.controls.dockpanel.lastchildfill.aspx –
धन्यवाद, यह काम करता है, मुझे यह विशेषता देखने को याद है, अब पता है कि यह क्या है –