Share via


IXRSetterBaseCollection::GetIsSealed (Windows Embedded CE 6.0)

1/6/2010

This method retrieves a value that indicates whether this collection is in a read-only state.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsSealed(
    bool* pIsSealed
) = 0;

Parameters

  • pIsSealed
    [out] Pointer to a Boolean that indicates whether this collection is in a read-only state. This value is true if this collection is in a read-only state and cannot be changed; otherwise, this value is false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If pIsSealed is set to true and you try to modify an IXRSetter in this collection or add an IXRSetter to this collection, an exception is thrown.

As soon as an IXRStyle object is put in use by an object loaded at run time by Silverlight, that IXRStyle is considered sealed. A style is considered to be in use as soon as it is referenced by a loaded object that is connected to the object tree and Silverlight visual root. This point in time can be detected when the object that has the IXRStyle raises its Loaded event. To handle this event, you can use IXRFrameworkElement::AddLoadedEventHandler.

.NET Framework Equivalent

System.Windows.SetterBaseCollection.IsSealed

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRSetterBaseCollection