I'm guessing the name xyz can't be found in the context you used it,
although it's too late in the day for me to be sure <g>.
--
-Nick Kramer [MSFT]
http://blogs.msdn.com/nickkramer
---
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
<lubomir@gmail.com> wrote in message
news:1137172194.967723.110270@o13g2000cwo.googlegroups.com...
> Basicaly I have an user control that defines a string DependenyProperty
> Caption. In the xaml i have the following code:
>
> <UserControl x:Class="PlasmaBox.TrackHeaderView"
> xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
> xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
> Name="xyz"
> >
> <UserControl.FixedTemplate>
> <Grid>
> <Grid.ColumnDefinitions>
> <ColumnDefinition Width="*"/>
> <ColumnDefinition Width="50"/>
> </Grid.ColumnDefinitions>
> <Grid.RowDefinitions>
> <RowDefinition/>
> <RowDefinition/>
> </Grid.RowDefinitions>
>
> <Button Grid.Column="1" Grid.Row="0"/>
> <Button Grid.Column="1" Grid.Row="1"/>
> <TextBlock
> Grid.Column="0"
> Grid.RowSpan="2"
> VerticalAlignment="Center"
> Text="{Binding ElementName=xyz,Path=Caption}"/>
> </Grid>
> </UserControl.FixedTemplate>
> </UserControl>
>
> The Text comes up empty. I've tried al variations of binding with no
> luck at all. Is this broken in the December CTP - (if yes, is there a
> workaround), or am I doing something wrong?
>
> Thanx,
> Lubomir
>