Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: DatePicker GetBindingExpression returning null [5203]

$
0
0
Hi
I am having a problem with the date picker in that does not return a binding expression. Here is my xaml

<toolkitControls:DatePicker Name="MyDatePicker" Text="{Binding Model.MyDate, NotifyOnValidationError=true, ValidatesOnExceptions=true}" />

and in the code I have

var expression = MyDatePicker.GetBindingExpression(DatePicker.TextProperty);
expression.UpdateSource();

The problem lies in the fact that the expression is null. Given that I have obviously bound to the text property, I can only assume that this is a bug.

Regards
Darren
Comments: ** Comment from web user: michael1047 **

Also returns null on comboBoxes:
projectScope.GetBindingExpression(ComboBox.SelectedValueProperty).UpdateSource(); //Object not set error

Xaml:
<ComboBox x:Name="projectScope" Grid.Column="1" Grid.Row="3" SelectedValuePath="Content" Style="{x:Null}" Margin="0,4,0,4"
SelectedValue="{Binding Path=ProjectScope, UpdateSourceTrigger=Explicit, Mode=TwoWay, NotifyOnValidationError=True}" Grid.ColumnSpan="2"
ItemsSource="{StaticResource ProjectScopes}"
/>


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>