Search found 180 matches

by nikobarli
20 Sep 2017, 03:17
Forum: General Discussion
Replies: 5
Views: 2648

Re: Multiple views sharing the same ViewModel/Model

Ok, thanks for the confirmation. We are thinking using one UI thread for all the views, so I think it should be OK.
by nikobarli
19 Sep 2017, 08:53
Forum: General Discussion
Replies: 5
Views: 2648

Re: Multiple views sharing the same ViewModel/Model

Hi @ai_enabled, Thanks for your information ! Yes, my case will be similar like yours. For example, there are application objects that have a list of operations can be acted upon them. This list may be activated as a context menu by right-clicking on the object, or through floating action panel (whi...
by nikobarli
19 Sep 2017, 08:36
Forum: General Discussion
Replies: 7
Views: 2454

Re: Some limitations of ObservableCollection

Anyway, we are aware of this limitation and we are working to improve it in the new type architecture. ObservableCollection should support simple structs, having to use a BaseComponent is quite a memory overhead in many scenarios. Yes, since we will extensively used ObservableCollection in our appl...
by nikobarli
19 Sep 2017, 08:28
Forum: General Discussion
Replies: 8
Views: 2434

Re: Cannot properly use NewValue/OldValue of DependencyPropertyChangedEventArgs

Hi, Thanks, I confirmed I can now get the old/new value correctly. Should find that out myself if I carefully look at the PropertyMetadata::Create API carefully ... ;) We know this is a bit ugly (having to manually cast to the expected type) and usafe. But the alternative would be using boxing and B...
by nikobarli
15 Sep 2017, 09:55
Forum: General Discussion
Replies: 6
Views: 2891

Re: Cannot show ContextMenu programmatically when instantiating it from Resources

Found another issue. When trying to bind IsOpen property of the context menu, the view freezes and nothing happens. # The reason that I was trying to bind IsOpen is so that I can trigger the ContextMenu from VM code (without needing to directly access the View layer). Slightly modify the XAML from t...
by nikobarli
15 Sep 2017, 09:12
Forum: General Discussion
Replies: 5
Views: 2648

Multiple views sharing the same ViewModel/Model

Hi, We are thinking to create multiple views which shared the same set of ViewModel/Model. Thus, actions on a view may trigger actions on the other views, through events, data bindings, commands, etc. All views will share one GUI thread as their main thread. Is there anything we need to be careful o...
by nikobarli
15 Sep 2017, 06:16
Forum: General Discussion
Replies: 3
Views: 1428

Memory leak when using ContextMenuService.PlacementTarget

The following XAML causes memory leak. The datacontext object (i.e. the object that provide SomeProperty property) is not released even after UI element is destroyed. <Grid x:Name="MyGrid" Grid.Row="0" Background="WhiteSmoke" ContextMenuService.PlacementTarget="{Bi...
by nikobarli
15 Sep 2017, 06:09
Forum: General Discussion
Replies: 6
Views: 2891

Re: Cannot show ContextMenu programmatically when instantiating it from Resources

@Wanderer, thanks for the workaround. However, I need to know why using StaticResource doesn't work (while in WPF it is working). I am thinking to put ContextMenu in the resource, customize it using DataTemplate, then share it across the components.
by nikobarli
15 Sep 2017, 04:16
Forum: General Discussion
Replies: 7
Views: 2454

Re: Some limitations of ObservableCollection

Great. Thanks !
by nikobarli
14 Sep 2017, 10:24
Forum: General Discussion
Replies: 6
Views: 2891

Cannot show ContextMenu programmatically when instantiating it from Resources

Hi, I am experimenting on how to show context menu using triggers other than Right-click. The following code works well: XAML <UserControl x:Class="NoesisTutorial.ContextMenu" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft...