Search found 83 matches

  • 1
  • 2
  • 3
  • 4
  • 5
  • 9
by realesmedia
20 Jun 2019, 14:45
Forum: General Discussion
Replies: 2
Views: 88

Re: Subscribe to the Behavior event from code

thanks
by realesmedia
18 Jun 2019, 11:06
Forum: General Discussion
Replies: 2
Views: 88

Subscribe to the Behavior event from code

Hi I need to connect to the <TranslateZoomRotateBehavior Dragging = "..." /> event from code <DataTemplate> <Border x:Name="PART_NodeRoot" Width="100" Height="Auto" MinHeight="50" Background="#f0202025" CornerRadius="5" Padding="0,0,0,10" BorderThickness="0.5" BorderBrush="#050505" Cursor="ScrollAll...
by realesmedia
18 Jun 2019, 10:19
Forum: General Discussion
Replies: 2
Views: 83

Re: How to determine what UIElement::Layout changed?

I needed to subscribe to the event of changing the position (dragging) + zoom of the element relative to parent

I only needed an event

I have already found another solution)))

thanks
by realesmedia
13 Jun 2019, 20:25
Forum: General Discussion
Replies: 2
Views: 83

How to determine what UIElement::Layout changed?

analog WPF event
 UIElement.LayoutUpdated()
by realesmedia
07 Jun 2019, 08:07
Forum: General Discussion
Replies: 3
Views: 117

Re: Behavior with Event inside Style

Thanks
by realesmedia
05 Jun 2019, 18:16
Forum: General Discussion
Replies: 3
Views: 117

Behavior with Event inside Style

Hi I implemented Behavior in which there is an Event. If I attach this Behavior to the element that is inside Style.ControlTemplate ..., then the event is not called. When invoking Event, the list of delegates is empty. As I understand it, when using inside Styles, you need to clone the Behavior cre...
by realesmedia
15 May 2019, 17:07
Forum: General Discussion
Replies: 3
Views: 158

Re: in Xaml, Behaviors are searched for in the namespace NoesisApp, but registered in an anonymous namespace

ok, thank

I thought that for Behaviors it is necessary to use the ei namespace
by realesmedia
15 May 2019, 12:05
Forum: General Discussion
Replies: 3
Views: 158

in Xaml, Behaviors are searched for in the namespace NoesisApp, but registered in an anonymous namespace

class MouseWheelBehavior final: public NoesisApp::BehaviorT<Noesis::FrameworkElement> { public: MouseWheelBehavior() = default; ~MouseWheelBehavior() = default; protected: Noesis::Ptr<Noesis::Freezable> CreateInstanceCore() const override; void OnAttached() override; void OnDetaching() override; pr...
by realesmedia
29 Jan 2019, 17:58
Forum: General Discussion
Replies: 5
Views: 275

Re: Get Grid.ColumnDefinition width

Thanks
by realesmedia
29 Jan 2019, 12:51
Forum: General Discussion
Replies: 5
Views: 275

Re: Get Grid.ColumnDefinition width

In this case: <Grid Background="Red"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*"/> <ColumnDefinition Width="6"/> <ColumnDefinition Width="0.5*"/> </Grid.ColumnDefinitions> <Grid Grid.Column="1" Background="Black"/> </Grid> auto w = Grid::GetColumnDefinitions()->Get(0)->GetActualWidth();...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 9