This question is locked. New answers and comments are not allowed.
My company over the weekend converted to Active Directory from eDirectory, and pushed out Silverlight 5 (just listing the 2 major events on my box lately).
Friday my project was working fine and had been for a couple of months, as of Monday anytime I open a View that contains a RichTextBox my VS 2010 design window blows up with the following error.
Note: I can compile and deploy the app and everything is fine on the deployed version, just my designer is non-functional. I've uninstalled and reinstalled my telerik silverlight controls, but still get the same error.
Any Ideas?
Thanks
Robert
Error List:
Error 4 [Line: 0 Position: 0] C:\Projects\Contracts\src\ContractSystem\ContractSystem\Views\ServicesContractDetailView.xaml 600 29 ContractSystem
In the design window:
System.NullReferenceException
Object reference not set to an instance of an object.
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.ClearPresenterUI() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs:line 295
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.DoOnDocumentChanging() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs:line 387
at Telerik.Windows.Controls.RadRichTextBox.set_Document(RadDocument value) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\RadRichTextBox.cs:line 981
at Telerik.Windows.Documents.FormatProviders.DataProviderBase.UpdateDocument() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\FormatProviders\DataProviderBase.cs:line 214
at Telerik.Windows.Documents.FormatProviders.DataProviderBase.RichTextBoxChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\FormatProviders\DataProviderBase.cs:line 89
at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Core\Controls\Common\System.Windows\PropertyMetadata.cs:line 262
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
at System.Windows.Data.BindingExpression.SendDataToTarget()
at System.Windows.Data.BindingExpression.SourceAcquired()
at System.Windows.Data.BindingExpression.PerformTargetLoaded()
at System.Windows.Data.BindingExpression.TargetLoaded(Object o, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException
An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
Friday my project was working fine and had been for a couple of months, as of Monday anytime I open a View that contains a RichTextBox my VS 2010 design window blows up with the following error.
Note: I can compile and deploy the app and everything is fine on the deployed version, just my designer is non-functional. I've uninstalled and reinstalled my telerik silverlight controls, but still get the same error.
Any Ideas?
Thanks
Robert
Error List:
Error 4 [Line: 0 Position: 0] C:\Projects\Contracts\src\ContractSystem\ContractSystem\Views\ServicesContractDetailView.xaml 600 29 ContractSystem
System.NullReferenceException
Object reference not set to an instance of an object.
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.ClearPresenterUI() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs:line 295
at Telerik.Windows.Documents.UI.DocumentWebLayoutPresenter.DoOnDocumentChanging() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\DocumentWebLayoutPresenter.cs:line 387
at Telerik.Windows.Controls.RadRichTextBox.set_Document(RadDocument value) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\UI\RadRichTextBox.cs:line 981
at Telerik.Windows.Documents.FormatProviders.DataProviderBase.UpdateDocument() in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\FormatProviders\DataProviderBase.cs:line 214
at Telerik.Windows.Documents.FormatProviders.DataProviderBase.RichTextBoxChangedCallback(DependencyObject sender, DependencyPropertyChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Documents\FormatProviders\DataProviderBase.cs:line 89
at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in c:\TB\102\WPF_Scrum\Release_SL\Sources\Development\Core\Controls\Common\System.Windows\PropertyMetadata.cs:line 262
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
at System.Windows.DependencyObject.RefreshExpression(DependencyProperty dp)
at System.Windows.Data.BindingExpression.SendDataToTarget()
at System.Windows.Data.BindingExpression.SourceAcquired()
at System.Windows.Data.BindingExpression.PerformTargetLoaded()
at System.Windows.Data.BindingExpression.TargetLoaded(Object o, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Microsoft.Windows.Design.Platform.InvalidDesignerUpdateException
An unhandled exception was encountered while trying to render the current silverlight project on the design surface. To diagnose this failure, please try to run the project in a regular browser using the silverlight developer runtime.
<
controls:ChildWindow
x:Class
=
"ContractSystem.Views.ServicesContractDetailView"
xmlns:controls
=
"clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
xmlns:converters
=
"clr-namespace:ContractSystem"
xmlns:rtf
=
"clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents.FormatProviders.Rtf"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
Title
=
"{Binding Path=Model.Type}"
Width
=
"800"
Height
=
"auto"
d:DesignHeight
=
"1300"
d:DesignWidth
=
"800"
FontFamily
=
"Arial"
FontSize
=
"12"
mc:Ignorable
=
"d"
>
<
controls:ChildWindow.Resources
>
<
converters:BoolToVisibilityConverter
x:Key
=
"BoolToVisibilityConverter"
/>
<
DataTemplate
x:Key
=
"DeptTemplate"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Foreground
=
"Red"
Text
=
"{Binding Path=Dept}"
/>
<
TextBlock
Text
=
"-"
/>
<
TextBlock
Text
=
"{Binding Path=DeptName}"
/>
</
StackPanel
>
</
DataTemplate
>
</
controls:ChildWindow.Resources
>
<
ScrollViewer
Background
=
"Transparent"
HorizontalScrollBarVisibility
=
"Auto"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
HyperlinkButton
Width
=
"175"
HorizontalAlignment
=
"Right"
Content
=
"Contract Example"
FontSize
=
"12"
FontWeight
=
"Bold"
NavigateUri="{Binding Source={StaticResource ApplicationResources},
Path
=
Strings
.ContractExampleLink}"
TargetName
=
"_new"
/>
<
Border
BorderBrush
=
"LightGray"
BorderThickness
=
"2"
CornerRadius
=
"10"
Padding
=
"10"
>
<
Grid
x:Name
=
"pscGrid"
HorizontalAlignment
=
"Center"
ShowGridLines
=
"False"
>
<
Grid.RowDefinitions
>
<!-- Row 0 -->
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<!-- Row 5 -->
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<!-- Row 10 -->
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"29"
/>
<!-- Row 15 -->
<
RowDefinition
Height
=
"29"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"auto"
/>
<!-- Row 20 -->
<
RowDefinition
Height
=
"auto"
/>
<
RowDefinition
Height
=
"39"
/>
</
Grid.RowDefinitions
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"175"
/>
<
ColumnDefinition
Width
=
"575"
/>
</
Grid.ColumnDefinitions
>
<
StackPanel
Grid.Row
=
"0"
Grid.ColumnSpan
=
"2"
>
<!-- ROW GRID -->
<
Grid
Width
=
"746"
Margin
=
"0,0,35,0"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"auto"
/>
<
ColumnDefinition
Width
=
"350"
/>
<
ColumnDefinition
Width
=
"190"
/>
</
Grid.ColumnDefinitions
>
<!-- JaCo IMAGE -->
<
Image
Grid.Column
=
"0"
Width
=
"auto"
Margin
=
"0,0,2,0"
Source
=
"/ContractSystem;component/Assets/Jackson_County_Seal.PNG"
/>
<!-- Header TEXT -->
<
StackPanel
Grid.Column
=
"1"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
Orientation
=
"Vertical"
>
<
TextBlock
Margin
=
"5,0,5,0"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
FontSize
=
"22"
>
Personnal Services
</
TextBlock
>
</
StackPanel
>
<!-- Department -->
<
StackPanel
Grid.Column
=
"2"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Center"
Orientation
=
"Horizontal"
>
<
StackPanel
Grid.Column
=
"2"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Center"
Orientation
=
"Vertical"
>
<
sdk:Label
Margin
=
"5,0,0,0"
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.Department}"
/>
<
telerik:RadComboBox
Grid.Row
=
"0"
Grid.Column
=
"2"
Width
=
"170"
HorizontalAlignment
=
"left"
CanAutocompleteSelectItems
=
"True"
CanKeyboardNavigationSelectItems
=
"True"
IsDropDownOpen
=
"False"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding Path=Departments}"
ItemTemplate
=
"{StaticResource DeptTemplate}"
SelectedValue="{Binding
Path
=
Model
.Department,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Dept"
/>
</
StackPanel
>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Department}"
/>
</
StackPanel
>
</
Grid
>
</
StackPanel
>
<
StackPanel
Grid.Row
=
"1"
Grid.Column
=
"1"
Margin
=
"0,0,40,0"
HorizontalAlignment
=
"Right"
Orientation
=
"Horizontal"
>
<
sdk:Label
Margin
=
"0,0,5,0"
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.Custom}"
/>
<
CheckBox
Grid.Row
=
"1"
Grid.Column
=
"1"
VerticalAlignment
=
"Center"
Content
=
""
IsChecked="{Binding
Path
=
Model
.Custom,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Custom}"
/>
</
StackPanel
>
<!--
<
StackPanel
Grid.Row
=
"1"
Grid.Column
=
"1"
HorizontalAlignment
=
"Right"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.Department}"
/>
<
telerik:RadComboBox
Grid.Column
=
"1"
Width
=
"175"
HorizontalAlignment
=
"left"
CanAutocompleteSelectItems
=
"True"
CanKeyboardNavigationSelectItems
=
"True"
IsDropDownOpen
=
"False"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding Path=Departments}"
ItemTemplate
=
"{StaticResource DeptTemplate}"
SelectedValue="{Binding
Path
=
Model
.Department,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Dept"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Department}"
/>
</
StackPanel
>
-->
<
sdk:Label
Grid.Row
=
"2"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
HorizontalAlignment
=
"Center"
Content
=
"Contractor's Information"
FontWeight
=
"Bold"
/>
<!-- CName -->
<
sdk:Label
Grid.Row
=
"3"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.Cname}" />
<
TextBox
Grid.Row
=
"3"
Grid.Column
=
"1"
Width
=
"565"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.CName,
Mode
=
TwoWay
}" />
<!-- AdressStreet -->
<
sdk:Label
Grid.Row
=
"4"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.AddressStreet}" />
<
TextBox
Grid.Row
=
"4"
Grid.Column
=
"1"
Width
=
"565"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.AddressStreet,
Mode
=
TwoWay
}" />
<!-- City -->
<
sdk:Label
Grid.Row
=
"5"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.City}" />
<
TextBox
Grid.Row
=
"5"
Grid.Column
=
"1"
Width
=
"565"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.City,
Mode
=
TwoWay
}" />
<!-- State -->
<
sdk:Label
Grid.Row
=
"6"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.State}" />
<!-- <ComboBox Grid.Column="1" Grid.Row="5" ItemsSource="{Binding Path=States}" DisplayMemberPath="ShortState" SelectedValue="{Binding Path=Model.State, Mode=TwoWay}" SelectedValuePath="ShortState" HorizontalAlignment="left" Width="175" /> -->
<
telerik:RadComboBox
Grid.Row
=
"6"
Grid.Column
=
"1"
Width
=
"175"
Height
=
"25"
HorizontalAlignment
=
"left"
CanAutocompleteSelectItems
=
"True"
CanKeyboardNavigationSelectItems
=
"True"
DisplayMemberPath
=
"ShortState"
IsDropDownOpen
=
"False"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding Path=States}"
SelectedValue="{Binding
Path
=
Model
.State,
Mode
=
TwoWay
}"
SelectedValuePath
=
"ShortState"
/>
<!-- Zipcode -->
<
sdk:Label
Grid.Row
=
"7"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.Zipcode}" />
<
TextBox
Grid.Row
=
"7"
Grid.Column
=
"1"
Width
=
"175"
Margin
=
"0,4"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"20"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.Zipcode,
Mode
=
TwoWay
}" />
<!-- Citizenship -->
<
StackPanel
Grid.Row
=
"8"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"Citizenship"
/>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Citizenship}"
/>
</
StackPanel
>
<
TextBox
Grid.Row
=
"8"
Grid.Column
=
"1"
Width
=
"565"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.Citizen,
Mode
=
TwoWay
}" />
<!-- Alien -->
<
StackPanel
Grid.Row
=
"9"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.Alien}"
/>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Alien}"
/>
</
StackPanel
>
<
CheckBox
Grid.Row
=
"9"
Grid.Column
=
"1"
VerticalAlignment
=
"Center"
Content
=
""
IsChecked="{Binding
Path
=
Model
.Alien,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
/>
<!-- SSN or Tax ID -->
<
StackPanel
Grid.Row
=
"11"
Grid.Column
=
"1"
Grid.ColumnSpan
=
"2"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.SSN}"
/>
<!-- <sdk:DescriptionViewer Description="{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.SSN}"/> -->
<
TextBox
Width
=
"150"
Margin
=
"5,0,0,0"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.SSN,
Mode
=
TwoWay
}" />
<
sdk:Label
Margin
=
"5,0,0,0"
Content
=
"OR"
FontSize
=
"12"
FontWeight
=
"Bold"
Padding
=
"5"
/>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.TaxID}"
/>
<!-- <sdk:DescriptionViewer Description="{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.TaxID}"/> -->
<
TextBox
Width
=
"150"
Margin
=
"5,0,0,0"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.TaxID,
Mode
=
TwoWay
}" />
</
StackPanel
>
<!-- BusinessLic -->
<
StackPanel
Grid.Row
=
"12"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.BusinessLic}"
/>
<!-- <sdk:DescriptionViewer Description="{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.BusinessLic}"/> -->
</
StackPanel
>
<
TextBox
Grid.Row
=
"12"
Grid.Column
=
"1"
Width
=
"565"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.BusinessLic,
Mode
=
TwoWay
}" />
<!-- EffectiveDate -->
<
StackPanel
Grid.Row
=
"14"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.EffectiveDate}"
/>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.EffectiveDate}"
/>
</
StackPanel
>
<
telerik:RadDatePicker
Grid.Row
=
"14"
Grid.Column
=
"1"
Width
=
"175"
Height
=
"25"
HorizontalAlignment
=
"left"
SelectedDate="{Binding
Path
=
Model
.EffectiveDate,
Mode
=
TwoWay
}"
Style
=
"{StaticResource RadDatePickerStyle}"
/>
<!-- EndContract -->
<
StackPanel
Grid.Row
=
"15"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.EndContract}"
/>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.EndContract}"
/>
</
StackPanel
>
<
telerik:RadDatePicker
Grid.Row
=
"15"
Grid.Column
=
"1"
Width
=
"175"
Height
=
"25"
HorizontalAlignment
=
"left"
SelectedDate="{Binding
Path
=
Model
.EndContract,
Mode
=
TwoWay
}"
Style
=
"{StaticResource RadDatePickerStyle}"
/>
<!-- ScopeOfWork -->
<
StackPanel
Grid.Row
=
"16"
Grid.Column
=
"0"
Orientation
=
"Horizontal"
>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.ScopeOfWork}"
/>
<
sdk:DescriptionViewer
Margin
=
"5,0,0,0"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.ScopeOfWork}"
/>
</
StackPanel
>
<!-- <TextBox Grid.Column="1" Grid.Row="15" Text="{Binding Path=Model.ScopeOfWork, Mode=TwoWay}" HorizontalAlignment="Stretch" MaxLength="5000" VerticalAlignment="Top" Height="100" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" /> -->
<
rtf:RtfDataProvider
RichTextBox
=
"{Binding ElementName=rtbScopeOfWork}"
Rtf="{Binding Model.ScopeOfWork,
Mode
=
TwoWay
}"
SetupDocument
=
"RtfDataProvider_SetupDocument"
/>
<
telerik:RadRichTextBox
x:Name
=
"rtbScopeOfWork"
Grid.Row
=
"16"
Grid.Column
=
"1"
Width
=
"550"
Height
=
"175"
Margin
=
"0,5"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
DocumentInheritsDefaultStyleSettings
=
"True"
FontSize
=
"12"
HorizontalScrollBarVisibility
=
"Hidden"
IsContextMenuEnabled
=
"True"
IsSelectionMiniToolBarEnabled
=
"True"
IsSpellCheckingEnabled
=
"False"
Style
=
"{StaticResource RadRichTextBoxStyle}"
VerticalScrollBarVisibility
=
"Auto"
/>
<!-- MaximumSum -->
<
sdk:Label
Grid.Row
=
"17"
Grid.Column
=
"0"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.MaximumSum}" />
<
TextBox
Grid.Row
=
"17"
Grid.Column
=
"1"
Width
=
"550"
Height
=
"175"
Margin
=
"0,5"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Center"
FontSize
=
"12"
MaxLength
=
"50"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.MaximumSum,
Mode
=
TwoWay
}" />
<!-- INSURANCE -->
<
StackPanel
Grid.Row
=
"18"
Grid.Column
=
"1"
Grid.ColumnSpan
=
"2"
Orientation
=
"Vertical"
>
<
HyperlinkButton
HorizontalAlignment
=
"Center"
Content
=
"Insurance Guidlines"
FontSize
=
"12"
NavigateUri
=
"http://10.20.10.117/docs/InsuranceGuidelines.pdf"
Padding
=
"2"
TargetName
=
"_new"
/>
<
StackPanel
HorizontalAlignment
=
"Center"
Background
=
"LightGray"
Orientation
=
"Horizontal"
>
<
Border
Width
=
"200"
BorderBrush
=
"Black"
BorderThickness
=
"1"
CornerRadius
=
"5"
Padding
=
"5"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
sdk:DescriptionViewer
Width
=
"Auto"
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.ProLiability}"
/>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.ProLiability}"
/>
<
ListBox
x:Name
=
"ProLiability"
DisplayMemberPath
=
"Name"
ItemsSource
=
"{Binding Path=ProfLiabilities}"
SelectedValue="{Binding
Path
=
Model
.ProLiability,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Name"
/>
</
StackPanel
>
</
Border
>
<
Border
Width
=
"200"
BorderBrush
=
"Black"
BorderThickness
=
"1"
CornerRadius
=
"5"
Padding
=
"5"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.AutoLiability}"
/>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.AutoLiability}"
/>
<
ListBox
x:Name
=
"AutoLiability"
DisplayMemberPath
=
"Name"
ItemsSource
=
"{Binding Path=AutoLiabilities}"
SelectedValue="{Binding
Path
=
Model
.AutoLiability,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Name"
/>
</
StackPanel
>
</
Border
>
</
StackPanel
>
<
StackPanel
HorizontalAlignment
=
"Center"
Background
=
"LightGray"
Orientation
=
"Horizontal"
>
<
Border
Width
=
"200"
BorderBrush
=
"Black"
BorderThickness
=
"1"
CornerRadius
=
"5"
Padding
=
"5"
>
<
StackPanel
Orientation
=
"Vertical"
>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.GenLiability}"
/>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.GenLiability}"
/>
<
ListBox
x:Name
=
"GeneralLiability"
DisplayMemberPath
=
"Name"
ItemsSource
=
"{Binding Path=GeneralLiabilities}"
SelectedValue="{Binding
Path
=
Model
.GenLiability,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Name"
/>
</
StackPanel
>
</
Border
>
<
Border
Width
=
"200"
BorderBrush
=
"Black"
BorderThickness
=
"1"
CornerRadius
=
"5"
Padding
=
"5"
>
<
StackPanel
x:Name
=
"spUmbrella"
Orientation
=
"Vertical"
>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.UmbrellaLiability}"
/>
<
sdk:Label
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.UmbrellaLiability}"
/>
<
ListBox
x:Name
=
"UmbrellaLiability"
DisplayMemberPath
=
"Name"
ItemsSource
=
"{Binding Path=UmbrellaLiabilities}"
SelectedValue="{Binding
Path
=
Model
.UmbrellaLiability,
Mode
=
TwoWay
}"
SelectedValuePath
=
"Name"
/>
</
StackPanel
>
</
Border
>
</
StackPanel
>
</
StackPanel
>
<!-- EXHIBITS -->
<
StackPanel
Grid.Row
=
"19"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
Width
=
"550"
HorizontalAlignment
=
"Left"
Orientation
=
"Vertical"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
x:Name
=
"chkExhibitB"
Height
=
"25"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.ExhibitB}"
IsChecked="{Binding
Path
=
Model
.ExhibitB,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
TabIndex
=
"19"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.ExhibitB}"
/>
</
StackPanel
>
</
StackPanel
>
<!-- CHECKBOX SECTION -->
<
StackPanel
Grid.Row
=
"20"
Grid.Column
=
"0"
Grid.ColumnSpan
=
"2"
Width
=
"550"
Orientation
=
"Vertical"
Visibility="{Binding
ElementName
=
chkExhibitB
,
Path
=
IsChecked
,
Converter={StaticResource BoolToVisibilityConverter},
FallbackValue
=
Collapsed
}">
<!-- SUBCONTRACTS -->
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
x:Name
=
"chkSubcontracts"
Height
=
"25"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.Subcontracts}"
IsChecked="{Binding
Path
=
Model
.Subcontracts,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
TabIndex
=
"21"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.Subcontracts}"
/>
</
StackPanel
>
<
StackPanel
HorizontalAlignment
=
"Left"
Orientation
=
"Vertical"
Visibility="{Binding
ElementName
=
chkSubcontracts
,
Path
=
IsChecked
,
Converter={StaticResource BoolToVisibilityConverter},
FallbackValue
=
Collapsed
}">
<
StackPanel
Orientation
=
"Horizontal"
>
<
sdk:Label
Width
=
"150"
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.FirstExhibit}"
/>
<
TextBox
x:Name
=
"txtExhibit1"
Width
=
"200"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.FirstExhibit,
Mode
=
TwoWay
}"
Visibility
=
"Visible"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.FirstExhibit}"
/>
</
StackPanel
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
sdk:Label
Width
=
"150"
Content
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscLabels.SecondExhibit}"
/>
<
TextBox
x:Name
=
"txtExhibit2"
Width
=
"200"
Style
=
"{StaticResource TextBoxStyle}"
Text="{Binding
Path
=
Model
.SecondExhibit,
Mode
=
TwoWay
}"
Visibility
=
"Visible"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.SecondExhibit}"
/>
</
StackPanel
>
</
StackPanel
>
<!-- TRAVEL -->
<
CheckBox
x:Name
=
"chkTravel"
Height
=
"25"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.Travel}"
IsChecked="{Binding
Path
=
Model
.Travel,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
TabIndex
=
"26"
/>
<!-- CustomClauses -->
<
StackPanel
Orientation
=
"Horizontal"
>
<
CheckBox
x:Name
=
"chkCustom"
Height
=
"25"
Content="{Binding Source={StaticResource ApplicationResources},
Path
=
PscLabels
.CustomClauses}"
IsChecked="{Binding
Path
=
Model
.HasCustomClauses,
Mode
=
TwoWay
}"
IsThreeState
=
"False"
TabIndex
=
"27"
/>
<
sdk:DescriptionViewer
Description
=
"{Binding Source={StaticResource ApplicationResources}, Path=PscTooltips.CustomClauses}"
/>
</
StackPanel
>
<
StackPanel
x:Name
=
"canvasCustom"
Width
=
"550"
Height
=
"auto"
VerticalAlignment
=
"Center"
Orientation
=
"Vertical"
Visibility="{Binding
ElementName
=
chkCustom
,
Path
=
IsChecked
,
Converter={StaticResource BoolToVisibilityConverter},
FallbackValue
=
Collapsed
}">
<
rtf:RtfDataProvider
RichTextBox
=
"{Binding ElementName=rtbCustomClause}"
Rtf="{Binding Model.CustomClauses,
Mode
=
TwoWay
}"
SetupDocument
=
"RtfDataProvider_SetupDocument"
/>
<
telerik:RadRichTextBox
x:Name
=
"rtbCustomClause"
Grid.Row
=
"15"
Grid.Column
=
"1"
Width
=
"550"
Height
=
"175"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Top"
DocumentInheritsDefaultStyleSettings
=
"True"
FontSize
=
"12"
HorizontalScrollBarVisibility
=
"Hidden"
IsContextMenuEnabled
=
"True"
IsSelectionMiniToolBarEnabled
=
"True"
IsSpellCheckingEnabled
=
"False"
Style
=
"{StaticResource RadRichTextBoxStyle}"
VerticalScrollBarVisibility
=
"Auto"
/>
</
StackPanel
>
</
StackPanel
>
<!-- BUTTONS -->
<
StackPanel
Name
=
"spButtons"
Grid.Row
=
"21"
Grid.Column
=
"1"
HorizontalAlignment
=
"Center"
Orientation
=
"Horizontal"
>
<
telerik:RadButton
x:Name
=
"OKButton"
Width
=
"75"
Height
=
"23"
Click
=
"OKButton_Click"
Content
=
"Save"
IsEnabled="{Binding
Path
=
CanSave
,
Mode
=
TwoWay
}"
Margin
=
"0,0,5,0"
/>
<
telerik:RadButton
x:Name
=
"CancelButton"
Width
=
"75"
Height
=
"23"
Click
=
"CancelButton_Click"
Content
=
"Cancel"
Margin
=
"5"
/>
</
StackPanel
>
<!-- Contract System Logo -->
<!--
<
StackPanel
Grid.Row
=
"22"
Grid.Column
=
"0"
VerticalAlignment
=
"Bottom"
>
<
Image
Source
=
"/ContractSystem;component/Assets/Quill6.JPG"
Width
=
"33"
Grid.Column
=
"0"
Height
=
"33"
HorizontalAlignment
=
"Left"
VerticalAlignment
=
"Bottom"
IsHitTestVisible
=
"True"
/>
</
StackPanel
>
-->
</
Grid
>
</
Border
>
<!-- FOR TESTING PURPOSES -->
<!--
<
Border
Width
=
"125"
BorderBrush
=
"Gray"
BorderThickness
=
"2"
CornerRadius
=
"10"
>
<
StackPanel
>
<
sdk:Label
Content
=
"For office use only"
Foreground
=
"Red"
/>
<
sdk:Label
Content
=
"{Binding Path=Model.Type, Mode=TwoWay}"
/>
<
sdk:Label
Content
=
"{Binding Path=Model.ContractType, Mode=TwoWay}"
/>
<
sdk:Label
Content
=
"{Binding Path=Model.AddedBy, Mode=TwoWay}"
/>
<
sdk:Label
Content
=
"{Binding Path=Model.DateAdded, Mode=TwoWay}"
/>
</
StackPanel
>
</
Border
>
-->
</
StackPanel
>
</
ScrollViewer
>
</
controls:ChildWindow
>