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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM