Click here to Skip to main content
14,365,495 members

Silverlight / WPF

 
AnswerRe: Use Different Paths In Control Template Pin
Gerry Schmitz11-May-16 17:06
mveGerry Schmitz11-May-16 17:06 
QuestionHandle Title Bar Icon Click Pin
Kevin Marois11-May-16 6:56
professionalKevin Marois11-May-16 6:56 
AnswerRe: Handle Title Bar Icon Click Pin
CHill6011-May-16 23:42
protectorCHill6011-May-16 23:42 
AnswerRe: Handle Title Bar Icon Click Pin
Pete O'Hanlon12-May-16 0:50
protectorPete O'Hanlon12-May-16 0:50 
Questionwpf Pin
Member 113037949-May-16 8:39
memberMember 113037949-May-16 8:39 
AnswerRe: wpf Pin
Pete O'Hanlon9-May-16 9:34
protectorPete O'Hanlon9-May-16 9:34 
QuestionRe: wpf Pin
ZurdoDev11-May-16 10:20
professionalZurdoDev11-May-16 10:20 
QuestionWPF Dependency Property Of Type UserControl Pin
Kevin Marois3-May-16 6:32
professionalKevin Marois3-May-16 6:32 
I want to create some controls - a Host and a Content control. There will be one Host and many Content controls. Other developers will create Content controls and use them in the Host. For example I have a Tab control. On each tab will be a host, but each tab's Content control will be different:

MainWindow
<Window x:Class="MainWindowView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:views="clr-namespace:Views"
        Title="Demo" 
        WindowStartupLocation="CenterScreen"
        Height="800" 
        Width="1000">

<pre>
<Grid>

    <TabControl Margin="5">

        <TabItem Header="Tab 1">
            <views:HostView HostContent="ContentControl_1.xaml"/>
        </TabItem>

        <TabItem Header="Tab 2">
            <views:HostView HostContent="ContentControl_2.xaml"/>
        </TabItem>

        <TabItem Header="Tab 3">
            <views:HostView HostContent="ContentControl_3.xaml"/>
        </TabItem>

    </TabControl>

</Grid>



I'm thinking that the Host control will have a ContentPresenter bound to the HostContent DP. The question is how to create the DP HostContent so that it resolves at design time?

Thanks
If it's not broken, fix it until it is


modified 3-May-16 11:38am.

QuestionUse TTF Font From Resources Pin
Kevin Marois28-Apr-16 13:13
professionalKevin Marois28-Apr-16 13:13 
AnswerRe: Use TTF Font From Resources Pin
Richard Deeming29-Apr-16 3:18
mveRichard Deeming29-Apr-16 3:18 
GeneralRe: Use TTF Font From Resources Pin
Kevin Marois29-Apr-16 6:21
professionalKevin Marois29-Apr-16 6:21 
GeneralRe: Use TTF Font From Resources Pin
Kevin Marois29-Apr-16 6:26
professionalKevin Marois29-Apr-16 6:26 
GeneralRe: Use TTF Font From Resources Pin
Kevin Marois29-Apr-16 6:43
professionalKevin Marois29-Apr-16 6:43 
QuestionSave And Restore Attached Property Values Pin
Kevin Marois27-Apr-16 12:53
professionalKevin Marois27-Apr-16 12:53 
AnswerRe: Save And Restore Attached Property Values Pin
Mycroft Holmes27-Apr-16 15:34
memberMycroft Holmes27-Apr-16 15:34 
GeneralRe: Save And Restore Attached Property Values Pin
Kevin Marois28-Apr-16 7:47
professionalKevin Marois28-Apr-16 7:47 
AnswerRe: Save And Restore Attached Property Values Pin
Richard Deeming28-Apr-16 9:30
mveRichard Deeming28-Apr-16 9:30 
QuestionHow to have duplicate model/view-model in TabControl Pin
Leif Simon Goodwin21-Apr-16 3:01
memberLeif Simon Goodwin21-Apr-16 3:01 
AnswerRe: How to have duplicate model/view-model in TabControl Pin
Pete O'Hanlon21-Apr-16 4:57
protectorPete O'Hanlon21-Apr-16 4:57 
GeneralRe: How to have duplicate model/view-model in TabControl Pin
Leif Simon Goodwin22-Apr-16 1:41
memberLeif Simon Goodwin22-Apr-16 1:41 
GeneralRe: How to have duplicate model/view-model in TabControl Pin
Pete O'Hanlon22-Apr-16 1:44
protectorPete O'Hanlon22-Apr-16 1:44 
QuestionWPF App for video recording from webcam into file MP4/h.264 Pin
Qinitram14-Apr-16 0:33
memberQinitram14-Apr-16 0:33 
AnswerRe: WPF App for video recording from webcam into file MP4/h.264 Pin
Gerry Schmitz17-Apr-16 20:31
mveGerry Schmitz17-Apr-16 20:31 
QuestionUserControl not displayed inside the parent window only in designer Pin
hesido9-Apr-16 1:18
memberhesido9-Apr-16 1:18 
QuestionLoading resources from XAML, problem with fonts Pin
Jayme655-Apr-16 11:17
memberJayme655-Apr-16 11:17 

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.