Skip to content

Instantly share code, notes, and snippets.

@ogaty
Last active October 25, 2022 07:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogaty/fda021c46c2d18408e0ad48dbe2fefd0 to your computer and use it in GitHub Desktop.
Save ogaty/fda021c46c2d18408e0ad48dbe2fefd0 to your computer and use it in GitHub Desktop.
mac cocoa c# xamarin

label

nameLabel.StringValue

TextField

event_name.StringValue = jsonObj.name;

popup(combo)

list.RemoveAllItems(); list.AddItems(items);

textview

event_memo.Value = jsonObj.memo;

datepicker

DateTime date = new DateTime(jsonObj.birth_year, jsonObj.birth_month, jsonObj.birth_day, 12, 0, 0);
DateTime reference = new DateTime(2001, 1, 1, 0, 0, 0);
NSDate dd = NSDate.FromTimeIntervalSinceReferenceDate(
    (date - reference).TotalSeconds);
event_date.DateValue = dd;

table

delegate、dataSourceを組み合わせる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment