Exemplo n.º 1
0
        void initdatasource()
        {
            double pos = 0.0;

            for (int i = 0; i < _source.Slides.Count; i++)
            {
                BackgroundElement elem = new BackgroundElement();
                //if(i==0)
                //    elem.PropertyChanged += elem_PropertyChanged;
                elem.Source   = _source.Slides[i];
                elem.Position = pos;
                _contentpanel.Children.Add(elem);
                _elements.Add(elem);
                pos -= 900.0;
            }
            _currenttranslate = 0.0;
            _currentindex     = 0;
        }
Exemplo n.º 2
0
 void initdatasource()
 {
     double pos = 0.0;
     for (int i = 0; i < _source.Slides.Count; i++)
     {
         BackgroundElement elem = new BackgroundElement();
         //if(i==0)
         //    elem.PropertyChanged += elem_PropertyChanged;
         elem.Source = _source.Slides[i];
         elem.Position = pos;
         _contentpanel.Children.Add(elem);
         _elements.Add(elem);
         pos -= 900.0;
     }
     _currenttranslate = 0.0;
     _currentindex = 0;
 }