Hello,
I have a project with a XamTileManager.
I want to setup a layout by using XamTileManager.Items.Count and set row/column.
The aim is to reproduce the Organization -> Tiles Settings like in your samples browser.
If there are 3 minimizes at the left, and the user double click on the last XamTile maximize, all tiles are horizontal.
I don't want a vertical or horizontal display, I want a cross display.
Could you help me to achieve the setup of my configuration ?
Regard
Thank you for choosing Infragistics.
I have been looking into your issue and would you please provide me with more detailed information in regards to the cross-display you have mentioned you would like to use? How would you like your layout to look like before and after double-clicking on the last XamTile? Having this information would help me further investigate this matter for you.
Looking forward to your reply.
The layout is link with title size.
So I setup in code behind prefered size and maz size, and now each element are display in cross layout.
Regards
Thank you for your feedback.
Would you please provide me with a sample, where a basic implementation of a cross-layout is used regardless of the control. This would really help me with my investigation.
I attach a project with a cross layout.
If you maximize the tile A, 3 are collapsed. After, you maximize B and C.
All tiles are in a list, and I want 2 lines, with A/B + C after. Like here : http://i.imgur.com/acX5k3p.png
Increase the width to have this layout.
Second issue : if I have only one tile, I want to disable the close button and the maximize.
Third : If it's not possible to hide the maximize button, how to disable this move : https://gyazo.com/5da13e1fbf351778aa47f2949587d6e4
Maybe the minimized tiles area if visible but empty
How to fix these issues ?
Thank you for the feedback.
I have been looking further into your issue and I was able to reproduce the layout you have described in the Organization -> Tile Settings sample from our Samples Browser only on specific monitors with a specific resolution. In this case the settings in the sample are dpi resolution dependent.
An approach I can suggest you use is to use specific Row and Column definitions in order to arrange the tiles in the desired order. Another approach I can suggest you is to explicitly arrange your tiles as it is described with a sample at the following link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2015.2/CLR4.0/html/xamTileManager_Explicitly_Arrange_Tiles.html
In order to collapse the Maximize/Close button Visibility, you can use the MaximizeButtonVisibility and the CloseButtonVisibility properties of each XamTile.
Please note that hard-coding the values for the tiles may produce unexpected behavior when resizing the window and perform other external actions in regards to your behavior.
If you require any further assistance on this matter, please do not hesitate to ask.
I try to set the visibility of the MaximizeButton but I can't find the event when I can set this.
For the tile Row and Column, I attached a sample.
I create a custom control to have SelectedItem property and I can't set row/column.
I have the same config in my soft, and I don't have any errors.
Thanks for your help
Thank you for the feedback and the sample you have provided.
I have created a sample application for you to test and see if the desired behavior is achieved.
In order to disable the maximize and close buttons when you have only one tile, you can use the TileClosed event as I have in the sample I have attached. You can also take a look at the TileStateChanged event which fires whenever a tile has changed its state.
In order for the explicit tile arrangement to work in your sample, you should set the TileLayoutOrder property of the NormalModeSettings to UseExplicitRowColumnOnTile. Please note that this particular arrangement will be applied when the XamTileManager is in NormalMode and the tiles are not maximized. If you are manually setting the arrangement, all tiles should be provided with a definition for the position they would occupy.
The reason for the issue you have described in regards to not being able to set the Row/Column arrangement is because the name of your XamTileManager's instance is the same as the name of the inherited class (XamTileManager), which causes an ambiguous meaning when invoking static methods. I can suggest you set the name of your CustomTileManager to something a bit more distinct (For example: "tileManager1").
Maximizing the window of the application or the tiles could lead to different layout results because of the particular dpi resolution.
If you require any further assistance on this matter, please let me know.
After looking further into your issue, I would recommend you submitting a product idea in regards to the ability of achieving the cross layout you have described. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
The cross layout and the ability to explicitly arrange tiles that are in a maximized state are not built-in functionalities of the XamTileManager. The control's tiles can be explicitly arranged only when they are in NormalMode. When a tile is in a maximized state, the default and by design behavior is to arrange itself and take as much space as possible according to the rest of the maximized tiles and the MaximizedModeSettings. Hard-coding the size of the tiles may lead to unexpected behavior because of the window's resizing and the possibility of closing certain tiles.
Thanks for your project.
On my software, itemsSource is a list from my viewModel, so I put the LoadedCode to the AnimationEnded event.
My tiles content have same sizes, but when I maximize some and open 2 or 3 maximized, they are always horizontal and not like a cross.
I copy/paste settings from your code and I have this behavior and not a cross. FYI, tiles Content are polar and xamDataGrid and a 3DViewer.
I try to set positions and width in code behind with some events, and it's not working well.
Could you help me to find the event to change my code ?
I know that the code will test maximizedItems.Count and try to set the colum/row parameters.
I try the stateChanged, sizeChanged but it's not working.