question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: What is the best way to build an Excel like layout?

See original GitHub issue

Hello!

I am finding a way to build an “Excel like” layout.

image

The key features of that scenario is:

  • Left content should be vertically scrolled synchronously with a main content. At the same time it should not be scrolled horizontally (fixed columns in Excel)
  • Top content should be horizontally scrolled but not vertically.
  • The scroll bars can be anywhere.

For-example, the horizontal scrollbar on Excel`s screen bellow is not fit the whole width.

image

My first solution I tried was a grid with two panels for the Left and Top content, and a ScrollViewer with an ItemsRepeater for the main content. I invalidate the panel`s measure on ScrollViewer.ViewChanged event and perform the layout in each panels on measure pass according to the current RealizationRect. This approach looks like work, but now I need to change the position of the scrollbars.

To do this I am going to change the template of the ScrollViewer. But now I think, is there any best solution to do this? Am I going true way?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
michael-hawkercommented, Sep 28, 2020

@Sergio0694 added some ScrollViewer extensions in the last version of the Toolkit which I think may be helpful here?

1reaction
Sergio0694commented, Sep 29, 2020

@BorzillaR Here’s the sample from that GIF I posted, hope this helps! 😄

GridScrollerSample.zip

Read more comments on GitHub >

github_iconTop Results From Across the Web

Guidelines for organizing and formatting data on a worksheet
Data organization guidelines · Put similar items in the same column Design the data so that all rows have similar items in the...
Read more >
Excel templates: how to make and use
In the workbook that you want to become your default Excel template, click File > Save As. · In the Save as type...
Read more >
Excel Tips & Tricks: Designing Better Spreadsheets - YouTube
Good spreadsheet design is essential if your Excel workbooks are going ... in Excel - How to protect an Excel workbook or worksheet...
Read more >
14 Excel Formatting Tips (Make Excel BEAUTIFUL!) - YouTube
Here's a topic I've avoided for some time. That's because what looks ' good ' is a matter of opinion, right ? What...
Read more >
How to create an elegant, fun & useful tracker with Excel
ExcelTracker #CreateTrackerSpreadsheet Do you want to create a cool, useful and simple tracker with Excel ? You can use Excel Tables, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found