I am unable to find the Charms bar(on windows app) control using DirectUIControl in CodedUI.
DirectUIControl charmsbarHwnd = new DirectUIControl();
charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.ControlType] = "Window";
charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.ClassName] = "NativeHWNDHost";
charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.Name] = "Charms";
charmsbarHwnd.WaitForControlReady();
charmsbarHwnd.WaitForControlReady();
Also tried providing parent as DirectUIControl.Desktop.
Can anyone help me on this.