将默认内容添加到自定义TabItem和TabControl

时间:2019-03-07 13:34:02

标签: wpf xaml custom-controls tabcontrol tabitem

我想创建一个FROM jenkins/jenkins:lts USER root # install plugins COPY plugins.txt /usr/share/jenkins/ref/plugins.txt RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt # Configuration as code plugin # The configuration file must be stored outside of the Jenkins home directory # because this is mounted as a volume - consequently, changes to the file in # the image would not make it into the container which would override it with # the previous version from the volume. ENV CASC_JENKINS_CONFIG=/run/jenkins.yaml COPY --chown=jenkins:jenkins jenkins.yaml /run/jenkins.yaml # don't run plugin and admin user setup wizard at first run ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false" USER jenkins (源自CustomTabItem以便能够添加属性),当用户从工具箱中将其拖入时,它会带有默认内容。

TabItem

(在第二步中,我也想用<TabControl> <CustomTabItem> <!-- predefined content goes here --> </CustomTabItem> </TabControl> 重复同样的事情,添加TabControl,它会自动包含例如三个CustomTabControl s)

我注意到默认情况下已经为CustomTabItem添加了TabItem;这也适用于Grid。请记住,这在设计时应该像正常的CustomTabItem一样起作用,我如何才能将其更改为包含TabItem呢?

0 个答案:

没有答案