本文整理汇总了C#中IPropertyBag.GetPropertyValue方法的典型用法代码示例。如果您正苦于以下问题:C# IPropertyBag.GetPropertyValue方法的具体用法?C# IPropertyBag.GetPropertyValue怎么用?C# IPropertyBag.GetPropertyValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPropertyBag
的用法示例。
在下文中一共展示了IPropertyBag.GetPropertyValue方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: IsVisible
public bool IsVisible(IPropertyBag properties)
{
if (base.CompareFromContext(properties, "UserMode", "1") != 0) // Runtime
return true;
else // DesignTime
return properties.GetPropertyValue<bool>("EnableCheckbox");
}
示例2: IsVisible
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;
}
}
示例3: IsVisible
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";
}
}
示例4: IsVisible
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: IsVisible
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";
}
}
示例6: IsVisible
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;
}
}
示例7: IsVisible
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: GetDefaultValue
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;
}