Example #1
0
        private UwpControl.ParallaxView CreateParallaxView()
        {
            UwpControl.ParallaxView parallax = new UwpControl.ParallaxView();
            var binding = new Windows.UI.Xaml.Data.Binding
            {
                Source = lstView
            };

            parallax.Child         = CreateImage();
            parallax.VerticalShift = 100;
            parallax.SetBinding(UwpControl.ParallaxView.SourceProperty, binding);
            return(parallax);
        }
Example #2
0
        private void WindowsXamlHost_ChildChanged(object sender, EventArgs e)
        {
            var windowsHost = (WindowsXamlHost)sender;

            var childCtrl = (UwpControl.Grid)windowsHost.Child;

            if (childCtrl != null)
            {
                lstView      = new UwpControl.ListView();
                lstView.Name = "lstView";

                UwpControl.ParallaxView parallax = CreateParallaxView();

                CreateListView();
                myGrid = childCtrl;
                myGrid.Children.Add(parallax);
                myGrid.Children.Add(lstView);
            }
        }