Skip to content

Stack Panels/Views on top of each other #15400

Closed Answered by CodeDevAM
CodeDevAM asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for the feedback!

I came up with this solution:

StackView.axaml:

<UserControl 
	xmlns="https://github.com/avaloniaui"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:vm="using:StackedPages.ViewModels"
	x:Class="StackedPages.Views.StackView"
	x:DataType="vm:StackViewModel">
	
	<Grid
		ColumnDefinitions="1*"
		RowDefinitions="1* ,Auto">

		<Panel
			Grid.Column="0"
			Grid.Row="0"
			Name="VisibleViewPanel">
		</Panel>

		<Button
			Grid.Column="0"
			Grid.Row="1"
			Content="X"
			IsEnabled="{Binding CanClose}"
			Command="{Binding C…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by CodeDevAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants