WPF Cefsharp Adblocking - c#

I would like to implement adblocking in my cefsharp browser, though i've got no clue on how to do this.
Spent some time looking around and i could find no solutions.

Related

Programatically moving a window in Xamarin.mac app

I've been trying to find a way to make a sort of desktop pet to walk around my screen with Visual studio mac and xcode using the xamarin framework.
Im very new to the development of mac apps but tried making a small window that would helpfully walk around randomly... I havent found any info from the countless searches I have made on the internet. I still have a lot of questions like getting rid of the borders and menu or keeping it on top. For now however, I would just like to see it move- I've spent too much time trying to figure it out.
Thanks in advance for any answers, my hope in this project is suffering.

WPF - Customizing title bar - uptodate solution

I love WPF but I'm in trouble.
Everything is very customizable but I didn't found anything valid for personalizing title Bar and Application borders.
I've understand that isn't possible to customize it directly because it's Windows that manage that, but otherwise I didn't found any valid solutions...
The only results that show up from google are using WindowChrome, but I think it's a VERY outdated solution.
Otherwise I only found THIS code snippet, but it is (for me, at least) a bit complicated to understand fully. Also, I've tried it but it doesn't allow to do some actions, like move window when maximized, but a lot of application (done in WPF) that I saw daily are able to do that.
In final word I can't find anything good.
I think WPF is very used even today, and I really don't understand how they do good looking solutions, that doesn't involve using a 2009 library.
You should get started with the docs. That sample you linked to will make more sense after that.
Basically, you are asking OS that you own the entire region and will take care of ensuring everything continues to behave as expected.

Open pdf and offices documents in xamarin forms

I'm looking for a way to open pdf and offices files(execl, word and stuff) from within my xamarin forms project.
so far i only found native ways to do this. and it is true that you can only open files local on the device?
I been looking at the xamarin components store, the xamarin developer documents and here on SO, and the closest thing i got was this
Anyway, anything would be awesome. thanks for your time
To anyone else.
You could just code the native way to do this, an then invoke that. much faster then looking for a plugin

How to scroll down with Selenium WebDriver using C#?

I'm making an automated updater on a google docs and i've been stuck for many hours trying to figure out how to trigger a scroll down on the spreadsheet,
i've also tried other solutions posted here
right now i'm trying to trigger it through javascript, weird thing is that it works on other website but for the google docs spreadsheet it's not working
here is my code on scrolling down:
js.ExecuteScript("window.scrollTo(0,Math.max(document.documentElement.scrollHeight," +
"document.body.scrollHeight,document.documentElement.clientHeight));");
I need help if there's any other solution
thanks in advance
While I am a massive fan of selenium, is it really the best tool for updating a Google Docs spreadsheet?
Unless I was working for Google, and I would not try and automate this application.
However, there is an API provided by Google specifically to access spreadsheets;
https://developers.google.com/google-apps/spreadsheets/
Going via the API will be far faster and reliable.

How to use SlimDX inside a WPF C# application

i'm totally new to SlimDX and WPF, but i need to create a multiple images in my application and one of them need to be a 3d visualizator of a point render, something like this:
http://img600.imageshack.us/img600/5879/6a00d83452464869e2017ee.gif
I found i can use SlimDX to use DirectX by C# instruction in my application, writing the result in a D3DImage component.
After some tries i made visual studio 2012 to recoignize that D3DImage (for some reason i needed to restart windows to made it work) but i don't know a few things:
How i can initialize a DirectX window inside that D3DImage? I really can't find any example or source code. All the examples i can find (like the 3 litte examples on SlimDX) are out of the WPF context
Where i can find some good documentation about SlimDX? The GameDev community seems some kinda bugged and i can't post anything (maybe because i'm not paying) and i can't find anything anywhere! How i'm supposed to learn that?
Not a single one of the SlimDX examples from the SVN can compile. I always got some reference error with the SlimDX library (empty path) and even re-importing from the correct path doesn't solve it
This is driving my crazy D:
I feel your pain. I haven't be working to much with the D3D stuff in SlimDX for lack of a reason to do so, But I have been playing around with DirectSound and DirectInput, So i'll tell you what i've figured out.
First Bullet:
I'm not sure initializing a D3D Window inside of an image is going to work. If you're using Windows Forms as your base, SlimDX includes a RenderForm or some such thing that subclasses Windows.Forms, and provides a decent amount of functionality. I still haven't figured it out for WPF, even though there's supposed to be a sample for that.
Second Bullet: Documentation is difficult to come by. There's some stuff on the site, and some stuff here, but what's really been helpful is the MSDN Reference for DirectX. SlimDX Mirrors the structures pretty well, and you can find out a lot by reading it. It DOES take a bit of conversion, because the DirectX reference is C++.
Third Bullet: Same problem. Never was able to figure out why.
Hope that helps a bit.

Categories