Esempio n. 1
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
				return properties.GetPropertyValue<bool>("EnableCheckbox");
		}
Esempio n. 2
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				string resizable = properties.GetPropertyValue<string>("Resizable");
				return resizable == "true";
			}
		}
Esempio n. 3
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				bool allowDrag = properties.GetPropertyValue<bool>("AllowDrag");
				return allowDrag;
			}
		}
Esempio n. 4
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				bool columnLocking = properties.GetPropertyValue<bool>("EnableColumnLocking");
				return !columnLocking;
			}
		}
Esempio n. 5
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				bool showAsWindow = properties.GetPropertyValue<bool>("ShowAsWindow");
				return showAsWindow;
			}
		}
Esempio n. 6
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
			{
				string autoHeight = properties.GetPropertyValue<string>("AutoHeight");
				return autoHeight != "true";
			}
		}
Esempio n. 7
0
		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;
			}
		}
Esempio n. 8
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         return(properties.GetPropertyValue <bool>("EnableCheckbox"));
     }
 }
		public bool GetDefaultValue(IPropertyBag properties, out object value)
		{
			string headerPosition = properties.GetPropertyValue<string>("HeaderPosition");
			if (String.IsNullOrEmpty(headerPosition))
			{
				value = "top";
				return false;
			}
			value = headerPosition;
			return true;
		}
Esempio n. 10
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         string resizable = properties.GetPropertyValue <string>("RootVisible");
         return(resizable == "true");
     }
 }
Esempio n. 11
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         string autoHeight = properties.GetPropertyValue <string>("AutoHeight");
         return(autoHeight != "true");
     }
 }
Esempio n. 12
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         bool columnLocking = properties.GetPropertyValue <bool>("EnableColumnLocking");
         return(!columnLocking);
     }
 }
Esempio n. 13
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         bool showAsWindow = properties.GetPropertyValue <bool>("ShowAsWindow");
         return(showAsWindow);
     }
 }
Esempio n. 14
0
 public bool IsVisible(IPropertyBag properties)
 {
     if (base.CompareFromContext(properties, "UserMode", "1") != 0)                      // Runtime
     {
         return(true);
     }
     else                                                                                // DesignTime
     {
         bool allowDrag = properties.GetPropertyValue <bool>("AllowDrag");
         return(allowDrag);
     }
 }
Esempio n. 15
0
        public bool GetDefaultValue(IPropertyBag properties, out object value)
        {
            string headerPosition = properties.GetPropertyValue <string>("HeaderPosition");

            if (String.IsNullOrEmpty(headerPosition))
            {
                value = "top";
                return(false);
            }
            value = headerPosition;
            return(true);
        }
Esempio n. 16
0
 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);
     }
 }