WPF, C#, Objective C and a little Math

I bought a Mac

So its finally happened.

I had a lot of reasons to do it, and I’m absolutely exited about the result. I have smallest macbook pro and I am happy. This is probably the most interesting and nice experience in computers for me both as user and programmer since many years.

Noticing beautiful Mac UI interface I thought about using the shadow for ModalUserControls from my previous post. It is really easy to do using DropShadowEffect, here is modified control template (see Effect node after comment):

<ControlTemplate TargetType="{x:Type ContentControl}">
    <Grid Focusable="False">
        <ContentPresenter Content="{TemplateBinding Content}">
        <ContentPresenter Content="{Binding ...}">
        <!-- Shadow effect for modal content -->

And this is how it looks:

Much better, isn’t it?

I’m going to continue develop stuff in Windows/C#/WPF, but someday Objective-C will arrive on this page 😉

Categorised as: UI

Leave a Reply

Your email address will not be published. Required fields are marked *