Note that there are some explanatory texts on larger screens.

plurals
  1. POCitrix causing WPF sizing problems?
    primarykey
    data
    text
    <p>I just deployed my first Windows app (using WPF/.NET 4) to our Citrix environment here at the office. However, when it is run, the DataGrids inside windows are much wider than in my Windows 7 dev env (or any Windows desktop env I've tested), so the right side of the DataGrid gets hidden, requiring a scroll bar to appear where there was none before. Is this a Citrix "issue"? Am I laying out my Windows incorrectly to account for this difference? Windows .NET updates which are missing? Thanks for any suggestions here.</p> <p>(Citrix Env: Running XenApp 6.5 on Server 2008 R2)</p> <p>Here is my Window XAML:</p> <pre><code>&lt;Window x:Class="TableMaint.ItemClassExtrasEdit" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:TableMaint" Title="Edit Item Class Extra Fields" Height="600" Width="331" MinWidth="100" MinHeight="300" WindowStartupLocation="CenterOwner"&gt; &lt;DockPanel LastChildFill="True"&gt; &lt;Grid Height="59" DockPanel.Dock="Bottom"&gt; &lt;Button Content="Save" Height="23" Name="OKButton" Width="75" Margin="0,0,6,18" VerticalAlignment="Bottom" HorizontalAlignment="Right" IsDefault="True" Click="OKButton_Click" /&gt; &lt;Button Content="Cancel" Height="23" HorizontalAlignment="Right" Margin="0,0,101,18" Name="CancelButton" VerticalAlignment="Bottom" Width="75" IsCancel="True" /&gt; &lt;/Grid&gt; &lt;DataGrid Name="ExtrasGrid" ItemsSource="{Binding}" CanUserReorderColumns="False" CanUserDeleteRows="False" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="20" CanUserResizeRows="False" CanUserSortColumns="False"&gt; &lt;DataGrid.Resources&gt; &lt;local:NullCheckBoxConverter x:Key="nullCheckBoxConverter"/&gt; &lt;/DataGrid.Resources&gt; &lt;DataGrid.Columns&gt; &lt;DataGridTextColumn Header=" Item Class ID " Binding="{Binding ItemClassID}" &gt; &lt;DataGridTextColumn.CellStyle&gt; &lt;Style TargetType="{x:Type DataGridCell}"&gt; &lt;Setter Property="ToolTipService.ToolTip" Value="{Binding ItemClassName}" /&gt; &lt;/Style&gt; &lt;/DataGridTextColumn.CellStyle&gt; &lt;/DataGridTextColumn&gt; &lt;DataGridCheckBoxColumn Header="Foo1" Binding="{Binding Foo1, Converter={StaticResource nullCheckBoxConverter}}" /&gt; &lt;DataGridCheckBoxColumn Header="Foo2" Binding="{Binding Foo2, Converter={StaticResource nullCheckBoxConverter}}" /&gt; &lt;DataGridCheckBoxColumn Header="Foo3" Binding="{Binding Foo3, Converter={StaticResource nullCheckBoxConverter}}" /&gt; &lt;DataGridCheckBoxColumn Header="Foo4" Binding="{Binding Foo4, Converter={StaticResource nullCheckBoxConverter}}" /&gt; &lt;/DataGrid.Columns&gt; &lt;/DataGrid&gt; &lt;/DockPanel&gt; &lt;/Window&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload