DarkAnubis
Bekanntes Mitglied
- Dabei seit
- 04.12.2006
- Beiträge
- 433
- Reaktionspunkte
- 0
Wie überlagert man Grids ohne das sie die funktion verlieren
Also ich habe mehrere Grids
wenn ich dann auf einen Button klicke sollte immer nur einer zu sehen sein und auch nur die Buttons und ComboBoxen funktionieren von diesem einen Grid
Die anderen sollten invisible und eben deaktiviert sein
hab es ganz am anfang mit Opacity = 0 und es hat soweit funktioniert
das die anderen nicht sichtbar mehr waren
nur ich hatte das problem das wenn ich irgendwo hinklicke wo ein invisible grid war das ich dann bzw dessen combobox aktiviert habe
dann hab ich alle grids die invisible waren mit isEnable=false gesetzt
nur jetzt funktioniert auch der grid der visible ist und isenable = true auch nicht mehr dh die comboboxen kann ich nicht anklicken und in auch in die textboxen nichts reinschreiben
hier ein auszug:
ist jetzt nur ein Grid. Die anderen sind fast genauso aufgebaut.
Also ich habe mehrere Grids
wenn ich dann auf einen Button klicke sollte immer nur einer zu sehen sein und auch nur die Buttons und ComboBoxen funktionieren von diesem einen Grid
Die anderen sollten invisible und eben deaktiviert sein
hab es ganz am anfang mit Opacity = 0 und es hat soweit funktioniert
das die anderen nicht sichtbar mehr waren
nur ich hatte das problem das wenn ich irgendwo hinklicke wo ein invisible grid war das ich dann bzw dessen combobox aktiviert habe
dann hab ich alle grids die invisible waren mit isEnable=false gesetzt
nur jetzt funktioniert auch der grid der visible ist und isenable = true auch nicht mehr dh die comboboxen kann ich nicht anklicken und in auch in die textboxen nichts reinschreiben
hier ein auszug:
ist jetzt nur ein Grid. Die anderen sind fast genauso aufgebaut.
Code:
<Grid Grid.Row="2" Name="grid_film" Opacity="1" IsEnabled="True">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Content="Titel" Grid.Column="0" Grid.Row="0" Margin="0,0,0,8"></Label>
<TextBox Grid.Column="1" Margin="0,0,50,8"></TextBox>
<Label Content="Laufzeit" Grid.Column="0" Grid.Row="1" Margin="0,0,0,8"></Label>
<TextBox Grid.Column="1" Grid.Row="1" Margin="0,0,230,8"></TextBox>
<Label Content="Minuten" Grid.Column="1" Grid.Row="1" Margin="45,0,0,0"></Label>
<Label Content="Erscheinungsjahr" Grid.Column="0" Grid.Row="2" Margin="0,0,0,8"></Label>
<TextBox Grid.Column="1" Grid.Row="2" Margin="0,0,230,8"></TextBox>
<Label Content="Altersfreigabe" Grid.Column="0" Grid.Row="3" Margin="0,0,0,8"></Label>
<ComboBox Grid.Column="1" Grid.Row="3" Margin="0,0,50,8"></ComboBox>
<Label Content="Genere" Grid.Column="0" Grid.Row="4" Margin="0,0,0,8"></Label>
<ComboBox Grid.Column="1" Grid.Row="4" Margin="0,0,50,8"></ComboBox>
<Label Content="Qualität" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5" Margin="0,0,0,8"></Label>
<Grid Name="grid_qualität" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="6" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Content="Ton" Grid.Column="0" Margin="0,0,8,0"></Label>
<ComboBox Grid.Column="1" Margin="0,0,17,8" MinWidth="40">
<ComboBoxItem Content="1"></ComboBoxItem>
<ComboBoxItem Content="2"></ComboBoxItem>
<ComboBoxItem Content="3"></ComboBoxItem>
<ComboBoxItem Content="4"></ComboBoxItem>
<ComboBoxItem Content="5"></ComboBoxItem>
<ComboBoxItem Content="6"></ComboBoxItem>
<ComboBoxItem Content="7"></ComboBoxItem>
<ComboBoxItem Content="8"></ComboBoxItem>
<ComboBoxItem Content="9"></ComboBoxItem>
<ComboBoxItem Content="10"></ComboBoxItem>
</ComboBox>
<Label Content="Bild" Grid.Column="2" Margin="0,0,8,0"></Label>
<ComboBox Grid.Column="3" Margin="0,0,0,8" MinWidth="40">
<ComboBoxItem Content="1"></ComboBoxItem>
<ComboBoxItem Content="2"></ComboBoxItem>
<ComboBoxItem Content="3"></ComboBoxItem>
<ComboBoxItem Content="4"></ComboBoxItem>
<ComboBoxItem Content="5"></ComboBoxItem>
<ComboBoxItem Content="6"></ComboBoxItem>
<ComboBoxItem Content="7"></ComboBoxItem>
<ComboBoxItem Content="8"></ComboBoxItem>
<ComboBoxItem Content="9"></ComboBoxItem>
<ComboBoxItem Content="10"></ComboBoxItem>
</ComboBox>
</Grid>
<Label Content="Speicherort" Grid.Column="0" Grid.Row="7"></Label>
<ComboBox Grid.Column="1" Grid.Row="7" Margin="0,0,50,8"></ComboBox>
</Grid>