What is the best way to get directX (2d and/or 3d) to draw in a XAML C++ class?

I’m trying to figure out the best way to draw some plots and I don’t even know if I’m asking the correct question. So if I’m not please let me know if I’m not even on the right path.

I’m building a project that I want to be C++ with xaml as the visualization. I need to draw some line plots within that, and was hoping to use DirectX to draw the lines. I’ve been looking at this article from March 2013 – https://msdn.microsoft.com/en-us/magazine/jj991975.aspx – and haven’t been able to successfully get it to draw anything in the “MyDxImage” section yet. I’m almost entirely sure I want the SurfaceImage¬≠Source since I want to be able to draw multiple plots on a single xaml screen. I’ve also watched this series – https://www.youtube.com/watch?v=p91FvlnyOyo&list=PLKK11Ligqitij8r6hd6tfqqesh3T_xWJA – and what he’s done with drawing is similar to what I want, not circles but lines, and not in a CreateWindowEx(). Then I’ve found that there’s a template for what I think I want in VS2012 – https://software.intel.com/sites/default/files/ball-in-hole05.png – that I cannot find to download.

So, side question is: is this even what I want to be doing?

I want the benefits of xaml and I want to be able to draw something in an (or multiple) image(s) within a .xaml, but I don’t know the proper way to get there. All of my programming up to this point has been data analysis and I don’t have a great grasp on the GUI/graphics part yet. Any help is greatly appreciated.

Draw a venn diagram showing an event along with its sufficient and necessary conditions

Consider some event S along with:

  • Sn (Necessary events for S)
  • Ss (Sufficient events for S)
  • Sns (Necessary and sufficient events for S)

Draw a venn diagram indicating the above.

This is my attempt, Venn Diagram, I’m not sure if I’m on the right track and I also don’t know where to indicate Sns (necessary and sufficient)

Any help would be appreciated

How to draw such boxes in Netron?

How to draw a box like this:

enter image description here

This was drawn by https://github.com/lutzroeder/netron

My attempt:

conv = ConvolutionLayer[64, {3, 3}, "Input" -> {3, 40, 30}]; Grid[{{     Style["Convolution", White, Background -> RGBColor[{51, 85, 136} / 255]],     Style["Weights", Background -> Lighter[Gray, 0.7]],     Style["Biases", Background -> Lighter[Gray, 0.7]] }, {Column[{     "Input" -> StringRiffle[NetExtract[conv, "Input"], "*"],     "Output" -> StringRiffle[NetExtract[conv, "Output"], "*"] }], SpanFromLeft, SpanFromLeft}}, Frame -> All, Alignment -> Left ] 

Some problem:

Style[..., Background -> ...] can’t fill the entire grid.

Grid seems no way to use rounded rectangles.