-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Improve grid resizing in ConvertTo-WPFGrid #36
Comments
This should be handled in v2.4.0 |
As of v2.5.0 I'm satisfied with how the grid and form resize. It works as i expect it to. But I'll leave this issue open for a bit in case someone wants to convince me otherwise. |
One more issue is left. The form is still not resizable. What am I doing wrong? |
Do you get anything in the form? Have you tried with a different command like |
Also make sure your scriptroot isn't in a profile defined PSDrive. Or use Convert-Path instead of Resolve-Path. |
Yes my form is filled. just tested get-service | select name,status,displayname | convertto-wpfgrid |
if I dont use var import the form can be resizable horizontally. |
If you grab the lower right corner of the form you should be able to drag and resize in any direction. |
Now it is true. Such a resizing style is so tricky :-)) |
I've set a maximum size to be a percentage of the totally available screen space. You can click the maximize windows control icon in the top right. if you have more data than that then you'll need to live with the scroll bars. |
Maximize control does nothing useful. Maximum window size is limited in your function. The window size should match data size. If the data fit in the window it cannot be maximized. If the data does not fit in the screen the window can be resized any direction with data size in mind. I have no idea if WPF form can be configured that way. |
Removing the limits make the form ugly to work. If you have a lot of data to display, more than will fill your available screen space, the edges of the form bleed off and it is tricky to grab something to resize. I suppose I could look at increasing the max size of the form. I think I have some work to work with. |
I increased the max form size in v2.6.0 which I think is about the best I can do with sizing issues. |
works perfect. |
I think this will modify it $datagrid.GridLinesVisibility =[system.windows.controls.datagridGridLinesVisibility]::All |
I can see where that might make a nice cosmetic difference. |
I've added a parameter which you'll see in v2.7.0 |
I think I've done about all I can on resizing issues for now. |
When resizing the form the grid should resize with it.
The text was updated successfully, but these errors were encountered: