Hi,
We have added additional styles for XAMOutlookv16.1 bar. but as I compile first time parse error is showing:
Additional information: 'Failed to create a 'Type' from the text 'igOutlookBar:XamOutlookBar'
In Style Page:
Namespace added : xmlns:igOutlookBar="http://infragistics.com/OutlookBar"
<Style x:Key="OutlookBarStyle" TargetType="{x:Type igOutlookBar:XamOutlookBar}"> <Setter Property="Background"> <Setter.Value> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <LinearGradientBrush.GradientStops> <GradientStopCollection> <GradientStop Color="SteelBlue" Offset="0" /> <GradientStop Color="SteelBlue" Offset="0.5" /> <GradientStop Color="SteelBlue" Offset="0.5009999871253967" /> <GradientStop Color="SteelBlue" Offset="1" /> </GradientStopCollection> </LinearGradientBrush.GradientStops> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="Foreground" Value="White"></Setter> </Style>
I just tried to change namespace : http://schemas.infragistics.com/xaml but not working. Please let us aware I have spend lots time but still not fixed.
Thanks
Hello prikanwar pkanwar,
I am not able to reproduce the fail you have described.
xmlns:igOutlookBar=http://infragistics.com/OutlookBar namespace is the correct one.
Could you please create a sample that reproduces your behavior so I could have a look.
Hello,
This is the parse error and only showing when I have added style <Style x:Key="OutlookBarStyle" TargetType="{x:Type igOutlookBar:XamOutlookBar}"> at that time TargetType="{x:Type igOutlookBar:XamOutlookBar}" is going to produce this error. TargetType="{x:Type} its not going to accept XamOutlookBar and create parse error.
Please let me know, If have any query.
Hello prikanwar,
I have created a simple sample with all the required assemblies where I am not able to reproduce the error.
Could you please download the attached sample and see if you are able to run the project. Also, it could really help if you can modify the sample so I can investigate it further.