Search found 2123 matches

by sfernandez
Today, 17:17
Forum: General Discussion
Replies: 2
Views: 4

Re: Mask on rectangle

You can set the property ClipToBounds to true in a parent container:
<Grid Width="200" Height="200" ClipToBounds="True">
  <Button Content="Button"/>
</Button>
Is this what you are looking for?
by sfernandez
Today, 17:15
Forum: General Discussion
Replies: 2
Views: 4

Re: Using MarkupExtension ValueConverters does not work

Yes, the problem is in Noesis we don't support extending a MarkupExtension and implementing the IValueConverter at the same time. You should just implement the IValueConverter interface and use it as a static resource: public class EnumComparisonConverter : IValueConverter { #region IValueConverter ...
by sfernandez
Today, 14:13
Forum: General Discussion
Replies: 5
Views: 11

Re: Storyboard c++

Great, marking this as solved.
by sfernandez
Today, 13:16
Forum: General Discussion
Replies: 5
Views: 11

Re: Storyboard c++

Probably because your object doesn't have a TranslateTransform set in its RenderTransform property.
<Rectangle>
  <Rectangle.RenderTransform>
    <TranslateTransform/>
  </Rectangle.RenderTransform>
</Rectangle>
by sfernandez
Today, 11:54
Forum: General Discussion
Replies: 5
Views: 11

Re: Storyboard c++

You can register to the Completed event of the Storyboard:
Storyboard* storyboard = FindResource<Storyboard*>("SomeAnimation");
storyboard->Completed() += [](BaseComponent*, const TimelineEventArgs&)
{
  // do something
};
storyboard->Begin(this);
by sfernandez
Today, 11:47
Forum: General Discussion
Replies: 18
Views: 5780

Re: The calling thread cannot access this object because a different thread owns it.

I would understand as the Button's Content take its value from NumericUpDownControl's Content, which I suppose is initialized in the parent MainWindow.xaml. No, the Content of the NumericUpDownControl is defined by the NumericUpDownControl.xaml. Setting UserControl's content in the parent MainWindo...
by sfernandez
19 Apr 2021, 13:34
Forum: General Discussion
Replies: 18
Views: 5780

Re: The calling thread cannot access this object because a different thread owns it.

The problem is in the UI tree, not the binding type. With that binding you are creating this loop: <UserControl> (NumericUpDownControl) <Grid> (this is the NumericUpDownControl Content) <Button> (You are setting here the Grid (Button's parent) as Content) </Button> </Grid> </UserControl> What you pr...
by sfernandez
19 Apr 2021, 11:12
Forum: General Discussion
Replies: 18
Views: 5780

Re: The calling thread cannot access this object because a different thread owns it.

I see you are binding Content property of the NumericUpDownControl to the Content of the Button, creating a loop in the logical tree, I guess you wanted to bind Value property instead. Anyway, we should detect those situations and don't crash, could you please report it?
by sfernandez
19 Apr 2021, 10:57
Forum: General Discussion
Replies: 1
Views: 22

Re: ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick

Hello, in Noesis we map right analog stick to the Scroll functions of the IView that are then converted to MouseWheel events. And lef/right triggers to the PageUp/Down keys. We will analyze this deviation from UWP because we should probably generate the corresponding keys too, could you please creat...
by sfernandez
19 Apr 2021, 10:45
Forum: General Discussion
Replies: 3
Views: 28

Re: SetFocusAction TargetName only works when inside the target

Yes, behaviors and triggers are attached to the associated object as they appear in the tree, so the registration of events follows the same order.