this line generates the error above.. crashing the core of xamarin
The two packages Xamarin.Forms.Theme.Base
and Xamarin.Forms.Theme.Dark
is used for Xamarin.Forms, you don't need to install them on iOS platform.
do you know how to set the background picture of the actionbar/taskbar the one at the top
It's easy to achieve with Appearance .
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); UINavigationBar.Appearance.SetBackgroundImage(UIImage.FromFile("YourImage.png").CreateResizableImage(UIEdgeInsets.Zero), UIBarMetrics.Default); return base.FinishedLaunching(app, options); }
Answers
Are you developing Xamarin.Forms or Xamarin.iOS ?
If XF : create your own resource dictionary themes in
App.xaml
refer https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/themes/custom
If Xi : use UIAppearance class
check https://forums.xamarin.com/discussion/comment/191948/#Comment_191948
Severity Code Description Project Path File Line Suppression State
Error Can't resolve the reference 'System.Void Xamarin.Forms.Log::Warning(System.String,System.String)', referenced from the method 'System.Void Xamarin.Forms.Pages.BaseDataSource/d__22::MoveNext()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Template.iOS
nuget packages
Xamarin.Forms.Theme.Base
Xamarin.Forms.Theme.Dark
in app.xaml added
xmlns:dark="clr-namespace:Xamarin.Forms.Themes;assembly=Xamarin.Forms.Theme.Dark"`
this line generates the error above.. crashing the core of xamarin
and I'am using Xamarin forms..
and
"<ResourceDictionary>"
does nothingand cant find a page with everything one could change in
<ResourceDictionary>
do you know how to set the background picture of the actionbar/taskbar the one at the top
The two packages
Xamarin.Forms.Theme.Base
andXamarin.Forms.Theme.Dark
is used for Xamarin.Forms, you don't need to install them on iOS platform.It's easy to achieve with Appearance .
thx
was using
UINavigationBar.Appearance.BarTintColor = UIColor.FromPatternImage(UIImage.FromBundle("actionbar3.png"));
Iam new to IOS..
so much to READ...
to change the color of the listviews select in Xaml , IS there a better way? bit extream
mmm UIView.Appearance.TintColor gona see what this does..
I suggest you not use Appearance for this .
Since UIView.Appearance.TintColor would affect all the UIView in your project , but here you just want to change cell.SelectedBackgroundView.
cell.SelectedBackgroundView
cant find it? its not in cell anywhere
UITableView.Appearance.SectionIndexColor = UIColor.Green;
UITableView.Appearance.SectionIndexBackgroundColor =
UITableView.Appearance.SectionIndexTrackingBackgroundColor = UIColor.Green;
UITableView.Appearance.BackgroundColor = UIColor.Green;
UITableViewCell.Appearance.BackgroundColor = UIColor.Green;
UITableViewCell.Appearance.TintColor = UIColor.Green;
not working..
only way seams to be via the code above
cell only gives me the xamarin.forms Cell could be a conflict should be called xCell
I'm afraid you have to use custom renderer .