MindFusion.Scheduling for Silverlight Programmer's Guide
ActivityChart.DependencyPopupStyle Property
See Also
 





Gets or sets the style of the dependency popup windows displayed when dependencies are created or clicked. This is a dependency property.

Namespace: MindFusion.DataViews.Silverlight
Assembly: MindFusion.DataViews.Silverlight

 Syntax

C#  Copy Code

public Style DependencyPopupStyle { get; set; }

Visual Basic  Copy Code

Public Property DependencyPopupStyle As Style

 Property Value

A Silverlight Style

 Remarks

The default style of the popup is demonstrated below:

XAML  Copy Code

<Style TargetType="local:DependencyPopupContent">
  <Setter Property="BorderBrush" Value="{StaticResource PopupContentBorderBrush}" />
  <Setter Property="BorderThickness" Value="1" />
  <Setter Property="Background" Value="{StaticResource PopupContentBackgroundBrush}" />
  <Setter Property="Padding" Value="2" />
  <Setter Property="Template">
    <Setter.Value>
      <ControlTemplate TargetType="local:DependencyPopupContent">
        <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
          <StackPanel Orientation="Vertical">
            <TextBlock Text="{TemplateBinding PopupTitle}" FontWeight="Bold" Margin="0,0,0,3"/>
            <Line X1="0" X2="1" Y1="0" Y2="0" Stretch="Fill" Stroke="Black" StrokeThickness="1.5" Margin="0,0,0,3"/>
          <StackPanel Name="FromContainer" Orientation="Horizontal">
            <TextBlock Text="From: " />
            <TextBlock Text="{TemplateBinding From}" FontWeight="Bold" />
          </StackPanel>
          <StackPanel Name="ToContainer" Orientation="Horizontal">
            <TextBlock Text="To: " />
            <TextBlock Text="{TemplateBinding To}" FontWeight="Bold"/>
          </StackPanel>
          <StackPanel Name="DependencyTypeContainer" Orientation="Horizontal">
            <TextBlock Text="Dependency type: " />
            <TextBlock Text="{TemplateBinding FromType}" FontWeight="Bold" />
            <TextBlock Text="To" FontWeight="Bold" />
            <TextBlock Text="{TemplateBinding ToType}" FontWeight="Bold" />
          </StackPanel>
        </StackPanel>
      </Border>
    </ControlTemplate>
  </Setter.Value>
</Setter>
</Style>

 See Also

ActivityChart Members
ActivityChart Class
MindFusion.DataViews.Silverlight Namespace