This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I get the follow error whe attempting to use the datetime picker .... Cannot create instance of 'DropDownEditBox' defined in assembly 'Mindscape.WpfElements, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0a92c4b7d9c14aa4'. Exception has been thrown by the target of an invocation. Error at object 'System.Windows.Controls.Border'. Here is the XAML I'm using ... I'm using it to capture a field named 'Effective Date' ... What am I doing wrong? < Window x:Class="PhraseDefinition.NewPhrase" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ms="clr-namespace:Mindscape.WpfElements;assembly=Mindscape.WpfElements" xmlns:local="clr-namespace:uxDesigner" Title="New Phrase" SizeToContent="Manual" Width="521" Height="250" ToolTip="Enter information for the new phrase and click Save." WindowStartupLocation="CenterScreen" MinWidth="100" MinHeight="100"><Window.Resources>
</Window.Resources> <Grid Margin="10,10,10,10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> </Grid.RowDefinitions> <Label Grid.Row="0" Grid.Column="0">Phrase Name:</Label> <TextBox Grid.Row="0" Grid.Column="1" MaxLength="75"></TextBox> <Label Grid.Row="1" Grid.Column="0">Description:</Label> <TextBox Grid.Row="1" Grid.Column="1" MaxLength="255" TextWrapping="Wrap"></TextBox> <Label Grid.Row="2" Grid.Column="0">Style:</Label> <TextBox Grid.Row="2" Grid.Column="1"></TextBox> <Label Grid.Row="3" Grid.Column="0">Language:</Label> <TextBox Grid.Row="3" Grid.Column="1"></TextBox> <Label Grid.Row="4" Grid.Column="0">Effective Date:</Label> <ms:DropDownDatePicker Grid.Row="4" Grid.Column="1" /> <Label Grid.Row="5" Grid.Column="0">Text:</Label> <TextBox Grid.Row="5" Grid.Column="1" MaxLength="4000" TextWrapping="Wrap"></TextBox> <StackPanel Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right"> <Button Margin="2,10,2,10" Padding="3" IsDefault="True">Save</Button> <Button Margin="2,10,2,10" Padding="3" IsCancel="True">Cancel</Button> </StackPanel> </Grid> </ Window> |
|
|
Hi Douglas, I assume you are getting this error when trying to load the form? If so, can you go into the exception dialog and dig out the Inner Exception for me please? (You may have to dig through a couple of layers of things like TargetInvocationException and XamlParseException before you come to something more specific.) Thanks. (My wild stab-in-the-dark guess is that this might be a licensing exception -- if Visual Studio has generated a licenses.licx for you, it has probably included DropDownDatePicker but not the controls used by the DDDP. The fix for this is to copy licenses.licx from one of the sample projects.) If you are getting the error after loading the form -- e.g. when interacting with the control -- could you describe what you are doing that triggers the error? |
|
|
Hello, |
|