Search found 3008 matches

by sfernandez
29 Feb 2024, 13:00
Forum: General Discussion
Replies: 6
Views: 277

Re: Unity/C# without XAML?

You can have a collection of collections if you need some kind of grouping, if that makes sense.
For example a list of categories, and then each category a list of options.
In that scenario you can even define expanders for each category to group each list of options.
by sfernandez
29 Feb 2024, 12:22
Forum: General Discussion
Replies: 6
Views: 277

Re: Unity/C# without XAML?

Although it is possible just to create UI elements in code: StackPanel stackV = new StackPanel(); TextBlock tb = new TextBlock("Header") { Foreground = Brushes.White, FontWeight = FontWeight.Bold }; stack.Children.Add(tb); { StackPanel stackH = new StackPanel { Orientation = Orientation.Ho...
by sfernandez
29 Feb 2024, 12:03
Forum: General Discussion
Replies: 5
Views: 159

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

Hi, You should get the value from the getter and apply it to the associated object: void ApplySetter(BaseSetter* setter) { DependencyObject* dob = GetAssociatedObject(); if (dob == nullptr) return; Setter* setter_ = (Setter*)setter; const DependencyProperty* dp= setter_->GetProperty(); BaseComponent...
by sfernandez
26 Feb 2024, 16:56
Forum: General Discussion
Replies: 6
Views: 260

Re: LocExtension with Binding

Thanks for both tickets.
by sfernandez
26 Feb 2024, 16:55
Forum: General Discussion
Replies: 4
Views: 406

Re: Support of System.Threading Class

Hi, unfortunately this feature is still not implemented in 3.2.3 version.

Our View exposes a way to create timers though, so you can always create like this:
int timerId = element.View.CreateTimer(intervalMs, OnTimerCallback);
Could that work for you?
by sfernandez
22 Feb 2024, 10:55
Forum: General Discussion
Replies: 3
Views: 114

Re: Visual states are not running storyboards within a control template

Could you please open a ticket in our bugtracker about this?
by sfernandez
22 Feb 2024, 10:54
Forum: General Discussion
Replies: 6
Views: 223

Re: ImageSource fallback only works when property is not registered.

Thanks for the ticket!
by sfernandez
22 Feb 2024, 10:53
Forum: General Discussion
Replies: 6
Views: 260

Re: LocExtension with Binding

Thanks for the report!

Regarding the issue with ProvideValue not being called when templates are applied I understand now what is happening. This is a limitation of our current implementation of templates. Could you please report this as a separate issue?
by sfernandez
20 Feb 2024, 12:57
Forum: General Discussion
Replies: 3
Views: 114

Re: Visual states are not running storyboards within a control template

I tried the following xaml in our Xamltoy and works as expected: <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid.Resources> <Style TargetType="{x:Type TabItem}"> <Setter Property="...
by sfernandez
20 Feb 2024, 12:45
Forum: General Discussion
Replies: 5
Views: 193

Re: To test the created prototype without connecting with Unity Engine

I guess you are using Blend 2022 right? Microsoft is breaking many things in its designer regarding WPF support. It is complaining about incorrect issues, you can even hit F5 to run the project without problems :( I was testing on Blend 2019 because it has better support for WPF projects and the des...