XAF Web – Add CSS Style

First, I have to admit CSS and Javascript are not my stronger points. With that out of the way, some times a simple change makes a big difference in the appearance of your app.

Well, let’s change the color of the header bar in our XAF Web application.

public class AddStyleController : ViewController
    {

        protected override void OnViewControlsCreated()
        {
            base.OnViewControlsCreated();

            LiteralControl style = new LiteralControl();
            style.Text = "<style type='text/css' scoped>.white { background-color: palegreen; }</style>";
            ((Control)View.Control).Controls.Add(style);


        }
    }

And good to go:

Source Code: https://github.com/jjcolumb/BlogDemo

Until next time, XAF out!

 

Speaker Invitation to CodeCamp Santo Domingo

I am really excited to say I was invited to speak at CodeCampSDQ. My talk would be about Real world experiences using advanced ORMs in the mobile ecosystem. Translation: I will be talking about XPO and Xamarin.

Abstract: In this talk, I will guide you on why and how to choose an ORM that reduces the cost of development, makes your model database-agnostic while keeping a consistent performance.

Date is May 30 so I hope to see a few of you over there 🙂

Update: Conference has been postponed due to COVID-19. There is not new date set yet so I will update it here as soon as I have more information.

Can’t wait!

See you next time. XAF out!

XAF Win – Actions Placement in the Ribbon

When talking about actions placement we have a lot of choices. We can change the action container in the model or if doing it by code:

public class MyViewController : ViewController {
    public MyViewController() {
        SimpleAction myAction = new SimpleAction(this, "MyAction", "View");
        myAction.ImageName = "Action_SimpleAction";
    }
}

Here we can change the category (“View”) that map to that action container and that will be enough. We can also change the index inside the action container if we need a specific order. We can create a new Ribbon Template like shown here. A little cumbersome right? But what do we do if we want to have our action in a separate RibbonGroup and/or RibbonPage?

Continue reading

XAF Win Image in ListView Grouping

Following last post about grouping selection in a ListView this time we will focus on adding an image to display when grouping. (if my words don’t paint a complete picture refer to the image above).

This can be useful for example for products and categories. You can display a picture of the Category certain products belong and show those products when expanding the group. Let’s take a look:

Continue reading

XAF Web Multiple Files Upload

 

Reading the support tickets daily it has become one of my most rewarding morning routines. Besides the constant learning factor, I am all the time running into some amazing questions / implementations/ samples that I can put in practice right away.

I have said it before but I will reiterate here:

When presented with a XAF challenge the first thing I do it is a quick search trough the support tickets to see if there is already an implementation that I can adapt to my needs. Most of the time I find something that I can use, but also most of the time I have to actually code it and run it to see if it is exactly what I need it.

If you are like me, you would love to have a visual before getting to deep and realizing I am on the wrong path. I also realize DevExpress receives tons of tickets daily so this is not feasible for them.

Continue reading

Caribbean Developers Conference ??

“He is talking again about conferences. Yeah, Yeah, we know, they are great.”

Well, before you run away, hear me out. This time I have a different point. Yes conferences are great and CDC is one of my favorites but what no one talk about is, they are a lot of work for the organizers.

I had the opportunity to be part of the staff of CDC 2019 and  I have to give a big shout out to the Megsoft team for all their hard work  and for making this event possible.

Continue reading