C # window visibility minimized and hidden

I have a quick question regarding the visibility of windows in an application. According to ... http://msdn.microsoft.com/en-us/library/system.windows.visibility.aspx (its short)

When the window is minimized, space is reserved for the window in the layout. When the window is hidden, space is reserved for the window in the layout.

I got confused here, what is it about in the layout? Does this apply to window space?

+4
source share
4 answers

Here is an illustration:

 <Grid>
        <TabControl>
            <TabItem Header="Visible"></TabItem>
            <TabItem Visibility="Hidden" Header="Hidden">Hidden</TabItem>
            <TabItem Visibility="Hidden" Header="Hidden">Hidden</TabItem>
            <TabItem Visibility="Hidden" Header="Hidden">Hidden</TabItem>
            <TabItem Header="Visible"></TabItem>
            <TabItem Header="Visible"></TabItem>
            <TabItem Header="Visible"></TabItem>
        </TabControl>
    </Grid>

Let's do this:
enter image description here

And this XAML:

<Grid>
    <TabControl>
        <TabItem Header="Visible"></TabItem>
        <TabItem Visibility="Collapsed" Header="Collapsed">Collapsed</TabItem>
        <TabItem Visibility="Collapsed" Header="Collapsed">Collapsed</TabItem>
        <TabItem Visibility="Collapsed" Header="Collapsed">Collapsed</TabItem>
        <TabItem Header="Visible"></TabItem>
        <TabItem Header="Visible"></TabItem>
        <TabItem Header="Visible"></TabItem>
    </TabControl>
</Grid>

You will see the following:

enter image description here

So, it Collapsedwill not save space, while it Hiddenwill.

+6
source

, , .

, ( 20 ), .

: , , , - , , 20 .

: ( 20 ), , .

+1

, . , , , "" "". "" , - " " , "" , .

0
source

A layout is basically the general placement of your controls on the form, so if it crashes, it means that it will be absent in the user interface and its place will be used by other controls, however, when it is hidden it will simply be invisible for the user, however, his place cannot be taken up by any other control that is simply not visible to the user.

0
source

All Articles