WindowlessMode Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines whether the WPF/E control displays as a windows-less control.

HTML
<OBJECT/EMBED WindowlessMode=booleanValue .../>
Scripting

booleanValue = wpfeObject.windowlessMode

wpfeObject.windowlessMode = booleanValue

Property Value

Boolean

Determines whether the WPF/E control displays as a windows-less or windowed control.

This property is read/write. The default value is false.

Remarks

If the value is set to true and the BackgroundColor property value specifies an alpha value, the color value is blended with the HTML page. Consider the following HTML example in which the two WPF/E controls are defined--the first one with WindowlessMode set to true; the second, with WindowlessMode set to false:

HTML
<html>
<head>
    <title>Windowless Mode Property Sample</title>
    <script type="text/javascript" src="aghost.js"></script>
    <script type="text/javascript" src="eventhandlers.js"></script>
</head>
<body background="wpfe.gif">
<div id="controlHost_1" >
    <script type="text/javascript">
        // WindowlessMode parameter (last value) is set to true. BackgroundColor parameter specifies an alpha value.
        new agHost("controlHost_1", "myControl_1", "240", "60", "#04008080", null, "content.xaml", true);
    </script>
</div>
<div id="controlHost_2" >
    <script type="text/javascript">
        // WindowlessMode parameter (last value) is set to false.
        new agHost("controlHost_2", "myControl_2", "240", "60", "#04008080", null, "content.xaml", false);
    </script>
</div>
</body>
</html>

Notice the displayed output of the preceding HTML example. The background of the first WPF/E control is blended with the pattern of the HTML page. The background of the second WPF/E control is opaque.


WindowlessMode property set on two WPF/E controls

Applies To

WPF/E Control

See Also

Using a WPF/E Control, BackgroundColor