Elements. Build native projects for any modern development platform, using the language(s) of your choice. Oxygene (Object Pascal), C#, Swift, Java, Go. | RemObjects Software

Picture Viewer

Language: Oxygene, Platform: Echoes, Category: WPF
https://github.com/remobjects/ElementsSamples/tree/master/Oxygene/Echoes/WPF/Picture Viewer

App.xaml.pas

namespace PictureViewer;

interface

uses
  System.Windows,
  System.Data,
  System.Xml,
  System.Configuration;

type
  App = public partial class(System.Windows.Application)
  public
    method AppStartup(sender: Object; args: StartupEventArgs);
  end;

implementation

method App.AppStartup(sender: object; args: StartupEventArgs);
begin
  var mainWindow: Window1 := new Window1();
  mainWindow.Show();

  mainWindow.Images := ((Self.Resources['Images'] as System.Windows.Data.ObjectDataProvider).Data as ImageList);
  mainWindow.Images.Path := '..\..\Images';
end;

end.