You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
And, when I try object selection = (NodeSelection)o; I get an error saying that object o can not be cast into the class NodeSelection. I would like to be able to access other information associated with my node, and hoped to do so via the method illustrated in the guide. But I remain unable to change the class of variable o in any way.
Is there something I am doing incorrectly that is causing this problem?
The text was updated successfully, but these errors were encountered:
I have a function, as below, attached to a NodeView widget:
`protected void onSongSelected(object o, RowActivatedArgs args)
{
object selection = o;
}'
By using
GetType()
I have been able to verify that o (and thus selection also) is of type Gtk.NodeView().However, I've been reading through this tutorial from Mono for working with Treeview and Nodeview Gtk# widgets: https://www.mono-project.com/docs/gui/gtksharp/widgets/nodeview-tutorial/
And, when I try
object selection = (NodeSelection)o;
I get an error saying that object o can not be cast into the class NodeSelection. I would like to be able to access other information associated with my node, and hoped to do so via the method illustrated in the guide. But I remain unable to change the class of variable o in any way.Is there something I am doing incorrectly that is causing this problem?
The text was updated successfully, but these errors were encountered: