Click here to Skip to main content
15,890,282 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 19:21
Abhinav S26-Aug-10 19:21 
GeneralRe: how to create silverlight project/ Pin
awinash kr26-Aug-10 19:24
awinash kr26-Aug-10 19:24 
AnswerRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 19:44
Abhinav S26-Aug-10 19:44 
GeneralRe: how to create silverlight project/ Pin
awinash kr26-Aug-10 20:19
awinash kr26-Aug-10 20:19 
GeneralRe: how to create silverlight project/ Pin
Abhinav S26-Aug-10 20:36
Abhinav S26-Aug-10 20:36 
AnswerRe: how to create silverlight project/ Pin
Kunal Chowdhury «IN»27-Aug-10 2:29
professionalKunal Chowdhury «IN»27-Aug-10 2:29 
AnswerRe: how to create silverlight project/ Pin
#realJSOP27-Aug-10 2:04
mve#realJSOP27-Aug-10 2:04 
QuestionCustom UserControl question.... [modified] Pin
Phil Boyd26-Aug-10 8:55
Phil Boyd26-Aug-10 8:55 
I have the following custom UserControl:
<UserControl x:Class="ReportIt.Controls.UICControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:diag="clr-namespace:System.Diagnostics;assembly=WindowsBase">
<StackPanel Margin="0">
<StackPanel.Resources>
<Style TargetType="TextBox">
<Setter Property="MinWidth"
Value="55" />
<Setter Property="MaxWidth"
Value="60" />
<Setter Property="Margin"
Value="0,0,5,0" />
</Style>
</StackPanel.Resources>
<GroupBox Header="{Binding Path=UICTypeLabel}"
Margin="0,10">
</GroupBox>
</StackPanel>
</UserControl>

Here is the referenced DependencyProperty:
public static DependencyProperty UICTypeLabelProperty =
DependencyProperty.RegisterAttached("UICTypeLabel", typeof(string), typeof(UICControl), new PropertyMetadata(String.Empty));
public string UICTypeLabel
{
get
{
return (string)GetValue(UICTypeLabelProperty);
}
set
{
SetValue(UICTypeLabelProperty, value);
}
}

And here is the usage:
<controls:UICControl Margin="0"
x:Name="uicResponsibleControl"
Incident="{Binding Path=AtbIncident}"
ReportingStructure="{Binding Path=AtbIncident.AtbIncidentReportingStructures}"
UICType="R"
UICTypeLabel="Responsible" />


But I'm not seeing "Responsible" when the control presents itself on the display. What am I doing wrong?

I am also seeing this error message in the Output window:
System.Windows.Data Error: 39 : BindingExpression path error: 'UICTypeLabel' property not found on 'object' ''BasicViewContext' (HashCode=13769489)'. BindingExpression:Path=UICTypeLabel; DataItem='BasicViewContext' (HashCode=13769489); target element is 'GroupBox' (Name=''); target property is 'Header' (type 'Object')
BasicView is the XAML window that is using the control.

Thanks

Phil



-- Modified Thursday, August 26, 2010 3:11 PM
AnswerRe: Custom UserControl question.... Pin
Ian Shlasko26-Aug-10 10:07
Ian Shlasko26-Aug-10 10:07 
GeneralRe: Custom UserControl question.... Pin
Phil Boyd26-Aug-10 10:35
Phil Boyd26-Aug-10 10:35 
QuestionWPF Display performance Pin
Eduard Keilholz25-Aug-10 23:46
Eduard Keilholz25-Aug-10 23:46 
AnswerRe: WPF Display performance Pin
Abhinav S26-Aug-10 1:06
Abhinav S26-Aug-10 1:06 
QuestionFinding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 4:01
dbrenth25-Aug-10 4:01 
AnswerRe: Finding SortDescriptions for a DataGrid Pin
Abhinav S25-Aug-10 6:03
Abhinav S25-Aug-10 6:03 
GeneralRe: Finding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 7:38
dbrenth25-Aug-10 7:38 
GeneralRe: Finding SortDescriptions for a DataGrid Pin
dbrenth25-Aug-10 8:03
dbrenth25-Aug-10 8:03 
Questioninterfaces and access modifiers Pin
Ed Hill _5_24-Aug-10 23:39
Ed Hill _5_24-Aug-10 23:39 
AnswerRe: interfaces and access modifiers [modified] Pin
Pete O'Hanlon24-Aug-10 23:47
mvePete O'Hanlon24-Aug-10 23:47 
GeneralRe: interfaces and access modifiers Pin
Ed Hill _5_25-Aug-10 0:07
Ed Hill _5_25-Aug-10 0:07 
GeneralRe: interfaces and access modifiers Pin
Pete O'Hanlon25-Aug-10 1:27
mvePete O'Hanlon25-Aug-10 1:27 
QuestionCalling one button's IsMouseOver style on mouseEnter of another button Pin
Prasoon Chaudhary24-Aug-10 22:24
Prasoon Chaudhary24-Aug-10 22:24 
QuestionHow to bind the ComboBox which is in a ListView using collection Pin
DavJes24-Aug-10 4:44
DavJes24-Aug-10 4:44 
AnswerRe: How to bind the ComboBox which is in a ListView using collection Pin
Ian Shlasko24-Aug-10 5:17
Ian Shlasko24-Aug-10 5:17 
GeneralRe: How to bind the ComboBox which is in a ListView using collection Pin
DavJes25-Aug-10 5:09
DavJes25-Aug-10 5:09 
GeneralRe: How to bind the ComboBox which is in a ListView using collection Pin
Ian Shlasko25-Aug-10 5:53
Ian Shlasko25-Aug-10 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.