Exemplo n.º 1
0
 private void FrmSkGl_Load(object sender, System.EventArgs e)
 {
     if (AeroHelper.DwmIsCompositionEnabled())
     {
         var margins = AeroHelper.NewMargins((Width + Height) * 2);
         AeroHelper.DwmExtendFrameIntoClientArea(Handle, ref margins);
     }
 }
Exemplo n.º 2
0
        private async void Form1_Load(object sender, EventArgs e)
        {
            if (AeroHelper.DwmIsCompositionEnabled())
            {
                var margins = AeroHelper.NewMargins((Width + Height) * 2);
                AeroHelper.DwmExtendFrameIntoClientArea(Handle, ref margins);
            }
            IsAnimation = true;
            await LoadWebImage();

            LoadResourceImage();
            await AnimationLoop();
        }