Intersoft ClientUI Documentation
ResourceOverride Property
See Also  Send Feedback
Intersoft.Client.UI.Data Namespace > UXDataPager Class : ResourceOverride Property






Gets or sets the individual resource object to override the existing localized resource.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property ResourceOverride As UXDataPagerResource
Visual Basic (Usage)Copy Code
Dim instance As UXDataPager
Dim value As UXDataPagerResource
 
instance.ResourceOverride = value
 
value = instance.ResourceOverride
C# 
[CategoryAttribute("Common Properties")]
public UXDataPagerResource ResourceOverride {get; set;}
Delphi 
public read-write property ResourceOverride: UXDataPagerResource; 
JScript 
CategoryAttribute("Common Properties")
public function get,set ResourceOverride : UXDataPagerResource
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property UXDataPagerResource* get_ResourceOverride();
public: __property void set_ResourceOverride( 
   UXDataPagerResource* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property UXDataPagerResource^ ResourceOverride {
   UXDataPagerResource^ get();
   void set (    UXDataPagerResource^ value);
}

Example

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>

Remarks

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}.

 

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.