Dmitriy Kovalenko Dmitriy Kovalenko - 2 months ago 8
C# Question

Missing events on UWP

Im creating custom control on uwp (from wpf) and I`ve missed several events, such like:


  1. OnTemplateChanged

  2. OnRender

  3. OnRenderSizeChanged



Where are them? Or can I replace them with other handlers?

Answer
  1. No equivalent, you may subscribe to changes of the Template property, e.g. by a Binding.

  2. No equivalent, there's nothing like DrawingVisual/DrawContext in UWP.

  3. FrameworkElement.SizeChanged