Intersoft.Client.UI.Data Namespace > UXDataPager Class : ResourceOverride Property |
<CategoryAttribute("Common Properties")> Public Property ResourceOverride As UXDataPagerResource
Dim instance As UXDataPager Dim value As UXDataPagerResource instance.ResourceOverride = value value = instance.ResourceOverride
[CategoryAttribute("Common Properties")] public UXDataPagerResource ResourceOverride {get; set;}
[CategoryAttribute("Common Properties")] public: property UXDataPagerResource^ ResourceOverride { UXDataPagerResource^ get(); void set ( UXDataPagerResource^ value); }
You can easily localize the textual content of UXDataPager by setting the ResourceOverride property to a UXDataPagerResource instance containing the customized textual content.
The default textual content are listed in the following table.
Resource Key | Resource Value |
---|---|
AutoEllipsisString | ... |
InvalidButtonPanelContent | The NumericButtonPanel contains invalid children. |
InvalidTimeSpan | The {0} time span must be strictly positive. |
PageIndexMustBeNegativeOne | The PageIndex property can only be set to -1 when the Source property is null or the PageSize property is 0. |
Prefix_TotalPageCountKnown | Page |
Prefix_TotalPageCountUnknown | Page |
Suffix_TotalPageCountKnown | of {0} |
Suffix_TotalPageCountUnknown | |
UnderlyingPropertyIsReadOnly | {0} cannot be set because the underlying property is read only. |
ValueMustBeGreaterThanOrEqualTo | {0} must be greater than or equal to {1}. |
The following examples show how to localize the textual content of a UXDataPager.
Example Title |
Copy Code
|
---|---|
<StackPanel Intersoft:DockPanel.Dock="Bottom"> <Intersoft:UXDataPager PageSize="20" QueryOperation="Client" Source="{Binding Customers}" Margin="8" DisplayMode="FirstLastPreviousNext"> <Intersoft:UXDataPager.ResourceOverride> <Intersoft:UXDataPagerResource Prefix_TotalPageCountKnown="Pagina" Prefix_TotalPageCountUnknown="Pagina" Suffix_TotalPageCountKnown="of {0}" Suffix_TotalPageCountUnknown=""/> </Intersoft:UXDataPager.ResourceOverride> </Intersoft:UXDataPager> <Intersoft:UXDataPager PageSize="20" QueryOperation="Client" Source="{Binding Customers}" NumericButtonCount="3" AutoEllipsis="True" Margin="8" DisplayMode="FirstLastPreviousNextNumeric"> <Intersoft:UXDataPager.ResourceOverride> <Intersoft:UXDataPagerResource AutoEllipsisString=",,,"/> </Intersoft:UXDataPager.ResourceOverride> </Intersoft:UXDataPager> </StackPanel> |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2