This question is locked. New answers and comments are not allowed.
Hi Guys,
I have tried to make the start and end points dynamic and wanted to bind the Start and End point of an animation.
I have tried to bind it them to a Point or a String but in threw a XamlParseExecption
Xaml code looks like this:
in the ViewModel class there are the Properties. (of course I only had one of the Properties bound at a time)
Does anybody know which data type is required to make the Binding work?
Thanks in advance
Alex
I have tried to make the start and end points dynamic and wanted to bind the Start and End point of an animation.
I have tried to bind it them to a Point or a String but in threw a XamlParseExecption
Xaml code looks like this:
<
UserControl.Resources
>
<
DataTemplate
x:Name
=
"OverlayTemplate"
>
<
Image
Margin
=
"24,0"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
Source
=
"/Images/temp/simpleMarker.png"
Stretch
=
"None"
/>
</
DataTemplate
>
<
telerikCore:RadSlideAnimation
x:Name
=
"OverlayContentDisplayAnimation"
StartPoint
=
"{Binding Path=StartPoint}"
EndPoint
=
"{Binding Path=EndPoint}"
Duration
=
"00:00:0.2"
/>
</
UserControl.Resources
>
in the ViewModel class there are the Properties. (of course I only had one of the Properties bound at a time)
private
Point _startPoint;
public
String StartPoint
{
get
{
_startPoint.X = 200;
_startPoint.Y = 200;
return
String.Format(
"{0},{1}"
, _startPoint.X, _startPoint.Y);
}
}
private
Point _endPoint;
public
Point EndPoint
{
get
{
_endPoint.X = 200;
_endPoint.Y = 200;
return
_endPoint; }
set
{
var oldVal = _endPoint;
_endPoint = value;
if
(_endPoint != oldVal)
RaisePropertyChanged(
"EndPoint"
);
}
}
Does anybody know which data type is required to make the Binding work?
Thanks in advance
Alex