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 Gaming 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 Gaming' started by Sanjay Subrahmanya Bhat, Jan 22, 2025 at 6:17 AM.

  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 at 6:17 AM
    #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!
     
  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
     
  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

     
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. AppDomain.CurrentDomain.BaseDirectory is Empty While Loading Media In WPF

    in Windows 10 Software and Apps
    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"...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 100% CPU load with empty task manager

    in Windows 10 Gaming
    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...
  8. 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...
  9. File Explorer and Quick access empty and not loading

    in Windows 10 Support
    File Explorer and Quick access empty and not loading: Hi Brink, Any idea why this is happening now after update? 179906
  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