Windows 10: AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF

Discus and support AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF in Windows 10 Software and Apps to solve the problem; Hello,I am working on a WPF window which supports multiple frameworks<TargetFrameworks>net8.0-windows;net48</TargetFrameworks>i have a media element in... Discussion in 'Windows 10 Software and Apps' started by Sanjay Subrahmanya Bhat, Jan 22, 2025.

  1. AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF


    Hello,I am working on a WPF window which supports multiple frameworks<TargetFrameworks>net8.0-windows;net48</TargetFrameworks>i have a media element in a window written <MediaElement x:Name="Video" LoadedBehavior="Manual" MaxHeight="450" MaxWidth="450" Grid.Ro

    :)
     
    Sanjay Subrahmanya Bhat, Jan 22, 2025
    #1
  2. MrSeanKon Win User

    Enable visual styles in WPF application

    EUREKA!

    Steps:
    1) I made a Windows form (HostWPF namespace, Form1 is the form).
    2) I added a reference => System.Windows.Forms.Integration which contains classes that enable interoperation between the Windows Forms and WPF technologies. When you use System.Windows.Forms.Integration classes, you can host Windows Forms controls on WPF pages, and WPF elements in Windows Forms-based applications.
    3) Then added a control (damn Vi$ual $tudio 2010 does not allow to add a WPF window) but after adding I edited the XMAL code in the way I want *Wink AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF ;)
    4) The next steps are simple. Download the first attachment. But => see the photo.
    It crashes!!!!!
    5) Finally???
    We must use System.Windows.Forms.Application.Exit(); command because the WPF window behaves like a classical Windows Form.
    Download the second attachment. Note that the Windows form's name is Initial.
    Enjoy!
     
    MrSeanKon, Jan 22, 2025
    #2
  3. Brink Win User
    Announcing Open Source of WPF, Windows Forms, and WinUI


    Source: Announcing Open Source of WPF, Windows Forms, and WinUI at Microsoft Connect(); 2018 - Windows Developer Blog

    See also: .NET Core 3 Preview 1 and Open Source Windows Desktop Frameworks - Windows 10 Forums

    Tweet



    — Twitter API (@User) View on Twiiter
     
    Brink, Jan 22, 2025
    #3
  4. Brink Win User

    AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF

    Announcing Open Source of WPF, Windows Forms, and WinUI

    Source: Announcing Open Source of WPF, Windows Forms, and WinUI at Microsoft Connect(); 2018 - Windows Developer Blog

    See also: .NET Core 3 Preview 1 and Open Source Windows Desktop Frameworks - Windows 10 Forums

     
    Brink, Jan 22, 2025
    #4
Thema:

AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF

Loading...
  1. AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF - Similar Threads - AppDomain CurrentDomain BaseDirectory

  2. Windows Media Player slow while loading audio or video

    in Windows 10 Gaming
    Windows Media Player slow while loading audio or video: Media Player 11.2503.5.0 is taking an excessive amount of time to play an audio track after double-clicking from File Explorer or selecting a track from the Media Player Music Library. I have rebuilt the library index, run DISM with CheckHealth, ScanHealth, and RestoreHealth,...
  3. Windows Media Player slow while loading audio or video

    in Windows 10 Software and Apps
    Windows Media Player slow while loading audio or video: Media Player 11.2503.5.0 is taking an excessive amount of time to play an audio track after double-clicking from File Explorer or selecting a track from the Media Player Music Library. I have rebuilt the library index, run DISM with CheckHealth, ScanHealth, and RestoreHealth,...
  4. AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF

    in Windows 10 Gaming
    AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF: Hello,I am working on a WPF window which supports multiple frameworks<TargetFrameworks>net8.0-windows;net48</TargetFrameworks>i have a media element in a window written <MediaElement x:Name="Video" LoadedBehavior="Manual" MaxHeight="450"...
  5. WPF: Drag & Drop virtual folder from WPF to File Explorer

    in Windows 10 Gaming
    WPF: Drag & Drop virtual folder from WPF to File Explorer: Hi, I am developing ADB Explorer, a UI for ADB in WPF.I am trying to implement support for Drag & Drop to Push / Pull files between PC and an Android device, and while accepting files dragged into the app is quite easy since I can just use the provided path, its the other...
  6. WPF: Drag & Drop virtual folder from WPF to File Explorer

    in Windows 10 Software and Apps
    WPF: Drag & Drop virtual folder from WPF to File Explorer: Hi, I am developing ADB Explorer, a UI for ADB in WPF.I am trying to implement support for Drag & Drop to Push / Pull files between PC and an Android device, and while accepting files dragged into the app is quite easy since I can just use the provided path, its the other...
  7. WPF Application Development - Any ideas for detecting Media Player Windows Media Player...

    in Windows 10 Gaming
    WPF Application Development - Any ideas for detecting Media Player Windows Media Player...: Hi,I am running into an intermittent <1% occurrence, seemingly unreproducible, issue when playing media via the MediaElement in a WPF App where the media freezes/locks up.Sometimes this media player will eventually unfreeze itself and continue playback from the frozen...
  8. WPF Application Development - Any ideas for detecting Media Player Windows Media Player...

    in Windows 10 Software and Apps
    WPF Application Development - Any ideas for detecting Media Player Windows Media Player...: Hi,I am running into an intermittent <1% occurrence, seemingly unreproducible, issue when playing media via the MediaElement in a WPF App where the media freezes/locks up.Sometimes this media player will eventually unfreeze itself and continue playback from the frozen...
  9. 100% CPU load with empty task manager

    in Windows 10 Software and Apps
    100% CPU load with empty task manager: Run into the issue where task manager shows 100% CPU load while all tasks give 0, already attempted to clear pc of malware with 3 different programs, remove everything in autoloader, update all the drivers, roll back the windows update and kill all the tasks at once with task...
  10. Groove Player loads Empty

    in Windows 10 Software and Apps
    Groove Player loads Empty: The player just loads empty , white in colour with a few lines *Mad I looked in search for threads regarding groove player but didn't see anything solved. Any ideas why this is happening & how to fix it? Thanks in advance *Cool 33457