Search found 2125 matches
- Yesterday, 10:56
- Forum: General Discussion
- Replies: 3
- Views: 10
Re: Mask on rectangle
Nice, I'm marking this as closed.
- Yesterday, 10:56
- Forum: General Discussion
- Replies: 4
- Views: 13
Re: Using MarkupExtension ValueConverters does not work
Any deviation from WPF we consider it a bug, I was trying to provide a solution while we solve it.
I created the corresponding ticket in our bugtracker to fix it in a future release: #1975
Thanks for the feedback.
I created the corresponding ticket in our bugtracker to fix it in a future release: #1975
Thanks for the feedback.
- 21 Apr 2021, 17:17
- Forum: General Discussion
- Replies: 3
- Views: 10
Re: Mask on rectangle
You can set the property ClipToBounds to true in a parent container:
Is this what you are looking for?
Code: Select all
<Grid Width="200" Height="200" ClipToBounds="True">
<Button Content="Button"/>
</Button>
- 21 Apr 2021, 17:15
- Forum: General Discussion
- Replies: 4
- Views: 13
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 ...
- 21 Apr 2021, 14:13
- Forum: General Discussion
- Replies: 5
- Views: 12
Re: Storyboard c++
Great, marking this as solved.
- 21 Apr 2021, 13:16
- Forum: General Discussion
- Replies: 5
- Views: 12
Re: Storyboard c++
Probably because your object doesn't have a TranslateTransform set in its RenderTransform property.
Code: Select all
<Rectangle>
<Rectangle.RenderTransform>
<TranslateTransform/>
</Rectangle.RenderTransform>
</Rectangle>
- 21 Apr 2021, 11:54
- Forum: General Discussion
- Replies: 5
- Views: 12
Re: Storyboard c++
You can register to the Completed event of the Storyboard:
Code: Select all
Storyboard* storyboard = FindResource<Storyboard*>("SomeAnimation");
storyboard->Completed() += [](BaseComponent*, const TimelineEventArgs&)
{
// do something
};
storyboard->Begin(this);
- 21 Apr 2021, 11:47
- Forum: General Discussion
- Replies: 18
- Views: 5790
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...
- 19 Apr 2021, 13:34
- Forum: General Discussion
- Replies: 18
- Views: 5790
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...
- 19 Apr 2021, 11:12
- Forum: General Discussion
- Replies: 18
- Views: 5790
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?