Ejemplo n.º 1
0
        public AltGUIGwenComplexDemoControl()
        {
            //  BackgroundBrush
            string bgFileName = "AltData/BG.jpg";

            if (VirtualFile.Exists(bgFileName))
            {
                Canvas.Background = new TextureBrush(Bitmap.FromFile(bgFileName));
            }
            else
            {
#if (!WINDOWS_PHONE && !WINDOWS_PHONE_7 && !WINDOWS_PHONE_71)
                RadialGradientBrush brush = new RadialGradientBrush();
                brush.GradientOrigin = new Vector2(0.186, 0.311);
                brush.GradientStops.Add(new GradientStop(0, Color.FromArgb(128, Color.Parse("#FF5C8AE6"))));
                brush.GradientStops.Add(new GradientStop(1, Color.FromArgb(192, Color.Parse("#FF1254A3") * 1.3)));

                Canvas.Background = brush;
#else
                Canvas.Background = new SolidColorBrush(Color.Parse("#FF1254A3") * 1.3);
#endif
            }

            Child = m_ExamplesHolder = new ExamplesHolder(Canvas);

            m_IntervalTimer.Reset();
        }
Ejemplo n.º 2
0
 void Shutdown()
 {
     if (m_ExamplesHolder != null)
     {
         m_ExamplesHolder.Shutdown();
         m_ExamplesHolder.Dispose();
         m_ExamplesHolder = null;
     }
 }
Ejemplo n.º 3
0
            public ExampleNode(Type type, Example__Base example, Base parent, ExamplesHolder holder)
            {
                m_ExampleType   = type;
                m_Example       = example;
                m_ExampleParent = parent;
                m_Holder        = holder;

                if (m_Example != null)
                {
                    m_Example.Parent = m_ExampleParent;
                    m_Example.Dock   = Pos.Fill;
                    m_Example.Hide();
                    m_Example.Holder = m_Holder;
                }
            }