ArcGIS Pro控件汇总

发布时间:2024年01月19日

控件来源

我们对其一一进行查看是否有控件

查看位置

控件展示

ribbonControls

展示

代码

<controls:ProWindow x:Class="ProAppModule9.ProWindowRibbon"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
        xmlns:ribbonControls="clr-namespace:ActiproSoftware.Windows.Controls.Ribbon.Controls;assembly=ArcGIS.Desktop.Ribbon.Wpf"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
        mc:Ignorable="d"
        Title="ProWindowRibbon" Height="300" Width="600"
        WindowStartupLocation="CenterOwner"
    >
    <controls:ProWindow.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </controls:ProWindow.Resources>
    <Grid>
        <StackPanel Width="300" HorizontalAlignment="Left">
            <TextBlock>应用程序菜单</TextBlock>
            <ribbonControls:ApplicationMenu>
                <RibbonApplicationMenuItem Header="应用程序菜单1"></RibbonApplicationMenuItem>
                <RibbonApplicationMenuItem Header="应用程序菜单2"></RibbonApplicationMenuItem>
                <RibbonApplicationMenuItem Header="应用程序菜单3"></RibbonApplicationMenuItem>
            </ribbonControls:ApplicationMenu>
            <ribbonControls:Backstage>
                <ribbonControls:Group>
                    <ribbonControls:BackstageTab Header="BackstageTab3"></ribbonControls:BackstageTab>
                    <ribbonControls:BackstageTab Header="BackstageTab4"></ribbonControls:BackstageTab>
                </ribbonControls:Group>
                <ribbonControls:BackstageTab Header="BackstageTab1">
                    <ribbonControls:GalleryItem Content="123"></ribbonControls:GalleryItem>
                </ribbonControls:BackstageTab>
                <ribbonControls:BackstageTab Header="BackstageTab2">
                    <ribbonControls:GalleryItem Content="456"></ribbonControls:GalleryItem>
                </ribbonControls:BackstageTab>
            </ribbonControls:Backstage>
            <TextBlock>按钮控件</TextBlock>
            <ribbonControls:Button Context="MenuItem" BorderThickness="1" BorderBrush="Black"></ribbonControls:Button>
            <ribbonControls:ButtonGroup></ribbonControls:ButtonGroup>
            <ribbonControls:CheckBox>
                <ribbonControls:CheckBox.Label>CheckBox</ribbonControls:CheckBox.Label>
            </ribbonControls:CheckBox>
            <ribbonControls:ColorPickerGallery></ribbonControls:ColorPickerGallery>
            <ribbonControls:ComboBox></ribbonControls:ComboBox>
            <ribbonControls:Button>
                <ribbonControls:Button.ContextMenu>
                    <ribbonControls:ContextMenu>
                        <MenuItem Header="Menu item 1" />
                        <MenuItem Header="Menu item 2" />
                        <Separator />
                        <MenuItem Header="Menu item 3" />
                    </ribbonControls:ContextMenu>
                </ribbonControls:Button.ContextMenu>
            </ribbonControls:Button>
            <ribbonControls:ContextualTabGroup></ribbonControls:ContextualTabGroup>
            <TextBlock>字体样式下拉控件</TextBlock>
            <ribbonControls:FontFamilyComboBox></ribbonControls:FontFamilyComboBox>
            <TextBlock>字体大小下拉控件</TextBlock>
            <ribbonControls:FontSizeComboBox></ribbonControls:FontSizeComboBox>
        </StackPanel>
        <StackPanel Width="300" HorizontalAlignment="Right">
            <ribbonControls:StackPanel Width="300" HorizontalAlignment="Right">
            </ribbonControls:StackPanel>
            <ribbonControls:Menu>
                <MenuItem Header="_File">
                    <MenuItem Command="New" />
                    <Separator />
                    <MenuItem Header="_Exit" />
                </MenuItem>
                <MenuItem Header="_Edit">
                    <MenuItem Command="Cut" />
                    <MenuItem Command="Copy" />
                    <MenuItem Command="Paste" />
                </MenuItem>
            </ribbonControls:Menu>
            <ribbonControls:MiniToolBar>
                <RadioButton ToolTip="Red" >
                    <Rectangle Width="10" Height="10" Fill="Red"/>
                </RadioButton>
                <RadioButton ToolTip="Orange" >
                    <Rectangle Width="10" Height="10" Fill="Orange"/>
                </RadioButton>
                <RadioButton ToolTip="Yellow" >
                    <Rectangle Width="10" Height="10" Fill="Yellow"/>
                </RadioButton>
                <RadioButton ToolTip="Green" >
                    <Rectangle Width="10" Height="10" Fill="Green"/>
                </RadioButton>
                <RadioButton ToolTip="Blue" >
                    <Rectangle Width="10" Height="10" Fill="Blue"/>
                </RadioButton>
                <RadioButton ToolTip="Purple" >
                    <Rectangle Width="10" Height="10" Fill="Purple"/>
                </RadioButton>
                <RadioButton ToolTip="Transparent" >
                    <Rectangle Width="10" Height="10" Fill="Transparent"/>
                </RadioButton>
            </ribbonControls:MiniToolBar>
            <ribbonControls:PopupButton>
                <StackPanel Width="200" Background="White" Margin="10">
                    <Label Content="Enter text:"/>
                    <TextBox x:Name="textBox"/>
                </StackPanel>
            </ribbonControls:PopupButton>
            <ribbonControls:PopupGallery>
                <StackPanel Width="200" Background="White" Margin="10">
                    <Label Content="Enter text:"/>
                    <TextBox x:Name="textBox1"/>
                </StackPanel>
            </ribbonControls:PopupGallery>
            <ribbonControls:RadioButton>
                <ribbonControls:RadioButton.Label>RadioButton
                </ribbonControls:RadioButton.Label>
            </ribbonControls:RadioButton>
            <ribbonControls:RecentDocumentMenu>
                
            </ribbonControls:RecentDocumentMenu>
            <ribbonControls:RowPanel>
                <StackPanel Width="200" Background="White" Margin="10">
                    <Label Content="Enter text:"/>
                    <TextBox x:Name="textBox2"/>
                </StackPanel>
            </ribbonControls:RowPanel>
            <!--<ribbonControls:ScreenTip></ribbonControls:ScreenTip>-->
            <TextBlock>分隔符</TextBlock>
            <ribbonControls:Separator></ribbonControls:Separator>
            <ribbonControls:SplitButton>
                <StackPanel>
                    <ribbonControls:Button>
                        <ribbonControls:Button.Label>SplitButton1</ribbonControls:Button.Label>
                    </ribbonControls:Button>
                    <ribbonControls:Button>
                        <ribbonControls:Button.Label>SplitButton2</ribbonControls:Button.Label>
                    </ribbonControls:Button>
                    <ribbonControls:Button>
                        <ribbonControls:Button.Label>SplitButton3</ribbonControls:Button.Label>
                    </ribbonControls:Button>
                </StackPanel>
            </ribbonControls:SplitButton>
            <ribbonControls:Tab>
                <ribbonControls:Group>
                    <StackPanel>
                        <TextBlock>First name:</TextBlock>
                        <TextBox />
                        <TextBlock>Last name:</TextBlock>
                        <TextBox />
                        <Button Margin="0,20">Add User</Button>
                    </StackPanel>
                </ribbonControls:Group>
                <ribbonControls:Group>
                    <StackPanel>
                        <TextBlock>First name:</TextBlock>
                        <TextBox />
                        <TextBlock>Last name:</TextBlock>
                        <TextBox />
                        <Button Margin="0,20">Add User</Button>
                    </StackPanel>
                </ribbonControls:Group>
            </ribbonControls:Tab>
            <ribbonControls:TaskTabControl>
                <ribbonControls:TaskTabItem Header="TaskTabItem1"></ribbonControls:TaskTabItem>
                <ribbonControls:TaskTabItem Header="TaskTabItem2"></ribbonControls:TaskTabItem>
            </ribbonControls:TaskTabControl>
            <ribbonControls:TextBox Text="TextBox"></ribbonControls:TextBox>
            <ribbonControls:ToggleMinimizationButton></ribbonControls:ToggleMinimizationButton>
        </StackPanel>
    </Grid>
    

</controls:ProWindow>

文章来源:https://blog.csdn.net/qq_39397927/article/details/135691809
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。