Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom MinWidth of Start Screen (LeftContent) #478

Closed
kalatchev opened this issue Oct 1, 2017 · 4 comments
Closed

Custom MinWidth of Start Screen (LeftContent) #478

kalatchev opened this issue Oct 1, 2017 · 4 comments
Assignees
Milestone

Comments

@kalatchev
Copy link
Contributor

How can I set the width of LeftContent of StartScreen?

I digged trough the source code, but I didn't succeed to realize how I can set the width of LeftContent in StartScreen. I saw that it inherits Backstage control. Left side of Backstage control seems to me much narrowly than same in Start Content. However, I would like to have smaller left content, and generally I would like to control the widht of it.


Environment

  • Fluent.Ribbon v5.0.2.46
  • Windows 10
  • .NET Framework 4.5.2
@batzen
Copy link
Member

batzen commented Oct 4, 2017

Will have a look at this as soon as i have some spare time.

@kalatchev
Copy link
Contributor Author

In fact, of course, it is possible with enumeration of the visual tree and set it manually, as follow:

Dim g As Grid = XAMLHelpers.FindStartScreenGrid(Me)
g.ColumnDefinitions(0).MinWidth = 200

where FindStartScreenGrid is recursive function for finding right grid. One of the problems is that Start Screen's grid has no some unique name, such as PART_StartScreenGrid or something like that. So even enumeration of visual tree is unreliable. The second is that such workaround is kind of hack, than normal use of control.

IMHO we should make two changes:

  • Add property like LeftContentWidth
  • Set intrinsic name of the grid like PART_xyz for firther use

@kalatchev
Copy link
Contributor Author

In fact, of course, it is possible with enumeration of the visual tree and set it manually, as follow:

Dim g As Grid = XAMLHelpers.FindStartScreenGrid(Me)
g.ColumnDefinitions(0).MinWidth = 200

where FindStartScreenGrid is recursive function for finding right grid. One of the problems is that Start Screen's grid has no some unique name, such as PART_StartScreenGrid or something like that. So even enumeration of visual tree is unreliable. The second is that such workaround is kind of hack, than normal use of control.

IMHO we should make two changes:

  • Add property like LeftContentWidth
  • Set intrinsic name of the grid like PART_xyz for firther use

@kalatchev kalatchev reopened this Oct 4, 2017
@batzen batzen self-assigned this Oct 9, 2017
@batzen batzen added this to the 6.0.0 milestone Oct 9, 2017
@batzen batzen changed the title Custom width of Start Screen (LeftContent)? Custom MinWidth of Start Screen (LeftContent) Oct 9, 2017
@batzen batzen closed this as completed in 7094340 Oct 9, 2017
@Aitania
Copy link

Aitania commented Mar 15, 2018

just use <fluent:SeparatorTabItem MinWidth="111"/> if you don't want to update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants