DevZest WPF Docking
ConditionalUriExtension Class |
Provides conditional Uri in XAML markup.
Inheritance Hierarchy
Namespace: DevZest.Windows
Assembly: DevZest.WpfDocking (in DevZest.WpfDocking.dll) Version: 2.5.0.0 (2.5.5912.0)
Syntax
The ConditionalUriExtension type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConditionalUriExtension | Initializes a new instance of the ConditionalUriExtension class |
Properties
Remarks
Use this markup extension to avoid SecurityException when providing resource dictionary for both full trust and partial trust (XBAP, for example) applications.
Examples
The following example shows how to avoid the SecurityException in XBAP application because NativeFloatingWindow requires UIPermission:
XAML
<ResourceDictionary> <ResourceDictionary.Source> <dz:ConditionalUriExtension Condition="{x:Static dz:FloatingWindow.CanBeNative}" True="NativeFloatingWindow.xaml" False="Empty.xaml" /> </ResourceDictionary.Source> </ResourceDictionary>
See Also