Category : wpf

I am building a WPF library that connects windows. In the example the windows have the following properties: <Window … Height="150" Width="200" WindowStyle="None" ResizeMode="CanResize" Background="#222222" AllowsTransparency="False"> <WindowChrome.WindowChrome> <WindowChrome CaptionHeight="1" CornerRadius="0"/> </WindowChrome.WindowChrome> I use Chrome window because I need to remove the title and be able to resize. Everything is working well except there are noticeable ..

Read more

I am writing a C# wpf program, which uses SQLite database and I can set its password like below: conn = new SqliteConnectionStringBuilder(connStr) { Mode = SqliteOpenMode.ReadWriteCreate, Password = "mypassword" }.ToString(); But our company has programming specification for password, and it is forbidden to hardcode the password in the source code. Also the password should ..

Read more

Hello I wanna make an image proccessing application. I will make wpf(GUI) with c# and image proccessing function with c++. Now I have a question how to use std::string in c++ class library. void OpenCVLibrary::ProcMat::test() { std::string std_name = "eagle.jpg"; *mat = imread(std_name); cv::imshow("test", *mat); cv::waitKey(0); } void OpenCVLibrary::ProcMat::test2() { System::String^ sys_name = "eagle.jpg"; std::string ..

Read more

I have a C# WPF application and I’ve referenced that inside a MSIX package. I’ve also registered a URI protocol within the Package.appxmanifest of my MSIX package the following way: <uap:Extension Category="windows.protocol" EntryPoint="AppLauncher" Executable="AppLauncherAppLauncher.exe"> <uap:Protocol Name="app-drive" > </uap:Protocol> </uap:Extension> The goal is when I type app-drive:C:test.txt into the file explorer or a browser for my ..

Read more