Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TextBlock Width="Auto" Height="Auto"
- Text="{Binding ConnectionType}"
- Canvas.Left="{Binding LabelPosition.X}"
- Canvas.Top="{Binding LabelPosition.Y}" Background="{Binding ParentCanvasColor}">
- <TextBlock.RenderTransform>
- <TranslateTransform X="5" Y="5"/>
- </TextBlock.RenderTransform>
- </TextBlock>
- public Color ParentCanvasColor
- {
- get
- {
- if (parentCanvas != null && parentCanvas is DesignerCanvasNetDiag)
- {
- return Colors.Red;
- }
- return Colors.Transparent;
- }
- }
- public SolidColorBrush ParentCanvasColor
- {
- get
- {
- if (parentCanvas != null && parentCanvas is DesignerCanvasNetDiag)
- {
- return new SolidColorBrush(Colors.Red);
- }
- return new SolidColorBrush(Colors.Transparent);
- }
- }
Add Comment
Please, Sign In to add comment