Click here to Skip to main content
15,885,365 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon30-Mar-09 21:52
mvePete O'Hanlon30-Mar-09 21:52 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker77031-Mar-09 10:56
barker77031-Mar-09 10:56 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon31-Mar-09 11:56
mvePete O'Hanlon31-Mar-09 11:56 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker7701-Apr-09 4:31
barker7701-Apr-09 4:31 
AnswerRe: MVVM - how to update a control in a WindowsFormsHost Pin
barker7701-Apr-09 9:11
barker7701-Apr-09 9:11 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
Pete O'Hanlon1-Apr-09 9:22
mvePete O'Hanlon1-Apr-09 9:22 
GeneralRe: MVVM - how to update a control in a WindowsFormsHost Pin
ABitSmart1-Apr-09 22:56
ABitSmart1-Apr-09 22:56 
QuestionCustom/user control Pin
wazzzuup30-Mar-09 10:12
wazzzuup30-Mar-09 10:12 
Hello!
I have such task - to create control that union two controls (DataGrid from WPFToolkit and standard Toolbar). On a large scale, it doesn't matter what particular controls it unions, I need to find out the common practices that can be used to build what I need. At first glance, I need something like user control, i.e composition of controls, that I can implement as a whole and reuse then. But, my task requires me to have possibility to tune my composite control in XAML. So, if I compose Toolbar and DataGrid, I want properties and events of both them would be exposed. So I could set in XAML both, for example, columns of datagrid and bars of toolbar:

(I put spaces in tag names intentionally, because loacal parser didn't type them for some reason)

< MyDataGridToolBarControl ><br />
< DataGrid ><br />
        < DataGrid.Columns ><br />
            < DataGridTextColumn Header="firstColumn" ><br />
            < /DataGridTextColumn ><br />
            < DataGridTextColumn Header="secondColumn" /><br />
        < /DataGrid.Columns ><br />
< /DataGrid ><br />
< ToolBar Background="{x:Null}" > <br />
        <button tooltip="New"><br />
            <image source="New.png" /><br />
        </button><br />
        <button tooltip="Save"><br />
            <image source="Save.png" /><br />
        </button><br />
        <button tooltip="Delete"><br />
            <image source="Delete.png" /><br />
        </button>               <br />
< /ToolBar ><br />
< /MyDataGridToolBarControl >


The only decison that suits me less or mor for now is to make custom control inherited from Datarid (as DataGrid is more significant in this pair) and redefine Template including both datagrid and toolbar. This gives me all power of datagrid but, if I want get Toolbar part, I need to do it through code, seeking it in viual and logical trees i.e. getting access o it programmatcally, which is not pretty decision.
Please help a newbie to solve this task ) Thanks in advance...
AnswerRe: Custom/user control Pin
Christian Graus30-Mar-09 15:03
protectorChristian Graus30-Mar-09 15:03 
GeneralRe: Custom/user control Pin
wazzzuup31-Mar-09 0:00
wazzzuup31-Mar-09 0:00 
QuestionBrowsers just couldn't show SilverLights Applications ? Pin
Mohammad Dayyan30-Mar-09 10:03
Mohammad Dayyan30-Mar-09 10:03 
AnswerRe: Browsers just couldn't show SilverLights Applications ? Pin
Mark Salsbery31-Mar-09 6:31
Mark Salsbery31-Mar-09 6:31 
GeneralRe: Browsers just couldn't show SilverLights Applications ? Pin
Mohammad Dayyan31-Mar-09 20:37
Mohammad Dayyan31-Mar-09 20:37 
QuestionAssign command parameter to canvas. Pin
emptythetill30-Mar-09 1:22
emptythetill30-Mar-09 1:22 
AnswerRe: Assign command parameter to canvas. Pin
ABitSmart30-Mar-09 2:02
ABitSmart30-Mar-09 2:02 
GeneralRe: Assign command parameter to canvas. Pin
emptythetill30-Mar-09 10:50
emptythetill30-Mar-09 10:50 
GeneralRe: Assign command parameter to canvas. Pin
ABitSmart30-Mar-09 20:05
ABitSmart30-Mar-09 20:05 
QuestionDeploying WPF application Pin
M. J. Jaya Chitra30-Mar-09 0:09
M. J. Jaya Chitra30-Mar-09 0:09 
AnswerRe: Deploying WPF application Pin
Christian Graus30-Mar-09 15:08
protectorChristian Graus30-Mar-09 15:08 
QuestionNew WPF Themes on Codeplex Pin
RugbyLeague29-Mar-09 23:36
RugbyLeague29-Mar-09 23:36 
AnswerRe: New WPF Themes on Codeplex Pin
ABitSmart30-Mar-09 0:02
ABitSmart30-Mar-09 0:02 
GeneralRe: New WPF Themes on Codeplex Pin
RugbyLeague30-Mar-09 0:30
RugbyLeague30-Mar-09 0:30 
QuestionHow to pass Sql Query as a parameter in Silverlight Pin
mohammed irfan jeddah29-Mar-09 2:51
mohammed irfan jeddah29-Mar-09 2:51 
QuestionRe: How to pass Sql Query as a parameter in Silverlight Pin
Mark Salsbery30-Mar-09 6:07
Mark Salsbery30-Mar-09 6:07 
AnswerRe: How to pass Sql Query as a parameter in Silverlight Pin
Braulio Dez1-Apr-09 5:54
Braulio Dez1-Apr-09 5:54 

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.