• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# General.AbstractProperty类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: OnMultiplierChanged

 protected void OnMultiplierChanged(AbstractProperty property, object oldValue)
 {
   float multiplier = (float)ScrollOffsetMultiplier;
   float newX = _startOffsetX + (_diffOffsetX * multiplier);
   float newY = _startOffsetY + (_diffOffsetY * multiplier);
   base.SetScrollOffset(newX, newY);
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:7,代码来源:AnimatedScrollContentPresenter.cs


示例2: BackgroundManagerModel

 public BackgroundManagerModel()
 {
   _selectedItemProperty = new WProperty(typeof (ListItem), null);
   _selectedItemProperty.Attach(SetBackgroundImage);
   _backgroundImageProperty = new WProperty(typeof (string), string.Empty);
   SetBackgroundImage();
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:7,代码来源:BackgroundManagerModel.cs


示例3: Init

 void Init()
 {
   _uriSourceProperty = new SProperty(typeof(string), null);
   _decodePixelWidthProperty = new SProperty(typeof(int), 0);
   _decodePixelHeightProperty = new SProperty(typeof(int), 0);
   _thumbnailDimensionProperty = new SProperty(typeof(int), 0);
 }
开发者ID:BigGranu,项目名称:MediaPortal-2,代码行数:7,代码来源:BitmapImageSource.cs


示例4: Init

 void Init()
 {
   _propertyProperty = new SProperty(typeof(string), string.Empty);
   _bindingProperty = new SProperty(typeof(object), null);
   _valueProperty = new SProperty(typeof(object), null);
   _triggeredProperty = new SProperty(typeof(bool), false);
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:7,代码来源:Condition.cs


示例5: Init

 void Init()
 {
   _contentProperty = new SProperty(typeof(object), null);
   _contentTemplateProperty = new SProperty(typeof(DataTemplate), null);
   _horizontalContentAlignmentProperty = new SProperty(typeof(HorizontalAlignmentEnum), HorizontalAlignmentEnum.Stretch);
   _verticalContentAlignmentProperty = new SProperty(typeof(VerticalAlignmentEnum), VerticalAlignmentEnum.Stretch);
 }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:7,代码来源:ContentPresenter.cs


示例6: ItemViewModel

 public ItemViewModel()
 {
     _nameProperty = new WProperty(typeof(string));
     _descriptionProperty = new WProperty(typeof(string));
     _frontCoverProperty = new WProperty(typeof(string));
     _fanartProperty = new WProperty(typeof(string));
 }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:7,代码来源:ItemViewModel.cs


示例7: Init

 void Init()
 {
   _x1Property = new SProperty(typeof(double), 0.0);
   _y1Property = new SProperty(typeof(double), 0.0);
   _x2Property = new SProperty(typeof(double), 0.0);
   _y2Property = new SProperty(typeof(double), 0.0);
 }
开发者ID:davinx,项目名称:MediaPortal-2,代码行数:7,代码来源:Line.cs


示例8: ConfigurationController

 protected ConfigurationController()
 {
   _helpProperty = new WProperty(typeof(IResourceString), null);
   _textProperty = new WProperty(typeof(IResourceString), null);
   _visibleProperty = new WProperty(typeof(bool), true);
   _enabledProperty = new WProperty(typeof(bool), true);
 }
开发者ID:jgauffin,项目名称:MediaPortal-2,代码行数:7,代码来源:ConfigurationController.cs


示例9: Init

 void Init()
 {
   _centerYProperty = new SProperty(typeof(double), 0.0);
   _centerXProperty = new SProperty(typeof(double), 0.0);
   _angleXProperty = new SProperty(typeof(double), 0.0);
   _angleYProperty = new SProperty(typeof(double), 0.0);
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:7,代码来源:SkewTransform.cs


示例10: GenericDialogData

 internal GenericDialogData(string headerText, string text, ItemsList dialogButtons, Guid dialogHandle)
 {
   _headerTextProperty = new SProperty(typeof(string), headerText);
   _textProperty = new SProperty(typeof(string), text);
   _dialogButtonsList = dialogButtons;
   _dialogHandle = dialogHandle;
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:7,代码来源:DialogManager.cs


示例11: BackgroundManagerSetupModel

 public BackgroundManagerSetupModel()
 {
   ISettingsManager settingsManager = ServiceRegistration.Get<ISettingsManager>();
   BackgroundManagerSettings settings = settingsManager.Load<BackgroundManagerSettings>();
   _backgroundVideoFilenameProperty = new SProperty(typeof(string), settings.VideoBackgroundFileName);
   _isEnabledProperty = new SProperty(typeof(bool), settings.EnableVideoBackground);
 }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:7,代码来源:BackgroundManagerSetupModel.cs


示例12: Init

    void Init()
    {
      _fromProperty = new SProperty(typeof(Vector2?), null);
      _toProperty = new SProperty(typeof(Vector2?), null);
      _byProperty = new SProperty(typeof(Vector2?), null);

    }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:7,代码来源:PointAnimation.cs


示例13: AbstractEntryController

 protected AbstractEntryController()
 {
   _valueProperty = new WProperty(typeof(string), string.Empty);
   _isValueValidProperty = new WProperty(typeof(bool), true);
   _errorTextProperty = new WProperty(typeof(string), string.Empty);
   _displayLengthProperty = new WProperty(typeof(int), 0);
 }
开发者ID:chekiI,项目名称:MediaPortal-2,代码行数:7,代码来源:AbstractEntryController.cs


示例14: Init

 void Init()
 {
   _isDefaultProperty = new SProperty(typeof(bool), false);
   _isPressedProperty = new SProperty(typeof(bool), false);
   _commandProperty = new SProperty(typeof(IExecutableCommand), null);
   Focusable = true;
 }
开发者ID:HAF-Blade,项目名称:MediaPortal-2,代码行数:7,代码来源:Button.cs


示例15: CategoryViewModel

        public CategoryViewModel(Category category)
            : base(Consts.KEY_NAME, category.Name)
        {
            _category = category;

            _nameProperty = new WProperty(typeof(string), category.Name);
            _descriptionProperty = new WProperty(typeof(string), category.Description);
            _thumbProperty = new WProperty(typeof(string), null);
            _estimatedChildrenProperty = new WProperty(typeof(uint?), CalculateChildrenCount());

            if (Category is NextPageCategory)
            {
                Thumb = "NextPage.png";
            }
            else
            {
                _eventDelegator = OnlineVideosAppDomain.Domain.CreateInstanceAndUnwrap(typeof(PropertyChangedDelegator).Assembly.FullName, typeof(PropertyChangedDelegator).FullName) as PropertyChangedDelegator;
                _eventDelegator.InvokeTarget = new PropertyChangedExecutor
                {
                    InvokeHandler = (s, e) =>
                    {
                        if (e.PropertyName == "ThumbnailImage") Thumb = (s as Category).ThumbnailImage;
                    }
                };
                _category.PropertyChanged += _eventDelegator.EventDelegate;
            }
        }
开发者ID:offbyoneBB,项目名称:mp-onlinevideos2,代码行数:27,代码来源:CategoryViewModel.cs


示例16: EmulatorsMainModel

 public EmulatorsMainModel()
 {
     _layoutTypeProperty = new WProperty(typeof(LayoutType), LayoutType.List);
     _focusedItemProperty = new WProperty(typeof(ListItem), null);
     _headerProperty = new WProperty(typeof(string));
     _currentFanartProperty = new WProperty(typeof(string));
 }
开发者ID:ministerkrister,项目名称:Emulators,代码行数:7,代码来源:EmulatorsMainModel.cs


示例17: GeneralPlayerModel

    public GeneralPlayerModel()
    {
      _isMutedProperty = new WProperty(typeof(bool), false);
      _volumeProperty = new WProperty(typeof(int), 0);

      SubscribeToMessages();
      Update();
    }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:8,代码来源:GeneralPlayerModel.cs


示例18: Init

 void Init()
 {
   _borderColorProperty = new SProperty(typeof(Color), ColorConverter.FromArgb(0, Color.Black));
   _effectProperty = new SProperty(typeof(string), null);
   _effectTimerProperty = new SProperty(typeof(double), 0.0);
   _horizontalTextureAlignmentProperty = new SProperty(typeof(HorizontalTextureAlignmentEnum), HorizontalTextureAlignmentEnum.Center);
   _verticalTextureAlignmentProperty = new SProperty(typeof(VerticalTextureAlignmentEnum), VerticalTextureAlignmentEnum.Center);
 }
开发者ID:aspik,项目名称:MediaPortal-2,代码行数:8,代码来源:TextureImageSource.cs


示例19: ScreenSaverModel

    public ScreenSaverModel() : base(100)
    {
      _isScreenSaverActiveProperty = new WProperty(typeof(bool), false);
      _isMouseUsedProperty = new WProperty(typeof(bool), false);
      _screenSaverTextProperty = new WProperty(typeof(string), RES_MEDIAPORTAL_2); // Might be made configurable

      Update();
    }
开发者ID:joconno4,项目名称:MediaPortal-2,代码行数:8,代码来源:ScreenSaverModel.cs


示例20: ManagePlaylistsModel

 public ManagePlaylistsModel()
 {
   _isHomeServerConnectedProperty = new WProperty(typeof(bool), false);
   _isPlaylistsSelectedProperty = new WProperty(typeof(bool), false);
   _playlistNameProperty = new WProperty(typeof(string), string.Empty);
   _playlistNameProperty.Attach(OnPlaylistNameChanged);
   _isPlaylistNameValidProperty = new WProperty(typeof(bool), false);
 }
开发者ID:VicDemented,项目名称:MediaPortal-2,代码行数:8,代码来源:ManagePlaylistsModel.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# MediaManagement.MediaItemAspectMetadata类代码示例发布时间:2022-05-26
下一篇:
C# MediaInfoLib.MediaInfo类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap