# Customized UI C# callback

**URL:** <https://devforum.zoom.us/t/customized-ui-c-callback/7155>\
**Category:** Windows\
**Created:** [December 20, 2019, 4:57pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155 "2019-12-20T16:57:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![okan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/okan/32/427_2.png) [@okan](https://devforum.zoom.us/u/okan)\
**Post date:** [December 20, 2019, 4:57pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/1 "2019-12-20T16:57:41Z")

</div>

Hi,

I am using customized UI interface to create zoom video windows in our WPF application.

Current windows SDK version [unmanaged] is 4.4.57220.1211 and downloaded latest C# wrapper related with that version.

Creating meeting, subscribing user video and displaying video works fine. Issue is getting callback notification from video container object (ICustomizedVideoContainerDotNetWrap)

ICustomizedVideoContainerDotNetWrap interface has below callbacks and in order to assign callbacks events.

1. Created video container  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/bb2f2fde881e03982c649eb6a57eb0dab366f4af.png)
2. Assigned call backs to that video container  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/59c2f63f162a8d944362cc217cfb58e29d555c5d.png)

None of the callbacks working. I tested this with multiple scenarios, one of those scenarios is WM\_LBUTTONDOWN message. Using Spy++ tool, mouse button click received by video container window.

I was using same type of callbacks from (IAuthServiceDotNetWrap) and those callbacks are working fine. Is there any difference between two?

Would you provide a sample code (C#) in order properly assign call back objects for (ICustomizedVideoContainerDotNetWrap)?

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [December 20, 2019, 11:49pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/2 "2019-12-20T23:49:12Z")

</div>

Hi Okan,

Thanks for the post. I will get back to you shortly regarding your questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [December 23, 2019, 11:58pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/3 "2019-12-23T23:58:08Z")

</div>

Hi Okan,

Thanks for the wait. Regarding the issue you are facing, we are able to identify an issue for this. In order to help you get it working for the current version, please following these steps to modify the C# wrapper so that everything will work as expected:

1. Locate and find the `customized_video_container_dotnet_wrap` file
2. Modify the implementation of the interface `CCustomizedVideoContainerDotNetWrap::CCustomizedVideoContainerDotNetWrap(ZOOM_SDK_NAMESPACE::ICustomizedVideoContainerWrap* pWrap)` into:

```auto
m_dotNetWrapImpl = gcnew ICustomizedVideoContainerDotNetImpl(pWrap);
		m_pEvents = new CustomizedVideoContainerEventHandler(this);
		if (m_dotNetWrapImpl)
		{
			BindEvent();
		}

```

1. Locate and open the file customized\_share\_render\_dotnet\_wrap.cpp file.
2. Modify the implementation of the interface CCustomizedShareRenderDotNetWrap::CCustomizedShareRenderDotNetWrap(ZOOM\_SDK\_NAMESPACE::ICustomizedShareRenderWrap\* pWrap) into:

```auto
m_dotNetWrapImpl = gcnew ICustomizedShareRenderDotNetImpl(pWrap);
		m_pEvents = new CustomizedShareRenderEventHandler(this);
		if (m_dotNetWrapImpl)
		{
			BindEvent();
		}

```

After the modification, rebuild your SDK app and you shall receive the callback. Hope this helps. Please let me know if any questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![okan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/okan/32/427_2.png) [@okan](https://devforum.zoom.us/u/okan)\
**Post date:** [December 24, 2019, 3:03pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/4 "2019-12-24T15:03:56Z")

</div>

Thanks for the help,

It worked.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [December 26, 2019, 8:19pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/5 "2019-12-26T20:19:27Z")

</div>

Hi okan,

Glad to hear that it is working. Let me know if any other questions.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:08pm UTC](https://devforum.zoom.us/t/customized-ui-c-callback/7155/6 "2020-08-21T19:08:40Z")

</div>

Closed on August 21, 2020, 7:08pm UTC


