Search found 27 matches

by Logrus
23 Sep 2021, 13:00
Forum: General Discussion
Replies: 5
Views: 103

Re: Iteraction.Trigger inside DataTemplate

Thanks
by Logrus
23 Sep 2021, 12:06
Forum: General Discussion
Replies: 5
Views: 103

Re: Iteraction.Trigger inside DataTemplate

How to bind in this case? <i:Interaction.Triggers> <EventTrigger EventName="???" SourceName="msb"> <InvokeCommandAction Command="{Binding ChangeSelectedNodesCommand}" /> </EventTrigger> </i:Interaction.Triggers>
by Logrus
23 Sep 2021, 09:37
Forum: General Discussion
Replies: 5
Views: 103

Re: Iteraction.Trigger inside DataTemplate

The problem is in Behavior. Handler Binding occurs after CloneCommonCore(const Freezable* source) , therefore Handler bind only to source (Behavior) in DataTemplate. This is how it works, not sure if this is correct void TreeViewMultipleSelectionBehavior::CloneCommonCore(const Freezable* source) { B...
by Logrus
22 Sep 2021, 16:57
Forum: General Discussion
Replies: 5
Views: 103

Iteraction.Trigger inside DataTemplate

Hi <DataTemplate DataType="{x:Type SubHierarchy}"> <TreeView ItemContainerStyle="{StaticResource Style.SceneMultiSelectedTreeViewItem}" ItemsSource="{Binding Root.Childs}"> <i:Interaction.Behaviors> <TreeViewMultipleSelectionBehavior x:Name="msb" SelectedItems="{Binding SelectedNodes, Mode=TwoWay}" ...
by Logrus
31 May 2021, 23:20
Forum: General Discussion
Replies: 3
Views: 2074

Re: MouseWheel doesn't work if there are nested TreeViews

Yes, I don't need internal ScrolViewers right now and this solution works.
But further scrolling may be required.
by Logrus
30 May 2021, 11:12
Forum: General Discussion
Replies: 3
Views: 2074

MouseWheel doesn't work if there are nested TreeViews

Hi I have a TreeView which in a TreeViewItem contains a TreeView, which is why the MouseWheel is not working. To the TreeView I added a Behavior that handles the PreviewMouseWheel() void MouseWheelBehavior::OnPreviewMouseWheel(BaseComponent* sender, const MouseWheelEventArgs& e) { auto is_skip_scrol...
by Logrus
15 Mar 2021, 08:57
Forum: General Discussion
Replies: 2
Views: 185

Re: Create ContextMenu programmatically

closed

in the parent element on the right button the mouse was captured.
by Logrus
14 Mar 2021, 07:08
Forum: General Discussion
Replies: 2
Views: 185

Create ContextMenu programmatically

Hi auto image = MakePtr<Image>(); image->SetSource(MakePtr<TextureSource>(LoadTexture(path))); auto menu = MakePtr<ContextMenu>(); auto item = MakePtr<MenuItem>(); item->SetHeader("Hello"); item->SetText(MakePtr<TextBlock>("World")); menu->GetItems()->Add(item); image->SetContextMenu(menu); image->M...
by Logrus
03 Jan 2021, 20:44
Forum: General Discussion
Replies: 2
Views: 481

Re: TypeClass* from Type*

Thank
by Logrus
03 Jan 2021, 15:13
Forum: General Discussion
Replies: 2
Views: 481

TypeClass* from Type*

Hi,
how get Noesis::TypeClass* from Noesis::Symbol or Noesis::Type* ?