Could you implement The IElementSizing, override the required method
(GetElementSize?) and do it in there? or possibly in the LayoutView
method, if it's just a view? I thought that GlasButton was doing
layout in LayoutView anyway.

On Fri, Aug 24, 2012 at 4:18 PM, René Ruppert <[email protected]> wrote:
> I have the code. Maybe I was not clear about the issue: how to DYNAMICALLY 
> adjust the size of the button if the size of the table view changes?
> If I'm inside a subclass of UIViewElement, I can override GetCell() and 
> that's about it. In there I would have to figure out the size of the cell to 
> adjust the button, but there, the cell's size isn't defined yet.
>
> René
>
> Am 24.08.2012 um 16:05 schrieb Nic Wise <[email protected]>:
>
>> Grab the code and change the Frame etc? It's all on github :)
>>
>> On Fri, Aug 24, 2012 at 2:11 PM, René Ruppert <[email protected]> wrote:
>>> Hi,
>>>
>>> I'm using UIViewElement and set its view to a GlassButton. But how can I 
>>> have the size of my glass button adjusted so that it matches the size of 
>>> the cell?
>>>
>>> René
>>> _______________________________________________
>>> MonoTouch mailing list
>>> [email protected]
>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>>
>>
>> --
>> Nic Wise
>> t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
>> b. http://www.fastchicken.co.nz/
>>
>> mobileAgent (for FreeAgent): get your accounts in your pocket.
>> http://goo.gl/IuBU
>> Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
>> Earnest: Self-employed? Track your business expenses and income.
>> http://earnestapp.com
>> Nearest Bus: find when the next bus is coming to your stop. 
>> http://goo.gl/Vcz1p
>> London Bike App: Find the nearest Boris Bike, and get riding! 
>> http://goo.gl/Icp2
>



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to