|
<sap:ActivityDesigner x:Class="RKiss.MessageMediationActivityLibrary.Design.XPathMessageInspectorDesigner"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
xmlns:my="clr-namespace:System;assembly=mscorlib"
xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"
xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation">
<sap:ActivityDesigner.Resources>
<sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" x:Uid="swdv:ArgumentToExpressionConverter_1" />
<DataTemplate x:Key="Collapsed">
<StackPanel>
<TextBlock>This is the collapsed view</TextBlock>
</StackPanel>
</DataTemplate>
<DataTemplate x:Key="Expanded">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="50.5" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="13.5" />
</Grid.ColumnDefinitions>
<sapv:ExpressionTextBox Name="expMessage"
Expression="{Binding Path=ModelItem.Message, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter }, ConverterParameter=InOut}"
OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay }"
UseLocationExpression="True"
Grid.Column="1" Uid="message" Margin="0,0,0.5,0" DataContext="{Binding}" />
<StackPanel Orientation="Vertical" Grid.Row="2" Grid.Column="1" Name="stackPanel">
<sapv:ExpressionTextBox Name="expXPath"
Expression="{Binding Path=ModelItem.XPath, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In, UpdateSourceTrigger=PropertyChanged}"
ExpressionType="{x:Type TypeName=my:String}"
OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay }"
Uid="xpath" MinLines="1" MaxLines="1" MaxWidth="500" HorizontalScrollBarVisibility="Auto" />
</StackPanel>
<Button Content="..." Grid.Column="3" Height="18" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="12.5" Click="buttonXPath_Click" Grid.Row="1" Margin="0,2,0,0" />
<Label Content="XPath" Height="27" HorizontalAlignment="Left" Name="label1" VerticalAlignment="Top" Width="49" HorizontalContentAlignment="Right" Grid.Row="1" FontSize="10" Margin="2,0,0,0" Grid.ColumnSpan="2" />
<Label Content="Message" Grid.RowSpan="2" Height="28" HorizontalAlignment="Left" Name="label2" VerticalAlignment="Top" Width="50.5" FontSize="10" HorizontalContentAlignment="Right" />
</Grid>
</DataTemplate>
<Style x:Key="ExpandOrCollapsedStyle" TargetType="{x:Type ContentPresenter}">
<Setter Property="ContentTemplate" Value="{DynamicResource Collapsed}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Path=ShowExpanded}" Value="true">
<Setter Property="ContentTemplate" Value="{DynamicResource Expanded}"/>
</DataTrigger>
</Style.Triggers>
</Style>
</sap:ActivityDesigner.Resources>
<Grid>
<ContentPresenter Style="{DynamicResource ExpandOrCollapsedStyle}" Content="{Binding}" />
</Grid>
</sap:ActivityDesigner>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.