Git Product home page Git Product logo

Comments (3)

KentSwan avatar KentSwan commented on May 28, 2024

Some more info. In the design viewer, the TreeDataGrid shows the treedatagrid's vertical scroll bars in the viewable collapsed state and allows mouse thumb scrolling but when I run the app in debug mode in VS2022 the scrollbars are not present. I'm running everything at the current version levels including the TreeDataGrid package from Nuget which is after the latest theme changes to bases styled controls on a generic base theme.

from avalonia.controls.treedatagrid.

KentSwan avatar KentSwan commented on May 28, 2024

More information. In VS2022 the scrollbars show up and work in the axaml designer window of the individual views but when those views are installed in a TabControl's TabItem content in MainWindow, the views scroll bars don't show up.

The control axaml setup in the MainWindow view is as follows.


	<StackPanel>
		<Border BorderBrush="Black"
				BorderThickness="1"
				Background="AliceBlue">
			<TextBlock Text="{Binding Greeting}"
					   FontWeight="Bold"
					   HorizontalAlignment="Center"/>
		</Border>

		<TabControl>
			<TabItem Header="Countries">
				<v:CountriesPageView/>
			</TabItem>
			<TabItem Header="Files">
				<v:FilesPageView/>
			</TabItem>
			<TabItem Header="DragDrop">
				<v:DragDropPageView/>
			</TabItem>
			<TabItem Header="Wikipedia">
				<v:WikipediaPageView/>
			</TabItem>
		</TabControl>

	</StackPanel>

from avalonia.controls.treedatagrid.

KentSwan avatar KentSwan commented on May 28, 2024

Well, I think I found the interference problem. In the current Avalonia UI, the scroll bars of a TreeDataGrid control will be suppressed if the control is a control inside of a stack panel, apparently at any nested level. NFC as how or why that occurs or if it's an inherent UI design constraint related to Stack Panels. (NFC is short for No F***ing Clue) For this reason, I'm switching my demo over to using a Dock on the main window with a top dock to handle the header and the tabbed views below that.

from avalonia.controls.treedatagrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.