Search found 25 matches

by AnKor
23 May 2024, 08:46
Forum: General Discussion
Replies: 10
Views: 4050

Re: Cannot show ContextMenu programmatically when instantiating it from Resources

Hi! This is an old thread, but I have a similar issue in latest version 3.2.3 - I want to programmatically show context menu from resources, but it either doesn't show or behaves weird. This can be reproduced if I modify "Buttons" example from SDK like this: Resources.xaml <ContextMenu x:K...
by AnKor
06 May 2024, 20:11
Forum: General Discussion
Replies: 3
Views: 617

Re: CharacterSpacing is not inherited from container

Created #3301.
Thank you!

So the "magic" is just the Inherits flag? Interesting, I knew about the flag, but I thought there's something special in the TextBlock itself.
by AnKor
06 May 2024, 12:28
Forum: General Discussion
Replies: 3
Views: 617

CharacterSpacing is not inherited from container

Hi! TextBlock element has some magic (which I still don't fully understand) that allows it to inherit various properties from ContentControl. For example here it inherits foreground and font size from Button. However this magic doesn't seem to work with CharacterSpacing attached property (using late...
by AnKor
14 Dec 2023, 14:17
Forum: General Discussion
Replies: 2
Views: 2385

Re: Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements

Yes, it works now. Thanks!
by AnKor
13 Dec 2023, 11:10
Forum: General Discussion
Replies: 2
Views: 2385

Visual Studio doesn't like noesis:Text.CharacterSpacing on Run elements

An attempt to do this: <Run noesis:Text.CharacterSpacing="100">Hello World!</Run> causes error in VS2022 designer: Error XLS0516 Property 'CharacterSpacing' is not attachable to elements of type 'Run'. Error XDG0045 The attached property "CharacterSpacing" can only be applied to ...
by AnKor
11 Dec 2023, 21:39
Forum: General Discussion
Replies: 2
Views: 3316

Re: Are there any benefits of freezing objects in resources?

Thank you! This is very useful info.
by AnKor
06 Dec 2023, 12:26
Forum: General Discussion
Replies: 2
Views: 3316

Are there any benefits of freezing objects in resources?

To be honest I don't fully understand how Freezable works, but some people recommend freezing objects which are placed in a resource dictionary. This can even be done directly in XAML like this: xmlns:p="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" p:Freeze="True...
by AnKor
16 May 2023, 13:38
Forum: General Discussion
Replies: 1
Views: 533

IView update rate vs actual FPS

Hi! We use separate threads for render and update and I was thinking about an efficient way to ensure that update rate doesn't go ahead or fall behind the actual FPS. I see that https://www.noesisengine.com/docs/Gui.Core.RenderingTutorial.html has a note: 'Update' will block if it is invoked many ti...
by AnKor
04 Apr 2023, 12:38
Forum: General Discussion
Replies: 3
Views: 1079

Re: How to prevent keyboard focus from cycling?

"Contained" works. Thank you! I didn't think about it because docs say "focus returns to the first or the last item when the end or the beginning of the container is reached", so I thought it would be the same as "Cycle". Now I see that this confusion comes from Microso...