<!-- Inserire in una section filter : -->
<!-- un cdoelement di nome PWD (controltype text) -->
<!-- un cdoelement di nome BTNOK (controltype button) -->
<!-- un cdoelement di nome BTNANNULLA (controltype button) -->
<ScrollViewer VerticalScrollBarVisibility="Auto" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Border Margin="0,0,0,0" BorderThickness="1" CornerRadius="5" BorderBrush="Black">
<Border.Background>
<LinearGradientBrush>
<LinearGradientBrush.GradientStops>
<GradientStop Offset="0.0" Color="Black" />
<GradientStop Offset="1.0" Color="DarkGray" />
</LinearGradientBrush.GradientStops>
</LinearGradientBrush>
</Border.Background>
<StackPanel>
<StackPanel.Resources>
<Style TargetType="Label" >
<Setter Property="Foreground" Value="White" />
</Style>
<Style TargetType="TextBlock" >
<Setter Property="Foreground" Value="Yellow" />
</Style>
<Style TargetType="Button">
<!--Setter Property="FontSize" Value="42" /-->
<Setter Property="Foreground" Value="White" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="ButtonBorder"
CornerRadius="5,5,5,5"
BorderThickness="1,1,1,1"
Background="#AA000000"
BorderBrush="#99FFFFFF"
RenderTransformOrigin="0.5,0.5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="1.7*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" CornerRadius="23,23,0,0">
<Border.Background>
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
<GradientStop Color="#08FFFFFF" Offset="0"/>
<GradientStop Color="#88FFFFFF" Offset="1"/>
</LinearGradientBrush>
</Border.Background>
</Border>
<ContentPresenter x:Name="ButtonContentPresenter"
VerticalAlignment="Center"
Grid.RowSpan="2"
HorizontalAlignment="Center"/>
</Grid>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed" Value="True">
<Setter Property="RenderTransform" TargetName="ButtonBorder">
<Setter.Value>
<TransformGroup>
<ScaleTransform ScaleX="0.9" ScaleY="0.9"/>
</TransformGroup>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</StackPanel.Resources>
<StackPanel Name="cDoElementContainer_PWD"
IsEnabled="{Binding Path=cDoElements[PWD].xEnabled}"
Visibility="{Binding Path=cDoElements[PWD].xVisible}"
ToolTip="{Binding Path=cDoElements[PWD].xToolTip}"
Margin = "5,5,5,5"
>
<Label Name="cDoElementLabel_PWD"
Content="{Binding Path=cDoElements[PWD].xCaption}"
>
</Label>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<PasswordBox Name="PWD"
HorizontalAlignment = "Stretch"
PasswordChar="*"
VerticalAlignment = "Top"
/>
<Button Name="cDoElementButtonSearch_PWD" Grid.Column="1" Grid.RowSpan="1" Cursor="Hand"
Visibility="{Binding Path=cDoElements[PWD].xLookUpButtonVisibile}"
>
<Image
Source="{Binding Path=cDoElements[PWD].xButtonImage}"
Width="16" Height="16"
/>
</Button>
<TextBlock Margin = "5,5,0,0" VerticalAlignment="Center" Grid.Row="1" TextWrapping="Wrap"
Text="{Binding Path=cDoElements[PWD].xLookUpDescription}"
Visibility="{Binding Path=cDoElements[PWD].xLookUpDescriptionVisibile}"
>
</TextBlock>
</Grid>
</StackPanel>
<!-- ************************************* -->
<!-- Default Code of BTNOK -->
<!-- ************************************* -->
<StackPanel Name="cDoElementContainer_BTNOK"
IsEnabled="{Binding Path=cDoElements[BTNOK].xEnabled}"
Visibility="{Binding Path=cDoElements[BTNOK].xVisible}"
ToolTip="{Binding Path=cDoElements[BTNOK].xToolTip}"
Margin = "5,5,5,5"
>
<Button Name="BTNOK"
IsEnabled="{Binding Path=cDoElements[BTNOK].xEnabled}"
Command="{Binding Path=cDoElements[BTNOK].xClick}" Cursor="Hand"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Left">
<Image
Source="{Binding Path=cDoElements[BTNOK].xImage}"
>
</Image>
<TextBlock VerticalAlignment="Center"
Text="{Binding Path=cDoElements[BTNOK].xCaption}"
>
</TextBlock>
</StackPanel>
</Button>
</StackPanel>
<!-- ************************************* -->
<!-- Default Code of BTNANNULLA -->
<!-- ************************************* -->
<StackPanel Name="cDoElementContainer_BTNANNULLA"
IsEnabled="{Binding Path=cDoElements[BTNANNULLA].xEnabled}"
Visibility="{Binding Path=cDoElements[BTNANNULLA].xVisible}"
ToolTip="{Binding Path=cDoElements[BTNANNULLA].xToolTip}"
Margin = "5,5,5,5"
>
<Button Name="BTNANNULLA"
IsEnabled="{Binding Path=cDoElements[BTNANNULLA].xEnabled}"
Command="{Binding Path=cDoElements[BTNANNULLA].xClick}" Cursor="Hand"
>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal" HorizontalAlignment="Left">
<Image
Source="{Binding Path=cDoElements[BTNANNULLA].xImage}"
>
</Image>
<TextBlock VerticalAlignment="Center"
Text="{Binding Path=cDoElements[BTNANNULLA].xCaption}"
>
</TextBlock>
</StackPanel>
</Button>
</StackPanel>
</StackPanel>
</Border>
</ScrollViewer>