Advanced Forum Search Results
-
Hi
I am also struggling to set the selectedItem of the combobox in code. set the ItemsSource to a KeyValuePair. I then try set the SelectedIndex with the following codeKeyValuePair<Guid, string> item = new KeyValuePair<Guid, string>(currentDataObject.ItemTypeID, currentDataObject.Description);
cboItemType.SelectedItem = ...
-
A Funny one. When I have multiple rows in a datagrid and at least one of the columns has the exact same data in it, I am unable to select the second row. I can only ever select the first row????
Any help on this please.......
-
Hi,
I am consuming a WCF service in my Silverlight app. I am using sutom dataobject eg PersonDO(). All has been going well until last night when suddenly when calling certain async functions through the wcf service return this error "The remote server returned an error: NotFound".
This is not happening accross all functions calls ...
-
I cannot seem to get this right either. The code i have tried is
myPath.SetValue(System.Windows.Media.Geometry.TransformProperty, myString);
and
myPath.SetValue(System.Windows.Shapes.Path.DataProperty, myString);
both give me similar errors mentioned in this post.
Can someone help?????????
-
Thanks sladapter
Worked like a charm.
-
Hi I know this is quite a while later but...
I have tried the code sample above and it does not set my style at runtime. Here is my code
Button newButton = new Button(){
Content = itemDescription,HorizontalAlignment = HorizontalAlignment.Left,Style = (Style)Resources["redButton"]
};
One difference is that my style is in ...