wpf 在引用外部的资源字典

启动的APP.xaml

 

 

资源字典: ScrollViewStyle.xaml

 

 

 

引用的界面的xaml

<UserControl x:Class="FranceNews.Pages.点位.Views.FranceFilter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:FranceNews.Pages.点位.ViewModels"
             xmlns:v="clr-namespace:FranceNews.Pages.点位.Views"
             xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
             mc:Ignorable="d" 
             d:DesignHeight="607" MinWidth="600" Width="1800">
        <ScrollViewer x:Name="scrolls" Template="{StaticResource MyScrollViewerControlTemplate}" VerticalAlignment="Top" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto" >
            <ScrollViewer.Content>
              
            </ScrollViewer.Content>
        </ScrollViewer>
</UserControl>

 

posted @ 2015-06-24 11:42  明天将会怎样  阅读(3466)  评论(0编辑  收藏  举报