in class/WPF.Toolkit/:
[moon.git] / test / 2.0 / moon-unit / BindingXaml.xaml
blob107984722c912bb9bc3f812e8f884ef35c5c4053
1 <UserControl x:Class="TestNamespace.BindingXaml"
2         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
3         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4         xmlns:my="clr-namespace:MoonTest.System.Windows.Data"
5         Width="400" Height="300">
6         <UserControl.Resources>
7                 <my:Data x:Key="CLRObject" ></my:Data>
8         </UserControl.Resources>
9         
10         <Grid x:Name="LayoutRoot" Background="White">
11                 <Grid.Resources>
12                         <my:Data x:Key="CLRObject" > </my:Data>
13                 </Grid.Resources>
14                 <TextBlock Text="{Binding OpacityText, Mode=OneWay, Source={StaticResource CLRObject}}" />
15         </Grid>
16 </UserControl>