问题标签 [custom-renderer]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
xpages - 自定义渲染器 - 添加 HTML 标签
我已经阅读了很多关于自定义渲染器的帖子,但我似乎无法找到我正在寻找的东西。
这又是关于组合框的。XPages 将读取模式下的组合框呈现为表格,而我发现的自定义呈现器有助于仅写出字段的值。
不过,我想做的是将值包装在 HTML 输入标签中,以便在读取模式下应用引导样式。
是否可以在自定义渲染器中做到这一点,如果可以,我将如何做到这一点?
非常感谢您的帮助。
android - 使用 AXML 和代码的 Android 自定义组件
我正在开发一个 Xamarin.Forms 应用程序,并完成了 Windows Phone 部分。但是,我在其中的 Android 部分遇到问题。
我使用自定义元素来显示主页 - 它是一个可滑动的两个选项卡视图。在 Windows Phone 上,我使用一个相对简单的用户控件解决了这个问题,该控件由一个 Pivot 和两个预定义的页面组成。
我怎么能在 Android 上做同样的事情,同时使用 AXML 进行布局并在单独的类中定义代码?
xamarin.forms - 在自定义渲染器 Xamarin 中覆盖 OnDisappearing。形式
我想在 Xamarin.Forms 中的 Android 项目中调用 OnDisappearing() 上的 base.Dispose()。
我做过这样的事情:-
命名空间 Project.Mobile.Droid
我该怎么做呢?我是 Xamarin.Forms 的新手,所以如果有人在这方面帮助我,那将是一个很大的帮助。
c# - XamarinForms:在 XAML 中使用自定义呈现器中的控件
我在 Xamarin 中创建了自己的自定义渲染器,如下所示:
如何将它包含在我的 HomePage.xaml 文件中?我试过这个:
但它不起作用,说 CustomEntry 不是“ http://xamarin.com/schemas/2014/forms ”命名空间中的有效控件。有任何想法吗?
ajax - 覆盖使用自定义渲染器进行渲染
我想覆盖默认<f:ajax>
渲染的输出。是否有可能覆盖标签的处理和这个<f:ajax>
标签的渲染器?
android - Xamarin.Forms Timepicker IsVisible 属性与自定义渲染器
在 Xamarin.Forms 中,我使用 TimePicker 控件让用户选择时间以进行调度。为此,我使用自定义渲染器,因为我需要将分钟间隔设置为例如 30 分钟和 24 小时制。这一切都很完美,除了样式问题。我的 TimePicker 需要在标签元素上不带边框显示(我并不关心对话框中的样式)
来自 iOS 的本机实现会导致 TimePicker 出现一个完整的边框。Android 的本机实现导致 TimePicker 出现底部边框。
因为 Xamarin.Forms TimePicker 没有边框属性,并且我创建的两个自定义渲染器都无法隐藏边框,所以我选择最初通过设置属性 IsVisible=false 来隐藏 TimePicker,并改为显示标签控件。这可以满足样式问题的需要,但设置此属性会导致 Android 实现忽略间隔和 24 小时设置。iOS 实现按需要工作。
关于如何解决这个问题的任何建议?看起来像一个Android错误或不受欢迎的实现,但仍然......我看到的唯一其他选择是创建我自己的选择器实现,这是可能的而且不难,但不是我的首选......
xamarin.forms - 适用于 WindowsPhone 8.1 的 Xamarin Toasts 插件
我需要在 Xamarin.Forms 上使用 toasts。我找到了 Toasts.Forms.Plugin但它不适用于 WP8.1
我在 WinPhone8 上遇到了很多性能问题,所以我创建了 WP8.1 项目。
我需要做什么才能使其在 WP8.1 上运行?有人可以帮我弄清楚我需要做的改变吗?
编辑:Toasts.Forms.Plugin
添加包时出现以下错误
ajax - PrimeFaces 自定义渲染器未用于 Ajax 更新
我试图编写一个 PrimeFaces 分页器以更符合 WCAG 规则。
原始页面链接(1 2 3 4 5)不是链接,而是<span>
带有普通页码。我用''包裹了那个数字,这样他们就可以集中注意力,标题解释了这个链接的用途。渲染器工作得很好,但是在使用它并更改页面(AJAX 请求)页面链接后呈现老式。
为什么会这样,以及如何解决?
我的渲染给出:
更改页面结果后是
如您所见,更新后的结构就像在普通的 PrimeFaces 中一样。锚点消失了,标签索引又回到了 0
xamarin - Custom ViewCell after xamarin forms 2.0 upgrade renders the Entries with a 1 pixel height
I've provided a link to a fairly simple, drilled down version of our app. What you will see in it is that I've a simple Forms app consisting of 2 pages. My first page just has a button to navigate to a second page. My Second page has a TableView with Custom ViewCells using EntryRenderer on Windows Phone.
This was all working fine up until XF 1.5 & then we decided to upgrade to XF 2.0 Now it does not work. All my entries in that custom view cell are shrunk to a height of 1 pixel.
Here is the glitch though. I figured that if the page using the table view with custom viewCell & entry renderers is the first page of your app then all works fine.. but if it's somewhere in in the navigation stack.. then you will see all entries are shrunk.
Attached is a sample project. If you run it as it is you will see a page that looks beautiful. If you comment the MainPage = new NavigationPage(new SecondPage()); & uncomment the MainPage = new NavigationPage(new FirstPage());
On App.cs & run the app again on the WP device you will see the issue I am referring to.
A fix is really appreciated for it.
Here is the sample code:
https://github.com/supreettare/TableViewInWP
Thanks