Code: Select all
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
Title="MainWindow"
Height="350"
Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="167*"/>
<RowDefinition Height="153*"/>
</Grid.RowDefinitions>
<syncfusion:SfMaskedEdit HorizontalAlignment="Left" Margin="32,69,0,68" Text="SfMaskedEdit" Width="100"/>
<syncfusion:DoubleTextBox HorizontalAlignment="Left" Margin="32,66,0,0" Grid.Row="1" Value="0" Width="100"/>
</Grid>
</Window>
And then if you execute the following:
Code: Select all
⎕USING←'' 'System.IO' 'System.Xml,system.xml.dll'
⎕USING,←'System.Windows,WPF/PresentationFramework.dll' 'System.Windows.Markup'
⎕USING,←⊂'Syncfusion.Windows.Controls.Input,Syncfusion/4.5/Syncfusion.SfInput.WPF.dll'
⎕USING,←⊂',Syncfusion/4.5/Syncfusion.SfShared.Wpf.dll'
⎕USING,←⊂'Syncfusion.Windows.Shared,Syncfusion/4.5/Syncfusion.Shared.WPF.dll'
rootObj←XamlReader.Load ⎕NEW XmlTextReader(⎕NEW StringReader(⊂xaml))
rootObj.Show
You will get the following error:
Code: Select all
rootObj.Show
EXCEPTION: Object reference not set to an instance of an object.
rootObj.Show
∧
but if you type again in the session rootObj.Show it will work.
Question: Why it did not work the first time ?
Thanks in advance,
Pierre Gilbert