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