Esempio n. 1
0
File: Image.cs Progetto: zzyzy/uno
        void Initialize()
        {
            InitializeBinder();
            IFrameworkElementHelper.Initialize(this);

            _layouter = new ImageLayouter(this);
        }
Esempio n. 2
0
        private string _inlinesText;         // Text derived from the content of Inlines

#if !__WASM__
        public TextBlock()
        {
            IFrameworkElementHelper.Initialize(this);
            InitializeProperties();

            InitializePartial();
        }
Esempio n. 3
0
        private void Initialize()
        {
            BackgroundColor = UIColor.Clear;
            IFrameworkElementHelper.Initialize(this);

            OnDisplayMemberPathChangedPartial(string.Empty, this.DisplayMemberPath);
        }
Esempio n. 4
0
        public ContentPresenter()
        {
            InitializeContentPresenter();

            IFrameworkElementHelper.Initialize(this);

            this.RegisterLoadActions(UpdateBorder, () => _borderRenderer.Clear());
        }
Esempio n. 5
0
        public Picker()
        {
            IFrameworkElementHelper.Initialize(this);
            this.InitializeBinder();

            AutoresizingMask = UIViewAutoresizing.None;

            OnDisplayMemberPathChangedPartial(string.Empty, this.DisplayMemberPath);

            this.Model = new PickerModel(this);
        }
Esempio n. 6
0
        public ListView()
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            NativeInstanceHelper.CreateNativeInstance(base.GetType(), this, ContextHelper.Current, base.SetHandle);

            InitializeBinder();
            IFrameworkElementHelper.Initialize(this);

            SetClipToPadding(false);
            ScrollBarStyle = ScrollbarStyles.OutsideOverlay;             // prevents padding from affecting scrollbar position

            _secondaryPool = new AbsListViewSecondaryPool(TryGetItemViewTypeFromItem, _customViewTypeCount);
            SetRecyclerListener(_secondaryPool);
        }
Esempio n. 7
0
        public GridView() : base(ContextHelper.Current)
        {
            IFrameworkElementHelper.Initialize(this);

            StretchMode = Android.Widget.StretchMode.StretchColumnWidth;
            BindableAdapter.ItemContainerTemplate = () => new GridViewItem()
            {
                ShouldHandlePressed = false
            };
            BindableAdapter.ItemContainerHolderStretchOrientation = Orientation.Horizontal;
            BindableAdapter.ItemContainerStyle = ItemContainerStyle;

            SetClipToPadding(false);
            ScrollBarStyle = ScrollbarStyles.OutsideOverlay;             // prevents padding from affecting scrollbar position
        }
Esempio n. 8
0
        public NativeScrollContentPresenter()
        {
            Scrolled += OnScrolled;
            ViewForZoomingInScrollView = _ => Content as UIView;
            DidZoom              += OnZoom;
            DraggingStarted      += OnDraggingStarted;
            DraggingEnded        += OnDraggingEnded;
            DecelerationEnded    += OnDecelerationEnded;
            ScrollAnimationEnded += OnScrollAnimationEnded;

            if (ScrollViewer.UseContentInsetAdjustmentBehavior)
            {
                ContentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never;
            }

            IFrameworkElementHelper.Initialize(this);
        }
Esempio n. 9
0
        private void Initialize()
        {
            BackgroundColor = UIColor.Clear;
            IFrameworkElementHelper.Initialize(this);

            var internalContainerType = typeof(ListViewBaseInternalContainer);

            RegisterClassForCell(internalContainerType, ListViewItemReuseIdentifier);
            RegisterClassForSupplementaryView(internalContainerType, ListViewHeaderElementKindNS, ListViewHeaderReuseIdentifier);
            RegisterClassForSupplementaryView(internalContainerType, ListViewFooterElementKindNS, ListViewFooterReuseIdentifier);
            RegisterClassForSupplementaryView(internalContainerType, ListViewSectionHeaderElementKindNS, ListViewSectionHeaderReuseIdentifier);

            DelaysContentTouches = true;

            ShowsHorizontalScrollIndicator = true;
            ShowsVerticalScrollIndicator   = true;

            if (ScrollViewer.UseContentInsetAdjustmentBehavior)
            {
                ContentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentBehavior.Never;
            }
        }
Esempio n. 10
0
        partial void Initialize()
        {
            _children = new UIElementCollection(this);

            IFrameworkElementHelper.Initialize(this);
        }
Esempio n. 11
0
 private void Initialize()
 {
     BackgroundColor = UIColor.Clear;
     IFrameworkElementHelper.Initialize(this);
 }
Esempio n. 12
0
 partial void InitializePartial()
 {
     IFrameworkElementHelper.Initialize(this);
 }
Esempio n. 13
0
 public HorizontalGridView()
 {
     InitializeBinder();
     IFrameworkElementHelper.Initialize(this);
 }
 public HorizontalListView() : base(ContextHelper.Current, null)
 {
     InitializeBinder();
     SetClipToPadding(false);
     IFrameworkElementHelper.Initialize(this);
 }
Esempio n. 15
0
 public ContentControl()
 {
     IFrameworkElementHelper.Initialize(this);
 }
Esempio n. 16
0
        public ContentPresenter()
        {
            InitializeContentPresenter();

            IFrameworkElementHelper.Initialize(this);
        }