Note that there are some explanatory texts on larger screens.

plurals
  1. PO'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.'
    text
    copied!<p>The exception in the title is thrown when I open a window in WPF, the strange thing is that this does not happen on my Windows 7 development machine nor does it happen when it is deployed on Windows 7.</p> <p>I only get this error on Windows XP, and only the second time that I open the window.</p> <p>Here is the code to open the window:</p> <pre><code>ReportParametersWindow win = null; bool canOverWrite = _shownReports.Contains(rpt.FriendlyName); if (!(canOverWrite)) win = new ReportParametersWindow(rpt.FriendlyName, rpt.ReportParameters, canOverWrite); else win = new ReportParametersWindow(rpt.FriendlyName, (container.ParametersWindow as ReportParametersWindow).Controls, canOverWrite); win.ShowDialog(); </code></pre> <p>And the XAML for the window:</p> <pre><code>&lt;Window xmlns:my="clr-namespace:MHA.Modules.Core.Controls;assembly=MHA.Modules.Core" x:Class="MHA.Modules.Reports.Views.ReportParametersWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Parameters" Height="500" Width="600" MinWidth="500" MaxHeight="500" Icon="/MHA.Modules.Reports;component/Images/Parameters.ico" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" xmlns:odc="clr-namespace:Odyssey.Controls;assembly=Odyssey" Closed="Window_Closed"&gt; &lt;Grid&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="*"/&gt; &lt;RowDefinition Height="40"/&gt; &lt;/Grid.RowDefinitions&gt; &lt;ScrollViewer Grid.Row="0" Name="ScrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" CanContentScroll="True"&gt; &lt;StackPanel Name="ParameterStack"&gt; &lt;my:LocationCtl Text="Parameters for report - " Name="loc"/&gt; &lt;/StackPanel&gt; &lt;/ScrollViewer&gt; &lt;Grid Grid.Row="1"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition/&gt; &lt;ColumnDefinition/&gt; &lt;ColumnDefinition/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;CheckBox ToolTip="This will replace the first report of the same type that was shown." Name="chkOverwrite" Content="Overwrite old" VerticalAlignment="Center" Margin="5,0"&gt;&lt;/CheckBox&gt; &lt;Button Grid.Column="2" HorizontalAlignment="Right" Margin="5,0" Height="30" Style="{StaticResource DionysusButton}" Width="100" IsDefault="True" Click="Button_Click"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;Image Source="/MHA.Modules.Reports;component/Images/Success.png"&gt;&lt;/Image&gt; &lt;TextBlock Margin="5,0" Text="Accept" VerticalAlignment="Center"&gt;&lt;/TextBlock&gt; &lt;/StackPanel&gt; &lt;/Button&gt; &lt;/Grid&gt; &lt;/Grid&gt; </code></pre> <p></p> <p>Does anyone have suggestions?</p>
 

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