Пример #1
0
		public bool IsVisible(IPropertyBag properties)
		{
			if (base.CompareFromContext(properties, "UserMode", "1") != 0)          // Runtime
				return true;
			else                                                                    // DesignTime            
				return properties.GetPropertyValue<bool>("EnableCheckbox");
		}
Пример #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";
			}
		}
Пример #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;
			}
		}
Пример #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;
			}
		}
Пример #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;
			}
		}
Пример #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";
			}
		}
Пример #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;
			}
		}
Пример #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;
		}
Пример #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");
     }
 }
Пример #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");
     }
 }
Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
        }
Пример #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);
     }
 }