Search found 6 matches

by bridgetfoote
29 Feb 2024, 21:01
Forum: General Discussion
Replies: 5
Views: 1075

Re: Custom behavior with a group of setters to apply based on a feature flag

Actually, nevermind the above again :) I got it to work but only when the "TargetName" property is also set in the Setter. Any reason why it would only work this way?
by bridgetfoote
29 Feb 2024, 20:04
Forum: General Discussion
Replies: 5
Views: 1075

Re: Custom behavior with a group of setters to apply based on a feature flag

Actually nevermind the above, I got it to work by instead declaring the setters property in the xaml in this way <ExperimentationBehavior Feature="featureFlagName"> <ExperimentationBehavior.Setters> <Setter Property="Visibility" Value="Collapsed"/> <Setter Property=&quo...
by bridgetfoote
29 Feb 2024, 14:33
Forum: General Discussion
Replies: 5
Views: 1075

Re: Custom behavior with a group of setters to apply based on a feature flag

Thanks for this! I'm also having trouble passing the BaseSetterCollection as a dependency property to the behavior through the xaml. I have the property declared in the header of the behavior like this static inline const Noesis::DependencyProperty* s_settersProperty; and then in my cpp file I have ...
by bridgetfoote
27 Feb 2024, 18:34
Forum: General Discussion
Replies: 5
Views: 1075

Custom behavior with a group of setters to apply based on a feature flag

Hi! I am trying to see if it is possible to create a custom behavior that has a property indicating a feature flag name and a property that is a BaseSetterCollection to apply if the feature flag is enabled. I have overriden OnAttached and check for the state of the feature flag in that function and ...
by bridgetfoote
16 Nov 2023, 17:11
Forum: General Discussion
Replies: 1
Views: 901

Custom ItemsControl to maintain focused index

Hello, trying to create a custom items control that maintains the index of focus when an item is replaced. For our use case we have an ItemsControl that contains a number of content cards. While we are retrieving the information to create the proper cards in the ItemsControl, it is initialized with ...
by bridgetfoote
10 May 2023, 20:02
Forum: General Discussion
Replies: 1
Views: 1261

Crash in KeyDown when custom control is in focus

Created a custom component that extends UserControl and ICommandSource that is modeled off of BaseButton. We were seeing a crash in the KeyDown function in the noesis source code when raising the event to the focused component. We are thinking that the reason is because we did not include a destruct...