我想创建自己的ActionBar布局.
像这样(例如在Paint中创建)
是否可以为第二个按钮提供上行导航属性?因此,如果我按下它,它会完成此操作Activity并启动它的父级.
我想要汉堡图标,Navigation Drawer向上导航的向上图标和活动标题.
可能吗?或者是否已有解决方案?
我想从图库加载图像并将其显示在UIImageView.
我试图像在 Xamarin Recipes 中的示例中那样做,但我得到的只是空值。
https://developer.xamarin.com/recipes/ios/media/video_and_photos/choose_a_photo_from_the_gallery/
到目前为止我的代码:
public partial class ViewController : UIViewController
{
UIImagePickerController imagePicker;
UIButton choosePhotoButton;
UIImageView imageView;
public ViewController(IntPtr handle) : base(handle)
{
}
public ViewController()
{
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
Title = "Wähle Bild aus:";
View.BackgroundColor = UIColor.White;
imageView = new UIImageView(new CGRect(10, 150, 300, 300));
Add(imageView);
choosePhotoButton = UIButton.FromType(UIButtonType.RoundedRect);
choosePhotoButton.Frame = new CGRect(10, 80, 100, 40);
choosePhotoButton.SetTitle("Picker", UIControlState.Normal);
choosePhotoButton.TouchUpInside += (s, e) =>
{
imagePicker = new UIImagePickerController();
imagePicker.SourceType = …Run Code Online (Sandbox Code Playgroud)