|
|
@ -24,13 +24,15 @@ namespace AksWebBrowser |
|
|
|
{ |
|
|
|
{ |
|
|
|
Name = "player", |
|
|
|
Name = "player", |
|
|
|
PresenterFor = this, |
|
|
|
PresenterFor = this, |
|
|
|
MarginTop = 50, |
|
|
|
MarginTop = 750, |
|
|
|
Size = SizeField.Fill, |
|
|
|
Size = SizeField.Fill, |
|
|
|
Background = Color.Silver |
|
|
|
Background = Color.Silver, |
|
|
|
|
|
|
|
Height=600, |
|
|
|
}; |
|
|
|
}; |
|
|
|
videoTitle = _videoTitle; |
|
|
|
videoTitle = _videoTitle; |
|
|
|
url = _url; |
|
|
|
url = _url; |
|
|
|
this.window = window; |
|
|
|
this.window = window; |
|
|
|
|
|
|
|
|
|
|
|
window.Children.Add(mask); |
|
|
|
window.Children.Add(mask); |
|
|
|
window.Children.Add(this); |
|
|
|
window.Children.Add(this); |
|
|
|
mask.TransitionValue(a => a.Background, "0,0,0,100", TimeSpan.FromSeconds(0.3), null, AnimateMode.Linear); |
|
|
|
mask.TransitionValue(a => a.Background, "0,0,0,100", TimeSpan.FromSeconds(0.3), null, AnimateMode.Linear); |
|
|
@ -47,10 +49,11 @@ namespace AksWebBrowser |
|
|
|
{ |
|
|
|
{ |
|
|
|
IsAntiAlias = true; |
|
|
|
IsAntiAlias = true; |
|
|
|
CornerRadius = "3,3,3,3"; |
|
|
|
CornerRadius = "3,3,3,3"; |
|
|
|
Height = "320"; |
|
|
|
Height = "1920"; |
|
|
|
Width = "640"; |
|
|
|
Width = "1080"; |
|
|
|
Background = "#2c2c2c"; |
|
|
|
Background = "#2c2c2c"; |
|
|
|
ZIndex = 100; |
|
|
|
ZIndex = 100; |
|
|
|
|
|
|
|
//WindowState = WindowState = WindowState.FullScreen; |
|
|
|
Children.Add(new TextBlock |
|
|
|
Children.Add(new TextBlock |
|
|
|
{ |
|
|
|
{ |
|
|
|
MarginRight = 12f, |
|
|
|
MarginRight = 12f, |
|
|
@ -80,16 +83,16 @@ namespace AksWebBrowser |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
//Children.Add(new TextBlock |
|
|
|
Children.Add(new TextBlock |
|
|
|
//{ |
|
|
|
{ |
|
|
|
// FontSize = 16f, |
|
|
|
FontSize = 16f, |
|
|
|
// MarginLeft = 12.6f, |
|
|
|
MarginLeft = 12.6f, |
|
|
|
// MarginTop = 9.6f, |
|
|
|
MarginTop = 9.6f, |
|
|
|
// Classes = "imgAndText", |
|
|
|
Classes = "imgAndText", |
|
|
|
// Foreground = Color.White, |
|
|
|
Foreground = Color.White, |
|
|
|
// // Text = videoTitle, |
|
|
|
Text = videoTitle, |
|
|
|
// FontFamily = "微软雅黑", |
|
|
|
FontFamily = "微软雅黑", |
|
|
|
//}); |
|
|
|
}); |
|
|
|
Children.Add(vplayer); |
|
|
|
Children.Add(vplayer); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|