In default maps application there are control, that overflows other content on page. It's height can be changed by sliding up and sliding down this layout.
Is there way to implement that control?
P.S. sorry for my english
With a Grid or Canvas control you can overlay controls.
If you used a Grid control you would put all elements on the same Grid.Row but the order they appear in the XAML would determine their Z-Index. The control you want at the bottom could then be placed by setting the VerticalAlignment to Bottom.
Related
I have a question about my c# winform. When I enlarge my flow layout panel, I want my controls in it enlarge depends on my size of the flow layout panel. How can I do that?
For DataGridView changes with the size of the form,you could use control Control.Anchor Property.
Gets or sets the edges of the container to which a control is bound
and determines how a control is resized with its parent.
Set the property Anchor of the DataGridView to Top, Left, Right, and it will resize with the container. If your DataGridView is placed in a container (panel), then the panel should also be anchored.
I have some textblocks included in a scroll viewer. I don't want to use the horizontal scrollbar so I came up with this idea but I don't know how to do this.
If you're referring to Screen size as the immediate window or page or just view of whatever in XAML you can easily bind the TextBlock.Width to the ActualWidth of that hosting element.
If you're talking about the actual monitor screen size then you just need to create a ViewModel with that property exposed and then bind that the same way.
If you need code let me know.
TextBlock has a property called TextWrapping. This will allow you the data in your TextBlock Not to overflow but increase the Height of TextBlock Itself. Also make sure to set VerticalAlignment to Stretch.
I'm curious about Popup control in Windows Phone. For me, it's some kind of panel, that has IsOpen property. And I should used it, when i want to present some only in some defined context (e.g. button pressed).
But why not use just normal stack, or grid panel, and when use Visiblity when you want to hide, or show it? It's seems to behave the same.
You can change the Horizontal and Vertical position of the popup using the HorizontalOffset /VerticalOffset properties in the Popup control. We don't have that option in the Grid and to other panels.
It is an overlay. It doesn't break page layout as it shows above the main content.
While StackPanel or Grid should be added to main content and when they are shown they'll move other controls down.
Why does the WinForms SplitContainer hide all the Buttons in a Panel (in the left Splitter) when I resize on of its panels? Do I have to write specific code for invalidation of the Panel?
Yes, there's a solution. You can use Anchor property of SplitContainer in winforms. Using which you can set the value of the anchor as you required.
EDIT:
Anchor property will make your control fixed to the winforms design. Even if you resize the control, all the controls that the major control is holding will also resize according to it.
Is it easy to do sliding panels, such as the one show in this video, where the controls are populated dynamically but also expanded/collapsed when the user is clicking the panels. It also allows scrolling if the height of the visible panels is larger than the application height.
Yes.
To answer your next question, the sliding panels are used in your XAML just like any other panel. For some example controls, check this question