Search found 2983 matches

by sfernandez
11 Mar 2024, 11:25
Forum: General Discussion
Replies: 4
Views: 140

Re: Issues with TabControl Highlighting

Just for reference for other users, in the ItemTemplate you shouldn't put a TabItem, as I explained above the TabItem is automatically created by the TabControl when using ItemsSource. So either you use a TextBlock in the TabItem template and bind its text directly to the appropriate item property (...
by sfernandez
08 Mar 2024, 12:27
Forum: General Discussion
Replies: 4
Views: 140

Re: Issues with TabItem highlighting when unecessary

Hi, For a TabControl that uses ItemsSource, TabItems are automatically created by the TabControl for each item in the source collection, and it assigns the style set in ItemContainerStyle property, so this is where you have set your custom TabItem style: <TabControl x:Name="BuildingTabs" I...
by sfernandez
08 Mar 2024, 11:58
Forum: General Discussion
Replies: 6
Views: 175

Re: Another Unity Editor crash...

Thanks a lot for the repro, I was able to find what was going on and provided some patches in the tracker.
by sfernandez
04 Mar 2024, 11:50
Forum: General Discussion
Replies: 2
Views: 180

Re: Multi User views

Hi, sorry for the very late reply but we were trying to get our heads around this problem. One way to be implemented from outside is by specify some attached property to define if a control is being controlled by any specific gamepad (so you can use this to show some visual cue in your templates), a...
by sfernandez
04 Mar 2024, 10:52
Forum: General Discussion
Replies: 5
Views: 135

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

The Setter.Property uses a converter to find the dependency property from the name. In case the Setter is used inside a Style or a Template, if you don't specify a TargetName, it can use the TargetType to resolve the type to search for the property. As you're not inside a Style or Template you need ...
by sfernandez
29 Feb 2024, 13:00
Forum: General Discussion
Replies: 6
Views: 168

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

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

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

Re: LocExtension with Binding

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

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?