Hi,
Thank you for your answer.
Unfortunately it's not working with these changes either.
EDIT: Oop, my bad, it's actually working.
Also, is there a good debugging tool for Noesis? So far, I've printed some logs in a file at runtime when working with the XamlPlayer, but a quick way to know who has the mouse capture/keyboard focus at runtime would be very valuable.
Sorry for the question-storm in the topic, I'm still not familiar with several things in the framework and as a result, I get stuck regularly. I have a custom control deriving from ItemsControl with a StackPanel as ItemHost. I'd like to pass the StackPanel orientation as a property of my control. But assigning the value in the Xaml file does not make any difference, and even changing the default value does not affect the finale layout.
Get/Set signatures:
Noesis::Gui::Orientation GetOrientation() const;
void SetOrientation(Noesis::Gui::Orientation orientation);
Registry:
data->RegisterProperty<Noesis::Gui::Orientation>(
OrientationProperty,
"Orientation",
Noesis::Gui::FrameworkPropertyMetadata::Create(Noesis::Gui::Orientation::Orientation_Horizontal, Noesis::Gui::FrameworkOptions::FrameworkOptions_None));
Template:
<StackPanel Orientation="{Binding Orientation, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" IsItemsHost="True" />
Usage:
<ReorderablePanel Style="{StaticResource DefaultStyleKey}" Orientation="Vertical">
I think it might have something to do with the FrameworkOptions in the registry, but I haven't find the solution yet. [/i]
EDIT: I've found what the problem was. I've put the Property in the wrong class and did not get any warning. It took me quite some time to find out, sorry about that.
Do you see what the problem is?