I've tried to google this question, but didn't find what i'm looking for.
Im looking for some code examples for xamarin ios and very often meet constructions like this:
[cell setIndentationLevel:SOME_NUMBER];
[cell setIndentationWidth:SOME_OTHER_NUMBER];
And like this:
-(NSInteger)tableView:(UITableView *)tableView
indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath
{
return intOffset;
}
How to use them?
And can they be used in Xamarin studio for ios apps?
This is Objective-C and not C#. It is a different programming language. You'll need to "convert" it to C# to be able to use it in your app. (Assuming those are UITableViewCells), the C# equivalent would be:
cell.IndentationLevel = SOME_NUMBER;
cell.IndentationWidth = SOME_OTHER_NUMBER;
You need to do more research/learning into Objective-C, C#, and iOS if you're not able to tell the difference between those two languages and you want to do iOS development.
Related
not applying the voiceover accessibility on MDHTMLLABEL HTML TEXT link in xamarin iOS
i am doing below code:
lblSubHeading2.HtmlText = NSBundle.MainBundle.LocalizedString (
"EPMRoomParentMessageLine3",
null);
i am using HTMLTEXT so i am not able to give accessibility on this text or link so give me solution
You have to create bindings to MDHTMLLABEL library, then you can call the method from MDHTMLLABEL in your project.
Here is the document and samples you can refer: Binding Objective-C and walkthrough.
I'm wondering if it is possible to implement a very simple web browser with wxPython, I know you can use wx.html.LoadPage() function but it does not work very well, I want a basic standalone/browser just like the following code (image link) written with Pyjamas with the pyjd.setup() function
Then you'll want to look at the HTML2_WebView widget. It's cross platform and should work for most websites. There is an example in the wxPython demo. Note that it's new in wxPython 2.9. You can read more about it in the documentation:
https://wxpython.org/Phoenix/docs/html/wx.html2.WebView.html
Or check out the following link for another example:
wxPython WebView example
I am creating a windows 8 app in c# and xaml.
How can i print a pdf file on my system from this app without launching the pdf reader of windows.
If a commercial library is an option, you could try Amyuni PDF Creator for WinRT.
From the documentation, the code for printing a PDF file in C# using this library would look like this:
// Printing on a XAML Windows Store Application
// The field AmyuniPDFCreator.PDFCreator m_pdfCreator; contains an instance of the PDFCreator control
TypedEventHandler<PrintManager, PrintTaskRequestedEventArgs> m_printTaskRequestedEventToken;
// Registering the Application View for printing
void RegisterForPrinting()
{
// Request a PrintManager instance
PrintManager printMan = PrintManager.GetForCurrentView();
// Add a handler for printing events.
m_printTaskRequestedEventToken = printMan.PrintTaskRequested += m_pdfCreator.Document.PrintTaskRequestedEventHandler;
}
// Unregistering the Application View for printing
void UnregisterForPrinting()
{
// Remove the handler for printing events.
PrintManager printMan = PrintManager.GetForCurrentView();
printMan.PrintTaskRequested -= m_printTaskRequestedEventToken;
}
More details about the library can be found here.
Disclaimer: I currently work as a developer of the library
It is possible to achieve this without any third party library if you want to print it with a device.
This isn't working to create or write a ".pdf"[Pdf File). To make this happen without another library you could maybe try to write images directly into a pdf, but i can only reference here the Pdf Documentation.
First of all you have to render your pdf. You can do this with Windows.Data.Pdf.
You can take a look at an example here. The libary will handle the Pdf and you get some BitmapImages rendered.
This library can read, but not write ".pdf"
Now you have to print your Images(rendered pdf pages). For this you take the Windows.Graphics.Printing.PrintManager.
I would not recommend the msdn example in this case.
So have a first look at Windows Store Apps and XAML Based Printing.
And you will find another printing example with MVVM here: Printing from MVVM XAML Windows 8 Store apps.
If you just follow the examples you will achieve to print a pdf on paper some trouble.
How to add custom settings for your printer is explained at How to add custom settings to the print preview UI (XAML)!
Windows 8 doesn't have an API to do this, so you'll have to acquire one elsewhere - something that's capable of properly rendering a PDF for you, and that's going to mean a full-blown PDF API with all the bells and whistles (I'm not aware of any of these for Windows 8 that only supports printing).
If only PDF Sharp had a WinRT version, I'd recommend it in a heartbeat... unfortunately it doesn't (yet). Only ones I know of that have an API for WinRT are Foxit and Siberix Report Writer.
One big piece missing on richfaces is a chart support. In my case what I need is a simple bar chart, with no interactivity to put into a jsf (richfaces 3) page, into a javaEE 6 web-application that must run only with opensource libraries
Anyone can give me some options?
thanks in advance!
note: I'm thinking on jfreechart, obviously, but what I need is something skinnable fast, with no pain
you could have a look on JSFlot .People say it works well with richfaces.
The JSFlot JSF chart library builds on top of the JavaScript Open
Source Project Flotr (a javascript plotting library based on the
Prototype Javascript Framework) to create stunning interactive charts
purely using JavaScript. The JSFlot charting library is simple to
install, easy to configure and easy to use in your custom application.
All of the applications dependencies (purely JavaScript related) are
included in the Jar file.
The goal of the JSFlot project is to support all the main features of
Flotr (Flotr has its own project page set up at
http://code.google.com/p/flotr/), while remaining easy and simple to
install and use.
We used JQPlot for charting in our project. Pluggable, Interactive and look good. Check them out:
JQPlot Bar Charts
Recently I stumbled over "iPhoneOSGameView" which seems to be part of MonoTouch (or MONO?). It seems to be a base view for game development but I cannot find any samples on how to use it. Is there more to it, like animation helpers or sprites? Or is it only a OpenGL wrapper?
René
There is an example in the MonoTouch samples here: https://github.com/migueldeicaza/monotouch-samples/blob/master/GLPaint-GV/GLPaint.cs