Advanced Forum Search Results
-
[quote user="Ken Tucker"]
First set the type for the list
[/quote]
It was typo.
When I insert the code to Source Code window it removes all occurences of <xxxx>. So it removed <Product>
[quote user="Ken Tucker"]
Second the class you are binding to must be public
[/quote]
I mentioned it in my post that ...
-
Xaml:
<data:DataGrid x:Name="dataGrid">
</data:DataGrid>
C#: public partial class Page
{
public Page()
{
InitializeComponent();
InitGrid();
}
private void InitGrid()
{
var products = new List<Product>
{
...
-
Nice explanation.
What method are you talking about?
Did you see the sample code? Did you try it?
I have an instance of listbox, and I have an instance of some class which is used as a data source for SelectedItem property of listbox.
Listbox instance and datasource are in the same assembly.
So there is still a question: Why I cannot bind to ...
-
Hi, Amanda.
I do really understand what internal means.
However, I do not understand why I cannot use my internal class as a binding source.
Thanks,
Alex.
-
Setting an object of internal class as a Source of Binding object gives an exception when SetBinding method called:
{System.MethodAccessException: SilverlightApplication7.TestClass.get_TestProperty()
at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 ...
-
ComboBox doesn't call ToString() on enumeration types.
XAML:
<StackPanel>
<ListBox x:Name="listBox" />
<ComboBox x:Name="comboBox" />
</StackPanel>
C#
1 public partial class Page : UserControl
2 {
3 public static T[] ...
-
It is definitely a bug. ListBox and ComboBox show the same source differently. So one of them has a bug. Looks like this one is ComboBox :).
Consider the following code:
XAML:
<StackPanel>
<ListBox x:Name="listBox" />
<ComboBox x:Name="comboBox" ...