Window containing a device for regulating the passage of light, where the device comprises a layer comprising a liquid-crystalline material comprising at least three different dye compounds, where the liquid-crystalline material has a clearing point of at least 95°C, comprises at least one compound V which contains at least one unit selected from units of the formulae (E-1), (E-2) and (E-3) where X is selected on each occurrence, identically or differently, from F, Cl, Br, I, -CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS and N 3; W is selected on each occurrence, identically or differently, from F, Cl, Br, I, -CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS and N 3; U is selected on each occurrence, identically or differently, from H, F, Cl, Br, I, CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS, N 3, and alkyl, alkoxy or alkylthio groups having 1 to 10 C atoms, where one or more hydrogen atoms in the alkyl, alkoxy or alkylthio groups may be replaced by F or Cl, and where one or more CH 2 groups in the alkyl, alkoxy or alkylthio groups may be replaced by O or S; dashed lines symbolise bonds to the remainder of the compound, and at least one group U per unit of the formula (E-3) is selected from F, Cl, Br, I, CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS and N 3, and one or more compounds which conform to the formula (F-1) where R 11, R 12 on each occurrence, identically or differently, represent F, Cl, -CN, -NCS, -SCN, R 3 -O-CO-, R 3 -CO-O- or an alkyl or alkoxy group having 1 to 10 C atoms or an alkenyl or alkenyloxy group having 2 to 10 C atoms, where one or more hydrogen atoms in the above-mentioned groups may be replaced by F or Cl, and one or more CH 2 groups may be replaced by O or S; and R 3 on each occurrence, identically or differently, represents an alkyl group having 1 to 10 C atoms, in which one or more hydrogen atoms may be replaced by F or Cl, and in which one or more CH 2 groups may be replaced by O or S; Z 11 is selected on each occurrence, identically or differently, from -CO-O-, -O-CO-, -CF 2 -CF 2 -, -CF 2 -O-, -O-CF 2 -, -CH 2 -CH 2 -, -CH=CH-, -CF=CF-, -CF=CH-, -CH=CF-, -C≡C-, -OCH 2 -, -CH 2 O- and a single bond; and A 11 is selected on each occurrence, identically or differently, from the following groups and where Y is selected on each occurrence, identically or differently, from F, Cl, CN, and alkyl, alkoxy or alkylthio groups having 1 to 10 C atoms, where one or more hydrogen atoms in the alkyl, alkoxy or alkylthio groups may be replaced by F or Cl, and where one or more CH 2 groups in the alkyl, alkoxy or alkylthio groups may be replaced by O or S. X is selected on each occurrence, identically or differently, from F, Cl, Br, I, -CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS and N 3; W is selected on each occurrence, identically or differently, from F, Cl, Br, I, -CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS and N 3; U is selected on each occurrence, identically or differently, from H, F, Cl, Br, I, CN, -NCO, -NCS, -SCN, -OCN, -NC, -CNO, -CNS, N 3, and alkyl, alkoxy or alkylthio groups having 1 to 10 C atoms, where one or more hydrogen atoms in the alkyl, alkoxy or alkylthio groups may be replaced by F or Cl, and where one or more CH 2 groups in the alkyl, alkoxy or alkylthio groups may be replaced by O or S; R 11, R 12 on each occurrence, identically or differently, represent F, Cl, -CN, -NCS, -SCN, R 3 -O-CO-, R 3 -CO-O- or an alkyl or alkoxy group having 1 to 10 C atoms or an alkenyl or alkenyloxy group having 2 to 10 C atoms, where one or more hydrogen atoms in the above-mentioned groups may be replaced by F or Cl, and one or more CH 2 groups may be replaced by O or S; and R 3 on each occurrence, identically or differently, represents an alkyl group having 1 to 10 C atoms, in which one or more hydrogen atoms may be replaced by F or Cl, and in which one or more CH 2 groups may be replaced by O or S; Z 11 is selected on each occurrence, identically or differently, from -CO-O-, -O-CO-, -CF 2 -CF 2 -, -CF 2 -O-, -O-CF 2 -, -CH 2 -CH 2 -, -CH=CH-, -CF=CF-, -CF=CH-, -CH=CF-, -C≡C-, -OCH 2 -, -CH 2 O- and a single bond; and A 11 is selected on each occurrence, identically or differently, from the following groups Y is selected on each occurrence, identically or differently, from F, Cl, CN, and alkyl, alkoxy or alkylthio groups having 1 to 10 C atoms, where one or more hydrogen atoms in the alkyl, alkoxy or alkylthio groups may be replaced by F or Cl, and where one or more CH 2 groups in the alkyl, alkoxy or alkylthio groups may be replaced by O or S.