I have created a LinkTemplate and in this I have go:LinkShape, I,m trying to bind the values of Stroke and Strokethickness from view model, but its not working, it will not read the values supplied from view model. Is there any way to achieve this? ’
Thank you for the response, I tried all the above options Data.Color works for me but by default it sets Balck color. I have created a separate variable LineColor of the type string and allowing user to set the color at run time, and trying to change the color at run time. f i assign Stroke=“Red” that works but its static. this is the variable
private string lineColor=“Black”;
public string LineColor
{
get { return lineColor; }
set { lineColor = value; RaisePropertyChanged(“LineColor”); }
}
and this is the Link Template
<go:LinkShape x:Name=“Path” go:LinkPanel.IsLinkShape=“True” Stroke="{Binding Path=LineColor, Mode=TwoWay}" StrokeThickness=“1” Cursor=“Hand”/>
Try modifying one of the working samples, such as the Basic Demo or the Minimal app. If that works, you’ll need to figure out what’s different between the two apps.