예제 #1
0
        public StickersControl(TLAllStickers masks, TLAllStickers stickers)
        {
            InitializeComponent();

            LayoutRoot.Opacity = 0.0;

            VirtPanel.InitializeWithScrollViewer(CSV);

            Loaded += OnLoaded;

            _masks    = masks;
            _stickers = stickers;

            if (_masks == null)
            {
                LoadMasksAsync();
            }

            if (_stickers == null)
            {
                LoadStickersAsync();
            }

            LoadButtons();
            CreateSetsAndUpdatePanel();
        }
예제 #2
0
        public EmojiControl()
        {
            InitializeComponent();

            //var frame = (Frame)Application.Current.RootVisual;
            //_frameTransform = ((TranslateTransform)((TransformGroup)frame.RenderTransform).Children[0]);
            //var binding = new Binding("Y")
            //{
            //    Source = _frameTransform
            //};
            //SetBinding(RootFrameTransformProperty, binding);

            VirtPanel.InitializeWithScrollViewer(CSV);
            VirtPanel.ScrollPositionChanged += VirtPanelOnScrollPositionChanged;
            //SizeChanged += OnSizeChanged;
            OnSizeChanged(null, null);

            LoadButtons();
            CurrentCategory = 0;
        }