Exemplo n.º 1
0
        static Tabs()
        {
            UIHelper <Tabs> .Register();

            UIHelper <Tabs> .AddObservableCallback(a => a.Items, (obj, s, e) => obj.ItemsChanged());

            UIHelper <Tabs> .AddCallback(a => a.TopMost, (obj, o, n) => obj.TopMostChanged());

            UIHelper <Tabs> .AddCoerce(a => a.TopMost, (obj, value) => (value != null) && (obj.Items?.Contains(value) == true)?value : null);

            UIHelper <Tabs> .AddCallback(a => a.Layout, (obj, o, n) => obj.layoutTimer.Start());

            UIHelper <Tabs> .AddCallback(a => a.Rows, (obj, o, n) => obj.layoutTimer.Start());

            UIHelper <Tabs> .AddCallback(a => a.Columns, (obj, o, n) => obj.layoutTimer.Start());
        }