I have this scenario: My action sheets have a variant text size, like in this question, but trying to access this API from xamarin iOS, I cant find the property:
UILabel.appearance(whenContainedInInstancesOf: [UIAlertController.self]).numberOfLines = 2
Reading this question, anwsered by #SushiHangover, there are many hidden API's by Xamarin, and with the code, I think I can achieve the desired behavior.
So, in Xamarin.iOS, how can I force my action sheet's options to have two or more lines of text? I'm not familiar with iOS internals or Objective-C.
I tried to found the Attribute name of this property and try the Sushi's solution, but with no luck.
I found a solution:
Using SushiHangover's solution on his answer, i can achieve the desired behavior using the following code:
var styleHandle = IosUtils.GetAppearanceEx(Class.GetHandle("UILabel"), typeof(UIAlertController));
IosUtils.void_objc_msgSend_IntPtr(styleHandle, Selector.GetHandle("setNumberOfLines:"), ((NSNumber)2).Handle);
I can't affirm if is the best solution, but I can do what I need.
Related
Is there a way how to display some contacts from Outlook's contact list in different manner?
So far I've seen, that there is quite some customization available for Office applications, however I haven't seen anything even remotely close to this functionality.
No, there is no way to display Outlook contacts in a different color.
Well, indeed this is what I found - it is possible only via adding of the new AutoFormatRule to the Outlook.TableView.
Sample code would be something like:
Outlook.AutoFormatRule autoFormatRule = tableView.AutoFormatRules.Add("My own rule");
autoFormatRule.Font.Bold = true;
autoFormatRule.Font.Strikethrough = true;
autoFormatRule.Filter = <filtering>;
tableView.Save();
tableView.Apply();
For filling in 'filtering' part one can use DASL Queries
But I still need to figure out what to do with the non-list views.
I can suggest only one possible way - replace the default folder view with a custom form where you can display entries in the way you need. See Creating Adjacent Windows In Outlook for more information.
Also you may consider using Add-in Express. They provide such layouts out of the box. See Advanced Outlook view and form regions.
Note, you can use any .net controls on top of custom forms.
How do you use search bars with core data?
I have the search bar appearing above the tableview but currently it is not working
I need to be able to search through a list of meals
I'm quite new to xcode so if u could give details answers such as which method to put code etc it would be greatly appreciated
Thanks
follow this tutorial
core data search tutorial
you can also check my git project, I just done use search bar with core data:
https://github.com/dennis87/bookList
if you have questions about the project ask me and I will try to answer you (I am new too).
How can i implement a Section View(like in IOS) in Windows8 ListView ?
I want to break down the Listview into different Sections.
Any Directions ?
ListViews have a property called groupDataSource that lets you define how the items are grouped. You might want to look at the Grid App template in Visual Studio, which has data already set up in this way. You can also take a look at this tutorial: http://msdn.microsoft.com/en-us/library/windows/apps/hh465464.aspx
If you want any more info, you will have to be a bit more specific with your line of questioning.
In my Netflix post on codefoster.com I tried to show grouping in its simplest form. When you have a JS array, you simply make a Binding.List out of it and then you just call createGrouped sending it two lambda functions telling it how to group. Then like #Paul said, you'll get those different sections automatically in your ListView. Hope that helps.
Having no luck here trying to find a solution to this.
I've set up a looping selector based on this guide. (I also used the ListLoopingDataSource class in Part 2 in order to have strings in my looping list).
What I want to be able to do is then change another element (an image box/placeholder) on my layout, based on what is currently selected in the looping selector.
No real idea how to do this, the onSelectionChanged event is kind of abstracted and not really useful? I'm not sure how to programmatically change images either, it doesn't look like I can access a resource from the code base, only from the xaml.
Any help/suggestions would be greatly appreciated.
I found that I could do this by using binding.
I'm new to Adobe InDesign Server and I'm having a hard time finding a good kitchen sink app. All the examples I got from the SDK seem to partially work. All I'm trying to do is use a master page from InDesign from the server side and edit certain text fields. For example placing first and last name in particular text fields. Does anyone know of a good place to get examples code that shows all the features or how I would approach this problem?
http://www.adobe.com/devnet/indesign/documentation.html#idserver Has a lot of resources that is useful when starting out. In particular http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignServer/ids-solutions.pdf includes a number of code examples for various common operations.
As to your specific example, the typical way to go about it is:
1. Get the page object from the master pages list.
2. Iterate over each text field on the page.
3. Somehow identify the fields, for example by setting the script label in the template document and checking the labels of each text field you iterate through.
4. Set the contents of the text field.
A lot of the official InDesign documentation is partial.
Jongware also hosts the complete reference documentation:
http://www.jongware.com/idjshelp.html
Probably the reason why teh IDS documentation isn't that exhaustive is that dealing with the server version is an extension of the classical indesign use. So the exception of some peculiarities detailed in the ids sdk docs, you will find most of the help with InDesign Scripting guides ;)