Overlay adorner
Radical offers a rich set of adorners and also a generic purpose adorner to put an arbitrary content on top of another element:
1
<Calendar Height="180"
2
HorizontalAlignment="Left"
3
VerticalAlignment="Top"
4
Width="180">
5
<i:Interaction.Behaviors>
6
<behaviors:OverlayBehavior Background="#99FAFAFA" IsVisible="True" IsHitTestVisible="False">
7
<behaviors:OverlayBehavior.Content>
8
<Border BorderBrush="Red" BorderThickness="4" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
9
<TextBlock Text="I'm on top of the calendar" HorizontalAlignment="Center" VerticalAlignment="Center" />
10
</Border>
11
</behaviors:OverlayBehavior.Content>
12
</behaviors:OverlayBehavior>
13
</i:Interaction.Behaviors>
14
</Calendar>
Copied!
producing the following effect at runtime:
Overlay adorner sample
The behavior is defined in the http://schemas.radicalframework.com/windows/behaviors xml namespace.
Copy link