Search found 2997 matches

by sfernandez
29 Feb 2024, 12:22
Forum: General Discussion
Replies: 6
Views: 217

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: 143

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: 213

Re: LocExtension with Binding

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

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: 87

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: 188

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: 213

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: 87

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: 153

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...
by sfernandez
20 Feb 2024, 12:26
Forum: General Discussion
Replies: 6
Views: 213

Re: LocExtension with Binding

Hi Otter, The LocExtension was designed to use static keys, because our understanding was that any dynamic data will be provided by the MVVM itself. So instead of using the LocExtension you would directly use a binding on the target property, and the binding will provide the translated data. <DataTe...