Questions tagged [contentproperty]
17 questions
29
votes
7 answers
How to set the CSS content property with a Google Material Icon?
How can I insert the Google Material Icon "chevron icon right" (https://design.google.com/icons/#ic_chevron_right) in the following CSS content property:
.bullet li a:before {
content: "";
}

Max
- 4,965
- 17
- 49
- 64
12
votes
2 answers
Is there a good reason that Setter.Value isn't a ContentProperty?
Every time I write out a setter whose Value property value isn't describable inline, I curse the fact that the API doesn't mark the Setter class with [ContentProperty("Value")], which would allow this:
…

Drew Noakes
- 300,895
- 165
- 679
- 742
11
votes
2 answers
How to override/modify the Content property of Frame to accept multiple Views in Xamarin.Forms?
Here's the C# template code I have:
public class PopupFrame : Frame
{
public PopupFrame()
{
this.SetDynamicResource(BackgroundColorProperty, "PopUpBackgroundColor");
this.SetDynamicResource(CornerRadiusProperty,…

Alan2
- 23,493
- 79
- 256
- 450
7
votes
1 answer
How do I resolve the WPF Designer error 'The type {0} does not support direct content'.'?
The following XAML (below) defines a custom collection in resources and attempts to populate it with a custom object;

Ryan O'Neill
- 5,410
- 4
- 46
- 69
3
votes
1 answer
How to use reflection to get the BindingExpression (and value) for controls having a ContentProperty in Silverlight
I need to use reflection to get the binding value in a control that is a DataGridTemplateColumn (e.g HyperLinkButton). Does anyone know how I might do this?
It seems simple enough to do this with a TextBlock because it has a TextProperty dependency…

sfx
- 33
- 5
2
votes
1 answer
How can I combine XAML and a template into one C# template with Rg.Plugins.Popup?
I would like to simplify the addition of dialog popups in my code to the absolute minimum needed.
Currently I have this code:

Alan2
- 23,493
- 79
- 256
- 450
1
vote
2 answers
Custom control ContentProperty DataBinding
I'm running in a issue while trying to use dependency properties in objects which are parts of a collection, inside acustom control, collection identified with the "ContentProperty" attribute. Ok, that's quite unclear. Here is sample of my custom…

Bruno
- 1,944
- 13
- 22
1
vote
1 answer
ResourceDictionary as ContentProperty in a ValueConverter
To convert Enums to Icons I use a value converter like that:
public class IconConverter : IValueConverter
{
public ResourceDictionary Items { get; set; }
public object Convert(object value, Type targetType, object parameter,…

falstaff
- 3,413
- 2
- 25
- 26
1
vote
1 answer
ContentProvider (contacts) - no such column: metadata_dirty
I'm trying to get all contacts of a specific type from the phone like following:
Cursor cursor = context.getContentResolver().query(
ContactsContract.RawContacts.CONTENT_URI,
null,
…

prom85
- 16,896
- 17
- 122
- 242
1
vote
1 answer
Adding value to array within xaml using x:Static
For example, I have to use array of string inside my xaml
Ok
Warning
Error
But what if I have to assing…

isxaker
- 8,446
- 12
- 60
- 87
1
vote
3 answers
Content Presenter in WPF exception
Exception using content presenter
Type 'System.Windows.Controls.ContentPresenter' does not have a content property.
Specify the name of the property to set, or add a ContentPropertyAttribute or
TypeConverterAttribute on the type.
Below is the…

user3518637
- 11
- 3
1
vote
0 answers
Initialize dependency property before it is set through XAML
I have a read only dependency property named "Periods". I have set this is as the content property using the ContentPropertyAttribute. However, as Periods is a collection type dependency property it must be initialized in the constructor to ensure…

Ivel97
- 68
- 8
1
vote
1 answer
Binding-Target never gets set in custom objects declared in *.resources; binding evaluation fails
I have a xaml view like this:

CaptainPlanet
- 735
- 4
- 8
1
vote
0 answers
Jawr fails with the css property content
In my css I have a selector like this
a[href]:after {
content: " (" attr(href) ")";
}
Jawr trips over the " (" and the ")". If I remove them, it works fine.
The exception I get when starting tomcat to deploy the web-app is:
SEVERE: Exception…

user2054105
- 61
- 1
1
vote
2 answers
new does not hide an inherited property
Possible Duplicate:
C# keyword usage virtual+override vs. new
I'm trying to hide my UserControl Content property in the following way:
public partial class Tile : UserControl
{
public new object Content
{
get { ... }
set {…

Nick
- 10,309
- 21
- 97
- 201