Click here to Skip to main content
15,920,896 members
Home / Discussions / WPF
   

WPF

 
QuestionUserControl in MVVM w/ no code behind? is it possible? Pin
SledgeHammer0121-Jun-11 10:04
SledgeHammer0121-Jun-11 10:04 
AnswerRe: UserControl in MVVM w/ no code behind? is it possible? Pin
Pete O'Hanlon21-Jun-11 10:27
mvePete O'Hanlon21-Jun-11 10:27 
GeneralRe: UserControl in MVVM w/ no code behind? is it possible? Pin
SledgeHammer0121-Jun-11 10:49
SledgeHammer0121-Jun-11 10:49 
GeneralRe: UserControl in MVVM w/ no code behind? is it possible? Pin
Soulus8321-Jun-11 12:57
Soulus8321-Jun-11 12:57 
GeneralRe: UserControl in MVVM w/ no code behind? is it possible? Pin
SledgeHammer0121-Jun-11 13:02
SledgeHammer0121-Jun-11 13:02 
GeneralRe: UserControl in MVVM w/ no code behind? is it possible? Pin
Pete O'Hanlon21-Jun-11 21:08
mvePete O'Hanlon21-Jun-11 21:08 
AnswerRe: UserControl in MVVM w/ no code behind? is it possible? Pin
Abhinav S21-Jun-11 21:22
Abhinav S21-Jun-11 21:22 
QuestionNullReferenceException was throwm on 'Groupbox' Pin
AmbiguousName20-Jun-11 18:20
AmbiguousName20-Jun-11 18:20 
hello guys... I have three tabs on which some of the GUI is same. So when I was done with tab1, I simple copied the some of the code in tab2, but off course changing some of the values and thier coordinates. But this act shows me above mentioned exception? Here is some of the code I copied.
///// Tab 1
<groupbox:GroupBox Header="Batch Details" Height="120" Width="430" Margin="0,10,800,0" >
<StackPanel>
<sdk:Label Height="28" Name="lblBatch" Width="50" Content="Batch Id:" Margin="-75,0,300,0"/>
<TextBox Height="20" Width="90" Margin="-130,-30,100,0" Name="txtBatch"></TextBox>
<sdk:Label Height="28" Name="lblCreatedBy" Width="65" Content="Created By:" Margin="-70,-30,0,0" />
<TextBox Height="20" Width="120" Margin="117,-30,0,0" Name="txtCreatedBy"></TextBox>
<TextBlock Height="20" Width="75" Margin="320,-27,0,0" Name="txtblkDate" Foreground="Blue">2011-05-12</TextBlock>
<sdk:Label Name="lblOperator" Height="28" Width="55" Margin="-365,0,0,0" Content="Operator:"></sdk:Label>
<TextBox Height="20" Width="100" Margin="-210,-25,0,0" Name="txtOperatorVal" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="240" Margin="140,-25,0,0" Name="txtOperatorVal2" IsReadOnly="True"></TextBox>
<sdk:Label Content="Approval: " Height="28" Width="55" Margin="-360,0,0,0"></sdk:Label>
<TextBox Height="20" Width="240" Margin="-65,-25,0,0" Name="txtApproval" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="100" Margin="285,-25,0,0" Name="txtApproval2" IsReadOnly="True"></TextBox>
</StackPanel>
</groupbox:GroupBox>


///// Tab 2
<groupbox:GroupBox Header="Batch Details " Height="120" Width="430" Margin="0,10,800,0">
<StackPanel>
<sdk:Label Height="28" Name="lblBatchOpr" Width="50" Content="Batch Id:" Margin="-75,0,300,0"/>
<TextBox Height="20" Width="90" Margin="-130,-30,100,0" Name="txtBatchOpr"></TextBox>
<sdk:Label Height="28" Name="lblCreatedByOpr" Width="65" Content="Created By:" Margin="-70,-30,0,0" />
<TextBox Height="20" Width="120" Margin="117,-30,0,0" Name="txtCreatedByOpr"></TextBox>
<TextBlock Height="20" Width="75" Margin="320,-27,0,0" Name="txtblkDateOpr" Foreground="Blue">2011-05-12</TextBlock>
<sdk:Label Name="lblOperatorOpr" Height="28" Width="55" Margin="-365,0,0,0" Content="Operator:"></sdk:Label>
<TextBox Height="20" Width="100" Margin="-210,-25,0,0" Name="txtOperatorValOpr" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="240" Margin="140,-25,0,0" Name="txtOperatorVal2Opr" IsReadOnly="True"></TextBox>
<sdk:Label Content="Approval: " Height="28" Width="55" Margin="-360,0,0,0"></sdk:Label>
<TextBox Height="20" Width="240" Margin="-65,-25,0,0" Name="txtApprovalOpr" IsReadOnly="True"></TextBox>
<TextBox Height="20" Width="100" Margin="285,-25,0,0" Name="txtApproval2Opr" IsReadOnly="True"></TextBox>
</StackPanel>
</groupbox:GroupBox>

So on tab2, it shows me a NullReferenceException thrown on GroupBox. Whats wrong? thnx
AnswerRe: NullReferenceException was throwm on 'Groupbox' Pin
SledgeHammer0121-Jun-11 6:26
SledgeHammer0121-Jun-11 6:26 
AnswerRe: NullReferenceException was throwm on 'Groupbox' Pin
Pete O'Hanlon21-Jun-11 6:30
mvePete O'Hanlon21-Jun-11 6:30 
QuestionCustom control derived from DataGrid Pin
Nitsan Selinger19-Jun-11 21:12
Nitsan Selinger19-Jun-11 21:12 
AnswerRe: Custom control derived from DataGrid Pin
BobJanova20-Jun-11 4:42
BobJanova20-Jun-11 4:42 
GeneralRe: Custom control derived from DataGrid Pin
Nitsan Selinger20-Jun-11 5:07
Nitsan Selinger20-Jun-11 5:07 
GeneralRe: Custom control derived from DataGrid Pin
Pete O'Hanlon20-Jun-11 5:08
mvePete O'Hanlon20-Jun-11 5:08 
GeneralRe: Custom control derived from DataGrid Pin
Nitsan Selinger20-Jun-11 19:45
Nitsan Selinger20-Jun-11 19:45 
GeneralRe: Custom control derived from DataGrid Pin
Pete O'Hanlon21-Jun-11 6:28
mvePete O'Hanlon21-Jun-11 6:28 
GeneralRe: Custom control derived from DataGrid Pin
Nitsan Selinger21-Jun-11 7:27
Nitsan Selinger21-Jun-11 7:27 
GeneralRe: Custom control derived from DataGrid Pin
Pete O'Hanlon21-Jun-11 7:40
mvePete O'Hanlon21-Jun-11 7:40 
GeneralRe: Custom control derived from DataGrid Pin
Nitsan Selinger21-Jun-11 19:41
Nitsan Selinger21-Jun-11 19:41 
GeneralRe: Custom control derived from DataGrid Pin
Pete O'Hanlon21-Jun-11 21:01
mvePete O'Hanlon21-Jun-11 21:01 
GeneralRe: Custom control derived from DataGrid Pin
Nicolai Schrade6-Jul-11 5:52
Nicolai Schrade6-Jul-11 5:52 
GeneralRe: Custom control derived from DataGrid Pin
BobJanova20-Jun-11 7:32
BobJanova20-Jun-11 7:32 
QuestionHow to Group Controls[solved] Pin
AmbiguousName19-Jun-11 20:08
AmbiguousName19-Jun-11 20:08 
AnswerRe: How to Group Controls Pin
rajesh123110319-Jun-11 20:22
rajesh123110319-Jun-11 20:22 
AnswerRe: How to Group Controls Pin
DSB-Sven19-Jun-11 22:42
DSB-Sven19-Jun-11 22:42 

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.