Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
How we can overcome the parse error while adding additional styles in XAM Outlook bar.
posted

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