当前位置: 首页>>代码示例>>C#>>正文


C# BindingMemberDescriptor类代码示例

本文整理汇总了C#中BindingMemberDescriptor的典型用法代码示例。如果您正苦于以下问题:C# BindingMemberDescriptor类的具体用法?C# BindingMemberDescriptor怎么用?C# BindingMemberDescriptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


BindingMemberDescriptor类属于命名空间,在下文中一共展示了BindingMemberDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Object

 static Object()
 {
     DataContext = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.DataContext);
     Parent = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.Parent);
     CommandParameter = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.CommandParameter);
     Errors = new BindingMemberDescriptor<object, IEnumerable<object>>(AttachedMemberConstants.ErrorsPropertyMember);
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:7,代码来源:AttachedMembers.cs

示例2: Object

            static Object()
            {
                DataContext = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.DataContext);
                Parent = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.Parent);
                CommandParameter = new BindingMemberDescriptor<object, object>(AttachedMemberConstants.CommandParameter);
                Errors = new BindingMemberDescriptor<object, IEnumerable<object>>(AttachedMemberConstants.ErrorsPropertyMember);

                ItemsSource = new BindingMemberDescriptor<object, IEnumerable>(AttachedMemberConstants.ItemsSource);
                ItemsSourceGenerator = new BindingMemberDescriptor<object, IItemsSourceGenerator>(ItemsSourceGeneratorBase.MemberDescriptor);
                ItemTemplateSelector = new BindingMemberDescriptor<object, IDataTemplateSelector>(AttachedMemberConstants.ItemTemplateSelector);
                CollectionViewManager = new BindingMemberDescriptor<object, ICollectionViewManager>(nameof(CollectionViewManager));
            }
开发者ID:dbeattie71,项目名称:MugenMvvmToolkit,代码行数:12,代码来源:AttachedMembers.cs

示例3: UIView

            static UIView()
            {
                Content = new BindingMemberDescriptor<UIKit.UIView, object>(AttachedMemberConstants.Content);
                ContentTemplateSelector = new BindingMemberDescriptor<UIKit.UIView, IDataTemplateSelector>(AttachedMemberConstants.ContentTemplateSelector);
                ContentViewManager = new BindingMemberDescriptor<UIKit.UIView, IContentViewManager>("ContentViewManager");

                ItemsSource = new BindingMemberDescriptor<UIKit.UIView, IEnumerable>(AttachedMemberConstants.ItemsSource);
                ItemsSourceGenerator = new BindingMemberDescriptor<UIKit.UIView, IItemsSourceGenerator>(ItemsSourceGeneratorBase.MemberDescriptor);
                ItemTemplateSelector = new BindingMemberDescriptor<UIKit.UIView, IDataTemplateSelector>(AttachedMemberConstants.ItemTemplateSelector);
                CollectionViewManager = new BindingMemberDescriptor<UIKit.UIView, ICollectionViewManager>("CollectionViewManager");

                Visible = new BindingMemberDescriptor<UIKit.UIView, bool>("Visible");
            }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:13,代码来源:AttachedMembers.cs

示例4: ActionBar

 static ActionBar()
 {
     BackgroundDrawable = new BindingMemberDescriptor<ActionBarEx, object>("BackgroundDrawable");
     CustomView = new BindingMemberDescriptor<ActionBarEx, object>("CustomView");
     ContextActionBarTemplate = new BindingMemberDescriptor<ActionBarEx, int?>("ContextActionBarTemplate");
     ContextActionBarVisible = new BindingMemberDescriptor<ActionBarEx, bool>("ContextActionBarVisible");
     DisplayHomeAsUpEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("DisplayHomeAsUpEnabled");
     DisplayOptions = new BindingMemberDescriptor<ActionBarEx, ActionBarDisplayOptions>("DisplayOptions");
     DisplayShowCustomEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("DisplayShowCustomEnabled");
     DisplayShowHomeEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("DisplayShowHomeEnabled");
     DisplayShowTitleEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("DisplayShowTitleEnabled");
     DisplayUseLogoEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("DisplayUseLogoEnabled");
     HomeButtonEnabled = new BindingMemberDescriptor<ActionBarEx, bool>("HomeButtonEnabled");
     HomeButtonClick = new BindingMemberDescriptor<ActionBarEx, IEventListener>("HomeButton.Click");
     Icon = new BindingMemberDescriptor<ActionBarEx, object>("Icon");
     Logo = new BindingMemberDescriptor<ActionBarEx, object>("Logo");
     NavigationMode = new BindingMemberDescriptor<ActionBarEx, ActionBarNavigationMode>("NavigationMode");
     SplitBackgroundDrawable = new BindingMemberDescriptor<ActionBarEx, object>("SplitBackgroundDrawable");
     StackedBackgroundDrawable = new BindingMemberDescriptor<ActionBarEx, object>("StackedBackgroundDrawable");
     IsShowing = new BindingMemberDescriptor<ActionBarEx, bool>("IsShowing");
     Visible = new BindingMemberDescriptor<ActionBarEx, bool>("Visible");
     ItemsSource = new BindingMemberDescriptor<ActionBarEx, IEnumerable>(AttachedMemberConstants.ItemsSource);
     ItemsSourceAdapter = new BindingMemberDescriptor<ActionBarEx, IItemsSourceAdapter>("ItemsSourceAdapter");
     SelectedItem = new BindingMemberDescriptor<ActionBarEx, object>(AttachedMemberConstants.SelectedItem);
     ItemsSourceGenerator = new BindingMemberDescriptor<ActionBarEx, IItemsSourceGenerator>(ItemsSourceGeneratorBase.MemberDescriptor);
     ItemTemplate = new BindingMemberDescriptor<ActionBarEx, int?>(AttachedMemberConstants.ItemTemplate);
     ItemTemplateSelector = new BindingMemberDescriptor<ActionBarEx, IDataTemplateSelector>(AttachedMemberConstants.ItemTemplateSelector);
     DropDownItemTemplate = new BindingMemberDescriptor<ActionBarEx, int?>(AttachedMembers.AdapterView.DropDownItemTemplate);
     DropDownItemTemplateSelector = new BindingMemberDescriptor<ActionBarEx, IDataTemplateSelector>(AttachedMembers.AdapterView.DropDownItemTemplateSelector);
     CollectionViewManager = new BindingMemberDescriptor<ActionBarEx, ICollectionViewManager>(AttachedMembers.ViewGroup.CollectionViewManager);
 }
开发者ID:FilipHerman,项目名称:MugenMvvmToolkit,代码行数:31,代码来源:AttachedMembers.cs

示例5: UIViewController

 static UIViewController()
 {
     ToolbarItemTemplateSelector = new BindingMemberDescriptor<UIKit.UIViewController, IDataTemplateSelector>("ToolbarItemTemplateSelector");
     ToolbarItemsSource = new BindingMemberDescriptor<UIKit.UIViewController, IEnumerable>("ToolbarItemsSource");
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:5,代码来源:AttachedMembers.cs

示例6: UICollectionViewCell

 static UICollectionViewCell()
 {
     ShouldSelect = new BindingMemberDescriptor<UIKit.UICollectionViewCell, bool?>("ShouldSelect");
     ShouldDeselect = new BindingMemberDescriptor<UIKit.UICollectionViewCell, bool?>("ShouldDeselect");
     ShouldHighlight = new BindingMemberDescriptor<UIKit.UICollectionViewCell, bool?>("ShouldHighlight");
     Selected = new BindingMemberDescriptor<UIKit.UICollectionViewCell, bool?>("Selected");
     Highlighted = new BindingMemberDescriptor<UIKit.UICollectionViewCell, bool>("Highlighted");
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:8,代码来源:AttachedMembers.cs

示例7: UITableViewCell

 static UITableViewCell()
 {
     AccessoryButtonTappedEvent = new BindingMemberDescriptor<UIKit.UITableViewCell, IEventListener>("AccessoryButtonTapped");
     DeleteClickEvent = new BindingMemberDescriptor<UIKit.UITableViewCell, IEventListener>("DeleteClick");
     InsertClickEvent = new BindingMemberDescriptor<UIKit.UITableViewCell, IEventListener>("InsertClick");
     Moveable = new BindingMemberDescriptor<UIKit.UITableViewCell, bool?>("Moveable");
     TitleForDeleteConfirmation = new BindingMemberDescriptor<UIKit.UITableViewCell, string>("TitleForDeleteConfirmation");
     EditingStyle = new BindingMemberDescriptor<UIKit.UITableViewCell, UITableViewCellEditingStyle?>("EditingStyle");
     ShouldHighlight = new BindingMemberDescriptor<UIKit.UITableViewCell, bool?>("ShouldHighlight");
     Selected = new BindingMemberDescriptor<UIKit.UITableViewCell, bool?>("Selected");
     Highlighted = new BindingMemberDescriptor<UIKit.UITableViewCell, bool>("Highlighted");
     Editing = new BindingMemberDescriptor<UIKit.UITableViewCell, bool>("Editing");
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:13,代码来源:AttachedMembers.cs

示例8: UILabel

 static UILabel()
 {
     TextSizeToFit = new BindingMemberDescriptor<UIKit.UILabel, string>("TextSizeToFit");
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:4,代码来源:AttachedMembers.cs

示例9: UISwitch

 static UISwitch()
 {
     On = new BindingMemberDescriptor<UIKit.UISwitch, bool>("On");
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:4,代码来源:AttachedMembers.cs

示例10: BuilderShouldUseDynamicMember6

        public void BuilderShouldUseDynamicMember6()
        {
            const string targetPath = "Text";
            var sourcePath = new BindingMemberDescriptor<BindingSourceModel, int>("IntProperty");
            var targetObj = new object();
            var builder = new BindingBuilder();
            builder.Bind(targetObj, targetPath).To<BindingSourceModel>(() => model => model.Member(sourcePath));

            IList<Func<IDataContext, IBindingSource>> sources = builder.GetData(BindingBuilderConstants.Sources);
            IBindingSource source = sources.Single().Invoke(builder);
            BindingParserTest.BindingSourceShouldBeValidDataContext(targetObj, source, sourcePath.Path);
            var sourceObj = new BindingSourceModel();
            BindingServiceProvider.ContextManager.GetBindingContext(targetObj).Value = sourceObj;
            BindingParserTest.BindingSourceShouldBeValidDataContext(targetObj, source, sourcePath.Path);
        }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:15,代码来源:BindingSyntaxExtensionsTest.cs

示例11: UISplitViewController

 static UISplitViewController()
 {
     MasterView = new BindingMemberDescriptor<UIKit.UISplitViewController, UIKit.UIViewController>("MasterView");
     DetailView = new BindingMemberDescriptor<UIKit.UISplitViewController, UIKit.UIViewController>("DetailView");
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:5,代码来源:AttachedMembers.cs

示例12: RecyclerView

 static RecyclerView()
 {
     CreateViewHolderDelegate = new BindingMemberDescriptor<global::Android.Support.V7.Widget.RecyclerView,
         Func<LayoutInflater, ViewGroup, int, global::Android.Support.V7.Widget.RecyclerView.ViewHolder>>("CreateViewHolderDelegate");
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:5,代码来源:AttachedMembersRecyclerView.cs

示例13: Activity

 static Activity()
 {
     ToastTemplateSelector = new BindingMemberDescriptor<global::Android.App.Activity, IDataTemplateSelector>("ToastTemplateSelector");
 }
开发者ID:FilipHerman,项目名称:MugenMvvmToolkit,代码行数:4,代码来源:AttachedMembers.cs

示例14: Toolbar

 static Toolbar()
 {
     IsActionBar = new BindingMemberDescriptor<TolbarEx, bool>("IsActionBar");
     MenuTemplate = new BindingMemberDescriptor<TolbarEx, int>("MenuTemplate");
 }
开发者ID:FilipHerman,项目名称:MugenMvvmToolkit,代码行数:5,代码来源:AttachedMembers.cs

示例15: ActionBarTab

 static ActionBarTab()
 {
     Content = new BindingMemberDescriptor<ActionBarEx.Tab, object>(AttachedMemberConstants.Content);
     ContentTemplate = new BindingMemberDescriptor<ActionBarEx.Tab, int?>(AttachedMemberConstants.ContentTemplate);
     ContentTemplateSelector = new BindingMemberDescriptor<ActionBarEx.Tab, IDataTemplateSelector>(AttachedMemberConstants.ContentTemplateSelector);
     CustomView = new BindingMemberDescriptor<ActionBarEx.Tab, object>("CustomView");
     Icon = new BindingMemberDescriptor<ActionBarEx.Tab, object>("Icon");
 }
开发者ID:FilipHerman,项目名称:MugenMvvmToolkit,代码行数:8,代码来源:AttachedMembers.cs


注:本文中的BindingMemberDescriptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。