Quantcast
Channel: riadatafilter Wiki Rss Feed
Viewing all articles
Browse latest Browse all 20

Updated Wiki: Documentation

$
0
0

How to use?

Download the binary file and add it into Silverlight Project => References

In XAML on page that you need to add this control, add next lines (i recommend to mix control with TabControl):
<UserControl
    //...
    // Define controls namespaces
    xmlns:ria="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria"
    xmlns:ctl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:ctlRia="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Ria"

    // Define Server app that have RIA Services
    xmlns:srvApp="clr-namespace:<OUR_SERVER_APP_PROJECT_NAME_THAT_HAVE_RIA_SERVICES>"

    // Define RIA Services DataFilter Control
    xmlns:riaDataFilter="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.RIADataFilter.Control"
    >

    <UserControl.Resources>
        <ctlRia:DomainDataSource x:Name="ddsCustomer" QueryName="GetCustomers" AutoLoad="True">
            <ctlRia:DomainDataSource.DomainContext>
                <srvApp:<RIA_SERVICES_DOMAIN_CONTEXT> />
            </ctlRia:DomainDataSource.DomainContext>
        </ctlRia:DomainDataSource>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">
                <ctl:TabControl>
                    <ctl:TabItem Header="Filtering" IsSelected="True">
                        <riaDataFilter:DataFilter x:Name="RiaDataFilter1" DomainDataSource="{Binding ElementName=ddsCustomer}" />
                    </ctl:TabItem>
                    <ctl:TabItem Header="Sorting">
                        <riaDataFilter:DataSort x:Name="RiaDataFilter2" DomainDataSource="{Binding ElementName=ddsCustomer}" />
                    </ctl:TabItem>
                    <ctl:TabItem Header="Grouping">
                        <riaDataFilter:DataGroup x:Name="RiaDataFilter3" DomainDataSource="{Binding ElementName=ddsCustomer}" />
                    </ctl:TabItem>
                </ctl:TabControl>
    </Grid>
</UserControl>

How to Localize Control?

How to localize DataFilter

<riaDataFilter:DataFilter
      x:Name="RiaDataFilter1"
      ButtonAddFilterTooltip="Add filter"
      ButtonDeleteFilterTooltip="Remove filter"
      ButtonClearFilterTooltip="Clear filter"
      ButtonApplyContent="Apply"
      ButtonApplyTooltip="Apply filters"
      ButtonCancelContent="Cancel"
      ButtonCancelTooltip="Cancel filters"
    />

How to localize DataSort

<riaDataFilter:DataSort
      x:Name="RiaDataFilter2"
      ButtonAddSortTooltip="Add sort"
      ButtonDeleteSortTooltip="Remove sort"
      ButtonClearSortTooltip="Clear sort"
      ButtonApplyContent="Apply"
      ButtonApplyTooltip="Apply sorts"
      ButtonCancelContent="Cancel"
      ButtonCancelTooltip="Cancel sorts"
      />

How to localize DataGroup

<riaDataFilter:DataGroup
      x:Name="RiaDataFilter3"
      ButtonAddGroupTooltip="Add group"
      ButtonDeleteGroupTooltip="Remove group"
      ButtonClearGroupTooltip="Clear group"
      ButtonApplyContent="Apply"
      ButtonApplyTooltip="Apply groups"
      ButtonCancelContent="Cancel"
      ButtonCancelTooltip="Cancel groups"
      />

Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>