Search found 2702 matches
- 19 Jan 2023, 14:15
- Forum: General Discussion
- Replies: 3
- Views: 142
Re: Adding sound to buttons with a ResourceDictionary
You're right, I edited my xaml to fix the missing b: prefix. Marking this as solved then.
- 18 Jan 2023, 20:13
- Forum: General Discussion
- Replies: 3
- Views: 142
Re: Adding sound to buttons with a ResourceDictionary
If you want to reuse interactivity triggers in several instances of a control you can define them in the Style by using the StyleInteraction attached property. For example, in our QuestLog sample we are doing that: https://github.com/Noesis/Tutorials/blob/master/Samples/QuestLog/C%2B%2B/Data/Resourc...
- 17 Jan 2023, 21:32
- Forum: General Discussion
- Replies: 5
- Views: 153
Re: CollectionFilterBehavior example
I'm not getting how exactly I can bind it from C# side of it. Can you show example of TextPredicate? The ViewModel should expose a property with the filter predicate object: public class MyViewModel { public StringFilterPredicate TextPredicate { get; private set; } public string SearchText { get { ...
- 17 Jan 2023, 21:10
- Forum: General Discussion
- Replies: 4
- Views: 158
Re: TypeArguments for generic UserControl
Your solution of defining a base class with the concrete type looks the best approach to make it work in both Blend and Noesis.
I don't see any other way to workaround the lack of TypeArguments, sorry.
I don't see any other way to workaround the lack of TypeArguments, sorry.
- 17 Jan 2023, 21:04
- Forum: General Discussion
- Replies: 4
- Views: 160
Re: HitTest doesn't work for IsHitTestVisible?
HitTestFilterBehavior ContinueSkipSelfAndChildren: Do not hit test against the current Visual or its descendants ContinueSkipChildren: Hit test against the current Visual, but not its descendants ContinueSkipSelf: Do not hit test against the current Visual, but hit test against its descendants Cont...
- 13 Jan 2023, 20:22
- Forum: General Discussion
- Replies: 5
- Views: 153
Re: CollectionFilterBehavior example
This is a simple xaml using the CollectionFilterBehavior: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:noesis="clr-namespac...
- 13 Jan 2023, 20:16
- Forum: General Discussion
- Replies: 4
- Views: 160
Re: HitTest doesn't work for IsHitTestVisible?
It may seem strange but the HitTest method without callbacks returns hits for all visuals, even if they have IsHitTestVisible=False (also those with Visibility=Hidden, or Opacity=0, or IsEnabled=False). But you can use the version with callbacks to supply your own Filter and Result callbacks: public...
- 13 Jan 2023, 19:27
- Forum: General Discussion
- Replies: 3
- Views: 133
Re: Dynamically bind button commands in Data Template Items
Happy to help, marking this as solved.
- 13 Jan 2023, 14:30
- Forum: General Discussion
- Replies: 4
- Views: 111
Re: CustomConverter: What is the target type of a DoubleAnimation targeting RenderTransform.X?
Boxing a nullable will return null if it has no value or will box the underlying type: Ptr<BoxedValue> boxed1 = Boxing::Box(Nullable<float>()); // boxed1 will be nullptr Ptr<BoxedValue> boxed2 = Boxing::Box(Nullable<float>(123.0f)); // boxed2 will store a simple float So having a float value it does...
- 12 Jan 2023, 20:10
- Forum: General Discussion
- Replies: 2
- Views: 71
Re: Meta file conflicts in 3.1.6
I've created ticket #2489 to track this issue.