Artech.UC.gxui.PropertiesResolvers.Panel.ShowAsWindowResolver.IsVisible C# (CSharp) Method

IsVisible() public method

public IsVisible ( IPropertyBag properties ) : bool
properties IPropertyBag
return bool
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				bool viewport = properties.GetPropertyValue<bool>("Viewport");
				//string Type = properties.GetPropertyValue<string>("Type");
				return !viewport;
			}
		}
ShowAsWindowResolver