Search found 2257 matches

by sfernandez
Yesterday, 13:37
Forum: General Discussion
Replies: 1
Views: 1719

Re: Access violation in second Noesis.GUI.Init() call

Hello, which version are you using? I recommend you upgrade to the latest version in our downloads page. Why do you need to shut down Noesis and initialize it again? Our library is designed to be initialized once at start of the application and shut down when exiting. In fact, calling Init() after S...
by sfernandez
Yesterday, 13:15
Forum: General Discussion
Replies: 1
Views: 1850

Re: Remove Scrollbar / Scrollviewer animation

Hi, the ScrollBar style defined by our theme can be found here: https://github.com/Noesis/Managed/blob/master/Src/NoesisApp/Theme/Theme/NoesisTheme.Styles.xaml#L849-L971 You can create a local style for the ScrollBar in your application removing those animations and showing the buttons and bar by de...
by sfernandez
24 Jul 2021, 01:33
Forum: General Discussion
Replies: 2
Views: 2928

Re: How to register attached property of complex type?

For ref counted objects (inheriting from BaseComponent) we are storing the dependency property using a Ptr and the definition should look like this: data->RegisterProperty<Ptr<TreeViewItem>>(SelectedItemsStartProperty, "SelectedItemsStart", FrameworkPropertyMetadata::Create<Ptr<TreeViewItem>>(nullpt...
by sfernandez
23 Jul 2021, 18:44
Forum: General Discussion
Replies: 3
Views: 3747

Re: Binding to a UserControl's property which is bound to VM

TextBox's Text property is defined to bind TwoWay by default: data->RegisterProperty<String>(TextProperty, "Text", FrameworkPropertyMetadata::Create(String(), FrameworkPropertyMetadataOptions_BindsTwoWayByDefault, UpdateSourceTrigger_LostFocus)); You can define your UserControl's Text property the s...
by sfernandez
23 Jul 2021, 18:18
Forum: General Discussion
Replies: 2
Views: 3135

Re: UIElement::IsVisibleProperty defaults to true

This is a bug, I just checked with WPF and the default value for that property is false.
Could you please report it in our bugtracker?
by sfernandez
20 Jul 2021, 19:09
Forum: General Discussion
Replies: 2
Views: 3480

Re: Attached property class with Noesis::Type property

Hi, try with a pointer like we did with FrameworkElement.DefaultStyleKey property:
data->RegisterProperty<const Type*>(DefaultStyleKeyProperty, "DefaultStyleKey",
        FrameworkPropertyMetadata::Create<const Type*>(nullptr));
by sfernandez
19 Jul 2021, 13:10
Forum: General Discussion
Replies: 2
Views: 5388

Re: Focus a disabled item

When a control is disabled (its IsEnabled property is set to false) the user cannot give the control keyboard focus by clicking on it or by use of the tab key. Disabled controls cannot get focus, even if both their Focusable and IsTabStop properties are set to true. And unfortunately there is no pro...
by sfernandez
16 Jul 2021, 16:27
Forum: General Discussion
Replies: 2
Views: 4977

Re: Value cannot be assigned to the property (property has type 'Noesis.Effect', value has type 'DropShadowEffect')

I guess this is with Noesis 3.0.12, right? This looks like a bug we solved for the upcoming 3.1 version. Until you upgrade there is a workaround, you can define the property of type object: public static readonly DependencyProperty ContentEffectProperty = DependencyProperty.Register( "ContentEffect"...
by sfernandez
15 Jul 2021, 19:20
Forum: General Discussion
Replies: 12
Views: 14942

Re: Scrolling ScrollViewer with RStick when not in focus

Glad to hear you figured it out.
I was going to say that if you are not rendering every frame you will be getting lots of updates, and it didn't seem a good idea to send thousands of scroll events per second.
by sfernandez
15 Jul 2021, 19:14
Forum: General Discussion
Replies: 11
Views: 7833

Re: Unit health bars with NoesisGUI

1. I was unbinding first to make sure I only register once to the element's SizeChanged event. 2. In C++ a property changed function should be like this: static void OnPosChanged(Noesis::BaseComponent* obj, const Noesis::DependencyPropertyChangedEventArgs& e) { if (Noesis::FrameworkElement* element ...