Search found 13 matches

  • 1
  • 2
by leonid_golovko
04 Aug 2024, 09:09
Forum: General Discussion
Replies: 1
Views: 1594

Drag-and-Drop

Do i write the drag and drop in view model or view/user control?
by leonid_golovko
04 Aug 2024, 08:50
Forum: General Discussion
Replies: 1
Views: 1552

mouse_args.position problem in view model.

I have a problem. I can't get the position that I should be able to get.(mouse_args.position.x). How to fix it? It don't seem to change at all. <Button x:Name="LeftOneIncisionPoint" Width="35" Height="35" Background="Transparent" HorizontalAlignment="Cent...
by leonid_golovko
01 Aug 2024, 07:42
Forum: General Discussion
Replies: 1
Views: 1647

Initiate user control in xaml

<ItemsControl x:Name="IncisionsItemsControl" ItemsSource="{Binding Incisions}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <local:IncisionUserControl DataContext="{Bin...
by leonid_golovko
11 Jul 2024, 11:33
Forum: General Discussion
Replies: 4
Views: 1539

Re: Binding from a few view models

Yes. Now this problem was solved! Thank you!
by leonid_golovko
11 Jul 2024, 11:32
Forum: General Discussion
Replies: 3
Views: 1426

Re: Using instances of a class to use same get and set functions

Yes.
Thank you!
by leonid_golovko
10 Jul 2024, 12:53
Forum: General Discussion
Replies: 1
Views: 1056

Re: Click on button from main user control to triger event at other class.

If its possible please write a simple example.
by leonid_golovko
10 Jul 2024, 12:45
Forum: General Discussion
Replies: 1
Views: 1056

Click on button from main user control to triger event at other class.

Hi. I have a screen with a button and a circle. The circle has its own view model, user control and xaml. The button is located in other user control file. I need to be able to press the button and be able to change the visibility of my circle. All the buttons on the circle are binded but nothing ch...
by leonid_golovko
09 Jul 2024, 07:18
Forum: General Discussion
Replies: 4
Views: 1539

Re: Binding from a few view models

I just wanted to print the same class 4 times in a diagonal and it print four circles but not in the right coordinates.
It did not change no matter what I did.
by leonid_golovko
08 Jul 2024, 14:22
Forum: General Discussion
Replies: 4
Views: 1539

Binding from a few view models

I have two view models and the second one is not seen by the system. How to make the xaml see this second view model? The second view model called CircleViewModel. Thank you for the answer in advance! <Image Source="{StaticResource CenterCircleButtonOff}" Stretch="Uniform" Visibi...
by leonid_golovko
07 Jul 2024, 17:12
Forum: General Discussion
Replies: 3
Views: 1426

Re: Using instances of a class to use same get and set functions

Is it even possible to do?
  • 1
  • 2