<Popup IsOpen="{Binding Path=ValidSoftwareIsOpen, Mode=OneWay}"
AllowsTransparency="True"
PopupAnimation="Slide"
Placement="Center"
Width="Auto"
Height="Auto"
PlacementTarget="{Binding ElementName=avionicsviewBorder }"
Name="validSoftware"
StaysOpen="True"
>
<Border BorderThickness="5" BorderBrush="Black" Opacity="1" Width="Auto"
Height="Auto" CornerRadius="5,5,5,5">
<StackPanel Width="Auto" Height="Auto" Background="{DynamicResource popupBackgroundBrush}" Margin="0" Opacity="1">
<Border Style="{DynamicResource propertiesPopupBorder}" Background="{DynamicResource titleBarBrush}">
<Label FontSize="16" Foreground="White" >
Valid Software
</Label>
</Border>
<telerik:RadGridView
Name="ValidSoftwareListView"
ItemsSource="{Binding Path=AircraftSoftwareValidCollection}"
CanUserInsertRows="False"
SnapsToDevicePixels="True"
HeaderRowStyle="{DynamicResource radGridViewHeaderStyle}"
AutoGenerateColumns="False"
IsReadOnly="True"
Width="300"
ColumnsWidthMode="Auto"
telerik:StyleManager.Theme="Office_Black"
FontSize="12"
>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Name" UniqueName="SoftwareName" DataMemberBinding="{Binding Path=Name}" Width="Auto"/>
<telerik:GridViewDataColumn Header="CSCI" UniqueName="SoftwareCsci" DataMemberBinding="{Binding Path=Csci}" Width="Auto"/>
<telerik:GridViewDataColumn Header="Current" UniqueName="SoftwareCurrent" DataMemberBinding="{Binding Path=Current}" Width="Auto"/>
<telerik:GridViewDataColumn Header="Replacement" UniqueName="SoftwareReplacement" DataMemberBinding="{Binding Path=Replacement}" Width="Auto"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
<Button Template="{DynamicResource GlassButton}" Content="Ok" HorizontalAlignment="Right"
VerticalAlignment="Center"
Command="{Binding Path=OkCommand}" Style="{DynamicResource bottomButtonStyle}"/>
</StackPanel>
</Border>
</Popup>
I tried replacing the StackPanel with a grid with no sucess.
Another issue I have is that if my application window is full screen and I have my popup centered in the window and I click on a filter the filter popup does not show all the fields. This is not a problem when the application window is not full screen.
Donald