Added the WPF funcitonality
This commit is contained in:
@@ -36,7 +36,7 @@ namespace RBG_Server.WPF
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Browse for file button
|
||||
/// Browse for game board file button
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
@@ -384,14 +384,8 @@ namespace RBG_Server.WPF
|
||||
{
|
||||
try
|
||||
{
|
||||
/*
|
||||
// Must write-out the stream to
|
||||
MediaElement gifMedia = new();
|
||||
gifMedia.LoadedBehavior = MediaState.Play;
|
||||
gifMedia.Source = new Uri(item.Key);
|
||||
_ = LoadedSprites.Children.Add(gifMedia);
|
||||
*/
|
||||
Image spriteImage = new();
|
||||
// Generate the animatedBitmap
|
||||
RBG.Helpers.AnimatedBitmapImage animatedBitmap = new(new MemoryStream(item.Value, false), spriteImage, Application.Current.Dispatcher);
|
||||
_ = LoadedSprites.Children.Add(spriteImage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user