How to set Todays Widget Height depending on content size using Xamarin Ios Native

Here is a sample to set Todays Widget Content height according to tableview content height public partial class TodayViewController : UIViewController, INCWidgetProviding { //https://forums.xamarin.com/discussion/104640/almost-all-time-cannot-show-more-for-xamarin-today-widget-on-ios-11 [Export("widgetActiveDisplayModeDidChange:withMaximumSize:")] public void WidgetActiveDisplayModeDidChange(NCWidgetDisplayMode activeDisplayMode, CoreGraphics.CGSize maxSize) { // Take action based on the display mode switch (activeDisplayMode) { case NCWidgetDisplayMode.Compact: this.PreferredContentSize = maxSize; // changes according to compact mode break; … Okumaya devam et How to set Todays Widget Height depending on content size using Xamarin Ios Native

Reklamlar