本文整理匯總了C#中ColumnDefinition.GetBindingPath方法的典型用法代碼示例。如果您正苦於以下問題:C# ColumnDefinition.GetBindingPath方法的具體用法?C# ColumnDefinition.GetBindingPath怎麽用?C# ColumnDefinition.GetBindingPath使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ColumnDefinition
的用法示例。
在下文中一共展示了ColumnDefinition.GetBindingPath方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: GetXamlForDataTemplate
protected override string GetXamlForDataTemplate(ColumnDefinition definition)
{
var templateString =
@"<DataTemplate xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"" xmlns:Behaviors=""clr-namespace:Raven.Studio.Behaviors;assembly=Raven.Studio""
xmlns:m=""clr-namespace:Raven.Studio.Infrastructure.MarkupExtensions;assembly=Raven.Studio"" xmlns:i=""http://schemas.microsoft.com/expression/2010/interactivity""
xmlns:Converters=""clr-namespace:Raven.Studio.Infrastructure.Converters;assembly=Raven.Studio"">
<TextBlock Text=""{Binding $$$BindingPath$$$, Converter={m:Static Member=Converters:DocumentPropertyToSingleLineStringConverter.Trimmed}}""
Behaviors:FadeTrimming.IsEnabled=""True"" Behaviors:FadeTrimming.ShowTextInToolTipWhenTrimmed=""True""
VerticalAlignment=""Center""
Margin=""5,0"">
<i:Interaction.Behaviors>
<Behaviors:ShowQuickDocumentPopupBehavior PotentialDocumentId=""{Binding $$$BindingPath$$$}""/>
</i:Interaction.Behaviors>
</TextBlock>
</DataTemplate>";
templateString = templateString.Replace("$$$BindingPath$$$", definition.GetBindingPath("Item.Document."));
return templateString;
}